Skip to content

Commit 35444ef

Browse files
authored
Merge pull request #21 from kaigouthro/main
Fixed Linting >.<
2 parents ade6e84 + 2e2f983 commit 35444ef

File tree

8 files changed

+168
-262
lines changed

8 files changed

+168
-262
lines changed

package.json

Lines changed: 35 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,15 @@
33
"publisher": "frizLabz",
44
"displayName": "Pine Script v5",
55
"description": "Pine Script Language Server",
6-
"repository": {
7-
"type": "git" ,
8-
"url" : "https://github.com/FFriZ/Pine-Script-v5-VS-Code"
9-
},
6+
"repository": { "type": "git", "url": "https://github.com/FFriZ/Pine-Script-v5-VS-Code" },
107
"version": "0.1.8",
118
"type": "commonjs",
12-
"engines": {
13-
"vscode": "^1.93.0" ,
14-
"node" : ">=16.0.0"
15-
},
16-
"categories": [
17-
"Language Packs" ,
18-
"Programming Languages",
19-
"Themes" ,
20-
"Snippets" ,
21-
"Other"
22-
],
23-
"keywords": [
24-
"pine" ,
25-
"pinescript" ,
26-
"Pine Script" ,
27-
"Pinescript" ,
28-
"TradingView" ,
29-
"TradingView.com"
30-
],
31-
"activationEvents": [
32-
],
9+
"engines": { "vscode": "^1.93.0", "node": ">=16.0.0" },
10+
"categories": [ "Language Packs", "Programming Languages", "Themes", "Snippets", "Other" ],
11+
"keywords": [ "pine", "pinescript", "Pine Script", "Pinescript", "TradingView", "TradingView.com" ],
12+
"activationEvents": [],
3313
"icon": "media/PineLogo.png",
34-
"capabilities": {
35-
"untrustedWorkspaces": { "supported": true },
36-
"secrets": true
37-
},
14+
"capabilities": { "untrustedWorkspaces": { "supported": true }, "secrets": true },
3815
"scripts": {
3916
"webpack" : "webpack --devtool source-map --mode development" ,
4017
"compile" : "pnpm run webpack" ,
@@ -49,50 +26,43 @@
4926
"main": "./dist/extension.js",
5027
"contributes": {
5128
"themes": [
52-
{ "label": "Pine-*Preferred" , "id": "Dark Theme (*Preferred)" , "uiTheme": "vs-dark", "path": "themes/Pine-Preferred.json" },
53-
{ "label": "Pine-Original-Dark", "id": "Dark Theme (Original)" , "uiTheme": "vs-dark", "path": "themes/Pine-Original.json" },
54-
{ "label": "Pine-V4-Classic" , "id": "Dark V4 Theme (Deep Coverage)" , "uiTheme": "vs-dark", "path": "themes/Pine-classic-v4.json" },
55-
{ "label": "Pine-Cadbury" , "id": "Dark Bunny Theme (Deep Coverage)", "uiTheme": "vs-dark", "path": "themes/Pine-Cadbury.json" },
56-
{ "label": "Pine-1980" , "id": "Dark TMNT Theme (Deep Coverage)" , "uiTheme": "vs-dark", "path": "themes/Pine-1980.json" },
57-
{ "label": "Pine-Basic" , "id": "Dark Theme (Basic)" , "uiTheme": "vs-dark", "path": "themes/Pine-Basic.json" },
58-
{ "label": "Pine-Universal" , "id": "Dark Theme (Universal)" , "uiTheme": "vs-dark", "path": "themes/Pine-Universal.json" },
59-
{ "label": "Pine-Cold" , "id": "Dark Theme (Cold)" , "uiTheme": "vs-dark", "path": "themes/Pine-Cold.json" },
60-
{ "label": "Pine-Cool" , "id": "Dark Theme (Cool)" , "uiTheme": "vs-dark", "path": "themes/Pine-Cool.json" },
61-
{ "label": "Pine-Dark #01" , "id": "Dark Theme (#1)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#01.json" },
62-
{ "label": "Pine-Dark #02" , "id": "Dark Theme (#2)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#02.json" },
63-
{ "label": "Pine-Dark #03" , "id": "Dark Theme (#3)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#03.json" },
64-
{ "label": "Pine-Dark #04" , "id": "Dark Theme (#4)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#04.json" },
65-
{ "label": "Pine-Dark #05" , "id": "Dark Theme (#5)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#05.json" },
66-
{ "label": "Pine-Dark #06" , "id": "Dark Theme (#6)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#06.json" },
67-
{ "label": "Pine-Dark #07" , "id": "Dark Theme (#7)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#07.json" },
68-
{ "label": "Pine-Dark #08" , "id": "Dark Theme (#8)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#08.json" },
69-
{ "label": "Pine-Dark #09" , "id": "Dark Theme (#9)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#09.json" },
70-
{ "label": "Pine-Light #01" , "id": "Light Theme (#1)" , "uiTheme": "vs" , "path": "themes/Pine-Light#01.json" },
71-
{ "label": "Pine-Light #02" , "id": "Light Theme (#2)" , "uiTheme": "vs" , "path": "themes/Pine-Light#02.json" }
29+
{ "label": "Pine-*Preferred" , "id": "Dark Theme (*Preferred)" , "uiTheme": "vs-dark", "path": "themes/Pine-Preferred.json" }, { "label": "Pine-Original-Dark", "id": "Dark Theme (Original)" , "uiTheme": "vs-dark", "path": "themes/Pine-Original.json" },
30+
{ "label": "Pine-V4-Classic" , "id": "Dark V4 Theme (Deep Coverage)" , "uiTheme": "vs-dark", "path": "themes/Pine-classic-v4.json" }, { "label": "Pine-Cadbury" , "id": "Dark Bunny Theme (Deep Coverage)", "uiTheme": "vs-dark", "path": "themes/Pine-Cadbury.json" },
31+
{ "label": "Pine-1980" , "id": "Dark TMNT Theme (Deep Coverage)" , "uiTheme": "vs-dark", "path": "themes/Pine-1980.json" }, { "label": "Pine-Basic" , "id": "Dark Theme (Basic)" , "uiTheme": "vs-dark", "path": "themes/Pine-Basic.json" },
32+
{ "label": "Pine-Universal" , "id": "Dark Theme (Universal)" , "uiTheme": "vs-dark", "path": "themes/Pine-Universal.json" }, { "label": "Pine-Cold" , "id": "Dark Theme (Cold)" , "uiTheme": "vs-dark", "path": "themes/Pine-Cold.json" },
33+
{ "label": "Pine-Cool" , "id": "Dark Theme (Cool)" , "uiTheme": "vs-dark", "path": "themes/Pine-Cool.json" }, { "label": "Pine-Dark #01" , "id": "Dark Theme (#1)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#01.json" },
34+
{ "label": "Pine-Dark #02" , "id": "Dark Theme (#2)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#02.json" }, { "label": "Pine-Dark #03" , "id": "Dark Theme (#3)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#03.json" },
35+
{ "label": "Pine-Dark #04" , "id": "Dark Theme (#4)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#04.json" }, { "label": "Pine-Dark #05" , "id": "Dark Theme (#5)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#05.json" },
36+
{ "label": "Pine-Dark #06" , "id": "Dark Theme (#6)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#06.json" }, { "label": "Pine-Dark #07" , "id": "Dark Theme (#7)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#07.json" },
37+
{ "label": "Pine-Dark #08" , "id": "Dark Theme (#8)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#08.json" }, { "label": "Pine-Dark #09" , "id": "Dark Theme (#9)" , "uiTheme": "vs-dark", "path": "themes/Pine-Dark#09.json" },
38+
{ "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" }
7239
],
7340
"configuration": {},
7441
"submenus": [ { "id": "pine.mysubmenuNonPineFile", "label": " Pine Script v5" }, { "id": "pine.mysubmenu2", "label": " Pine Script v5" } ],
75-
"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" }, { "command": "pine.getStandardList", "title": "Open Built-in Script", "category": "navigation" }, { "command": "pine.docString", "title": "Generate Docstring", "when": "editorLangId == pine", "category": "navigation" }, { "command": "pine.setUsername", "title": "Set/Remove Username", "category": "navigation", "when": "editorLangId == pine" }, { "command": "pine.getIndicatorTemplate", "title": "New Indicator", "category": "navigation" }, { "command": "pine.getStrategyTemplate", "title": "New Strategy", "category": "navigation" }, { "command": "pine.getLibraryTemplate", "title": "New Library", "category": "navigation" } ],
42+
"commands": [
43+
{ "command": "pine.mysubmenuNonPineFile", "title": "Pine Script Options" , "category": "navigation", "when": "!editorLangId == pine" }, { "command": "pine.mysubmenu2" , "title": "Pine Script Options" , "category": "navigation", "when": "editorLangId == pine" },
44+
{ "command": "pine.typify" , "title": "Typify Variables" , "category": "navigation" }, { "command": "pine.completionAccepted" , "title": "Completion Accepted" },
45+
{ "command": "pine.getStandardList" , "title": "Open Built-in Script", "category": "navigation" }, { "command": "pine.docString" , "title": "Generate Docstring" , "category": "navigation", "when": "editorLangId == pine" },
46+
{ "command": "pine.setUsername" , "title": "Set/Remove Username" , "category": "navigation", "when": "editorLangId == pine" }, { "command": "pine.getIndicatorTemplate", "title": "New Indicator" , "category": "navigation" },
47+
{ "command": "pine.getStrategyTemplate" , "title": "New Strategy" , "category": "navigation" }, { "command": "pine.getLibraryTemplate" , "title": "New Library" , "category": "navigation" }
48+
],
7649
"menus": {
77-
"editor/context" : [ { "submenu": "pine.mysubmenuNonPineFile", "when": "editorLangId !== pine", "group": "Pine" }, { "submenu": "pine.mysubmenu2", "group": "1Pine", "when": "editorLangId == pine" }, { "command": "pine.typify" , "group": "1Pine", "when": "editorLangId == pine && editorHasSelection" }, { "command": "pine.docString" , "group": "1Pine", "when": "editorLangId == pine && editorHasSelection" }, { "command": "pine.getStandardList" , "group": "1Pine", "when": "editorLangId == pine" } ],
78-
"pine.mysubmenuNonPineFile": [ { "command": "pine.getStandardList" }, { "command": "pine.getIndicatorTemplate" }, { "command": "pine.getStrategyTemplate" }, { "command": "pine.getLibraryTemplate" } ],
79-
"pine.mysubmenu2" : [ { "command": "pine.docString" }, { "command": "pine.setUsername" }, { "command": "pine.typify" }, { "command": "pine.getIndicatorTemplate" }, { "command": "pine.getStrategyTemplate" }, { "command": "pine.getLibraryTemplate" } ]
50+
"editor/context": [
51+
{ "submenu": "pine.mysubmenuNonPineFile", "when": "editorLangId !== pine" , "group": "Pine" },
52+
{ "submenu": "pine.mysubmenu2" , "when": "editorLangId == pine" , "group": "1Pine" },
53+
{ "when": "editorLangId == pine && editorHasSelection", "group": "1Pine", "command": "pine.typify" },
54+
{ "when": "editorLangId == pine && editorHasSelection", "group": "1Pine", "command": "pine.docString" },
55+
{ "when": "editorLangId == pine" , "group": "1Pine", "command": "pine.getStandardList" }
56+
],
57+
"pine.mysubmenuNonPineFile": [ { "command": "pine.getStandardList" }, { "command": "pine.getIndicatorTemplate" }, { "command": "pine.getStrategyTemplate" }, { "command": "pine.getLibraryTemplate" } ],
58+
"pine.mysubmenu2": [ { "command": "pine.docString" }, { "command": "pine.setUsername" }, { "command": "pine.typify" }, { "command": "pine.getIndicatorTemplate" }, { "command": "pine.getStrategyTemplate" }, { "command": "pine.getLibraryTemplate" } ]
8059
},
8160
"snippets": [],
82-
"languages": [
83-
{ "id": "pine", "icon": { "light": "media/PineLogo.png", "dark": "media/PineLogo.png" }, "aliases": [ "pinescript", "pine" ], "extensions": [ ".ps", ".pine", ".pinescript" ], "configuration": "config/language-configuration.json" }
84-
],
61+
"languages": [ { "id": "pine", "icon": { "light": "media/PineLogo.png", "dark": "media/PineLogo.png" }, "aliases": [ "pinescript", "pine" ], "extensions": [ ".ps", ".pine", ".pinescript" ], "configuration": "config/language-configuration.json" } ],
8562
"documentSymbolProvider": [ { "language": "pine", "scheme": "file" } ],
86-
"grammars": [
87-
{ "language": "pine", "scopeName": "source.pine" , "path": "syntaxes/pine.tmLanguage.json" },
88-
{ "scopeName": "source.markdown", "path": "syntaxes/pine-embedded.tmLanguage.json", "injectTo": [ "text.html.markdown" ] }
89-
]
90-
},
91-
"dependencies": {
92-
"debounce" : "^2.1.1" ,
93-
"lodash" : "^4.17.21",
94-
"node-fetch": "^3.3.2"
63+
"grammars": [ { "language": "pine", "scopeName": "source.pine", "path": "syntaxes/pine.tmLanguage.json" }, { "scopeName": "source.markdown", "path": "syntaxes/pine-embedded.tmLanguage.json", "injectTo": [ "text.html.markdown" ] } ]
9564
},
65+
"dependencies": { "debounce": "^2.1.1", "lodash": "^4.17.21", "node-fetch": "^3.3.2" },
9666
"devDependencies": {
9767
"@types/debounce" : "^1.2.4" ,
9868
"@types/lodash" : "^4.17.7",

src/PineDocsManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export class PineDocsManager {
359359
}
360360

361361
/**
362-
* the setImportDocs function is used to sed the imports key of the response object
362+
* the setImportDocs function is used to set the imports key of the response object
363363
* @param docs - The docs to set.
364364
* @returns The key.
365365
*/

0 commit comments

Comments
 (0)