Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c13b0a4
Merge pull request #10 from frizLabz-FFriZz/main
kaigouthro May 18, 2025
e4541d3
feat: Enhance completions for user-defined constructs
google-labs-jules[bot] May 20, 2025
89f180a
Update src/PineCompletionProvider.ts
kaigouthro May 20, 2025
9d0a14a
Merge pull request #11 from kaigouthro/feat/user-defined-completions
kaigouthro May 20, 2025
befa018
fix: Refine UDT constructor inline argument suggestions
google-labs-jules[bot] May 21, 2025
c88610d
Update src/PineSignatureHelpProvider.ts
kaigouthro May 21, 2025
c85e1f7
Merge pull request #12 from kaigouthro/feat/user-defined-completions
kaigouthro May 21, 2025
f620447
feat: Enhance Docstring, Typify, and Context Menus
google-labs-jules[bot] May 23, 2025
6c52527
Merge pull request #13 from kaigouthro/feature/docstring-typify-ux-im…
kaigouthro May 23, 2025
9237c0d
more tidying
kaigouthro May 25, 2025
aa277c6
Completions suggestions with udts,udt field, variables. Fixed contex…
kaigouthro May 27, 2025
d438a02
Merge pull request #15 from kaigouthro/Better-Completions
kaigouthro May 27, 2025
fa067dc
Refactor: Consolidate listeners and integrate CompletionService
google-labs-jules[bot] Jun 1, 2025
84a66b4
Refactor: Further cleanup and shared CompletionService
google-labs-jules[bot] Jun 1, 2025
cbf29b6
Merge pull request #16 from kaigouthro/fix/consolidate-lint-and-refac…
kaigouthro Jun 1, 2025
daad0cd
feat: Improve error and warning visibility
google-labs-jules[bot] Jun 1, 2025
864e414
Update PineLint.ts
kaigouthro Jun 1, 2025
d4ad8b4
Update extension.ts
kaigouthro Jun 1, 2025
7e19416
Update src/extension.ts
kaigouthro Jun 1, 2025
2236dfa
Update src/PineLint.ts
kaigouthro Jun 1, 2025
3908926
Update PineLint.ts
kaigouthro Jun 1, 2025
25c3634
Update PineLint.ts
kaigouthro Jun 2, 2025
51d9e38
Merge pull request #17 from kaigouthro/feat/error-highlighting
kaigouthro Jun 2, 2025
e585921
Integrated ErrorLens extension for HIGHLY VISIBLE errors
kaigouthro Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@
{ "label": "Pine-Light #01" , "id": "Light Theme (#1)" , "uiTheme": "vs" , "path": "themes/Pine-Light#01.json" }, { "label": "Pine-Light #02" , "id": "Light Theme (#2)" , "uiTheme": "vs" , "path": "themes/Pine-Light#02.json" }
],
"configuration": {},
"submenus": [ { "id": "pine.mysubmenuNonPineFile", "label": " Pine Script v5" }, { "id": "pine.mysubmenu2", "label": " Pine Script v5" } ],
"submenus": [ { "id": "pine.mysubmenuNonPineFile", "label": " Pine Script v5" } ],
"colors": [
{ "id": "pine.errorBackground", "description": "Background color for error highlights.", "defaults": { "dark": "rgba(255, 0, 0, 0.1)", "light": "rgba(255, 0, 0, 0.1)", "highContrast": "rgba(255, 0, 0, 0.1)" } },
{ "id": "pine.warningBackground", "description": "Background color for warning highlights.", "defaults": { "dark": "rgba(255, 255, 0, 0.1)", "light": "rgba(255, 255, 0, 0.1)", "highContrast": "rgba(255, 255, 0, 0.1)" } },
{ "id": "pine.errorGutterIcon", "description": "Color for the error gutter icon. (Note: Current SVG icon has fixed color)", "defaults": { "dark": "editorOverviewRuler.errorForeground", "light": "editorOverviewRuler.errorForeground", "highContrast": "editorOverviewRuler.errorForeground" } },
{
"id": "pine.warningGutterIcon",
"description": "Color for the warning gutter icon. (Note: Current SVG icon has fixed color)",
"defaults": { "dark": "editorOverviewRuler.warningForeground", "light": "editorOverviewRuler.warningForeground", "highContrast": "editorOverviewRuler.warningForeground" }
}
],
"commands": [
{ "command": "pine.mysubmenuNonPineFile", "title": "Pine Script Options" , "category": "navigation", "when": "!editorLangId == pine" }, { "command": "pine.mysubmenu2" , "title": "Pine Script Options" , "category": "navigation", "when": "editorLangId == pine" },
{ "command": "pine.typify" , "title": "Typify Variables" , "category": "navigation" }, { "command": "pine.completionAccepted" , "title": "Completion Accepted" },
Expand All @@ -48,19 +58,18 @@
],
"menus": {
"editor/context": [
{ "submenu": "pine.mysubmenuNonPineFile", "when": "editorLangId !== pine" , "group": "Pine" },
{ "submenu": "pine.mysubmenu2" , "when": "editorLangId == pine" , "group": "1Pine" },
{ "when": "editorLangId == pine && editorHasSelection", "group": "1Pine", "command": "pine.typify" },
{ "when": "editorLangId == pine && editorHasSelection", "group": "1Pine", "command": "pine.docString" },
{ "when": "editorLangId == pine" , "group": "1Pine", "command": "pine.getStandardList" }
{ "submenu": "pine.mysubmenuNonPineFile", "when": "editorLangId !== pine" , "group": "Pine" },
{ "when": "editorLangId == pine && editorHasSelection", "group": "9_pinescript@1", "command": "pine.typify" },
{ "when": "editorLangId == pine && editorHasSelection", "group": "9_pinescript@2", "command": "pine.docString" },
{ "when": "editorLangId == pine" , "group": "9_pinescript@3", "command": "pine.getStandardList" }
],
"pine.mysubmenuNonPineFile": [ { "command": "pine.getStandardList" }, { "command": "pine.getIndicatorTemplate" }, { "command": "pine.getStrategyTemplate" }, { "command": "pine.getLibraryTemplate" } ],
"pine.mysubmenu2": [ { "command": "pine.docString" }, { "command": "pine.setUsername" }, { "command": "pine.typify" }, { "command": "pine.getIndicatorTemplate" }, { "command": "pine.getStrategyTemplate" }, { "command": "pine.getLibraryTemplate" } ]
"pine.mysubmenuNonPineFile": [ { "command": "pine.getStandardList" }, { "command": "pine.getIndicatorTemplate" }, { "command": "pine.getStrategyTemplate" }, { "command": "pine.getLibraryTemplate" } ]
},
"snippets": [],
"languages": [ { "id": "pine", "icon": { "light": "media/PineLogo.png", "dark": "media/PineLogo.png" }, "aliases": [ "pinescript", "pine" ], "extensions": [ ".ps", ".pine", ".pinescript" ], "configuration": "config/language-configuration.json" } ],
"documentSymbolProvider": [ { "language": "pine", "scheme": "file" } ],
"grammars": [ { "language": "pine", "scopeName": "source.pine", "path": "syntaxes/pine.tmLanguage.json" }, { "scopeName": "source.markdown", "path": "syntaxes/pine-embedded.tmLanguage.json", "injectTo": [ "text.html.markdown" ] } ]
"grammars": [ { "language": "pine", "scopeName": "source.pine", "path": "syntaxes/pine.tmLanguage.json" }, { "scopeName": "source.markdown", "path": "syntaxes/pine-embedded.tmLanguage.json", "injectTo": [ "text.html.markdown" ] } ],
"configurationDefaults": { "[pine]": { "errorLens.enabled": true, "errorLens.enabledDiagnosticLevels": [ "error", "warning", "info" ], "errorLens.messageBackgroundMode": "line", "errorLens.messageEnabled": true, "errorLens.gutterIconsEnabled": true, "errorLens.gutterIconSet": "codicons" } }
},
"dependencies": { "debounce": "^2.1.1", "lodash": "^4.17.21", "node-fetch": "^3.3.2" },
"devDependencies": {
Expand Down Expand Up @@ -89,5 +98,6 @@
"webpack" : "^5.94.0",
"webpack-cli" : "^5.1.4" ,
"xo" : "^0.54.0"
}
},
"extensionDependencies": [ "usernamehw.errorlens" ]
}
6 changes: 5 additions & 1 deletion src/PineClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { PineUserInputs } from './PineUserInputs'
import { PineHoverProvider } from './PineHoverProvider/PineHoverProvider'
import { PineLibCompletionProvider } from './PineLibCompletionProvider'
import { PineLibHoverProvider } from './PineLibHoverProvider'
import { PineInlineCompletionContext, PineCompletionProvider } from './PineCompletionProvider'
import { PineCompletionProvider } from './PineCompletionProvider'
import { PineInlineCompletionContext } from './PineInlineCompletionContext'
// * Lints the current PineScript file.
import { PineFormatResponse } from './PineFormatResponse'
import { PineScriptList } from './PineScriptList'
import { PineTemplates } from './PineTemplates'
Expand All @@ -17,11 +19,13 @@ import { PineHoverFunction } from './PineHoverProvider/PineHoverIsFunction'
import { PineHoverMethod } from './PineHoverProvider/PineHoverIsMethod'
import { PineRenameProvider } from './PineRenameProvider'
import { PineParser } from './PineParser'
import { PineCompletionService } from './PineCompletionService'

export class Class {
public static context: vscode.ExtensionContext | undefined

public static pineDocsManager: PineDocsManager
public static pineCompletionService: PineCompletionService;
public static pineUserInputs: PineUserInputs
public static pineRequest: PineRequest
public static pineHoverProvider: PineHoverProvider
Expand Down
Loading