-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 13 KB
/
package.json
File metadata and controls
129 lines (129 loc) · 13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "pinescript-vscode",
"publisher": "kaigouthro",
"displayName": "Pine Script VS Code",
"title": "Pine Script VS Code",
"description": "Pine Script Language Server",
"repository": { "type": "git", "url": "https://github.com/kaigouthro/Pine-Script-VS-Code" },
"version": "0.1.8",
"type": "commonjs",
"engines": { "vscode": ">=1.96.0", "node": ">=16.0.0" },
"sponsor": { "url": "https://github.com/sponsors/kaigouthro" },
"license": "MIT",
"categories": [ "Language Packs", "Programming Languages", "Themes", "Snippets", "Other" ],
"keywords": [ "pine", "pinescript", "Pine Script", "Pinescript", "TradingView", "TradingView.com" ],
"activationEvents": [],
"icon": "media/PineLogo.png",
"capabilities": { "untrustedWorkspaces": { "supported": true }, "secrets": true },
"scripts": {
"webpack" : "webpack --devtool source-map --mode development",
"compile" : "pnpm run webpack",
"start" : "pnpm run compile && code --extensionDevelopmentPath=.",
"build-docs" : "pnpm run typedoc --name 'Pine Script'",
"vscode:prepublish": "pnpm run compile",
"compile-tests" : "pnpm run tsc -p . --outDir out",
"watch-tests" : "pnpm run tsc -p . -w --outDir out",
"lint" : "pnpm run eslint src --ext ts",
"vsce-package" : "vsce package -o pinescript-vscode.vsix"
},
"main": "./dist/extension.js",
"contributes": {
"themes": [
{ "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" },
{ "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" },
{ "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" },
{ "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" },
{ "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" },
{ "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" },
{ "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" },
{ "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" },
{ "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" },
{ "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": { "title": "Pine Script", "properties": { "pinescript.showChangelogOnUpdate": { "type": "boolean", "default": true, "description": "Automatically show the changelog in a new tab after an extension update." } } },
"submenus": [ { "id": "pine.mysubmenuNonPineFile", "label": " Pine Script" } ],
"colors": [
{ "id": "errorLens.errorBackground", "description": "Background color for error highlights.", "defaults": { "dark": "pine.errorBackground", "light": "pine.errorBackground", "highContrast": "pine.errorBackground" } },
{ "id": "errorLens.errorForeground", "description": "Foreground color for error highlights.", "defaults": { "dark": "pine.errorForeground", "light": "pine.errorForeground", "highContrast": "pine.errorForeground" } },
{ "id": "errorLens.warningForeground", "description": "Foreground color for warning highlights.", "defaults": { "dark": "pine.warningForeground", "light": "pine.warningForeground", "highContrast": "pine.warningForeground" } },
{ "id": "errorLens.warningBackground", "description": "Background color for warning highlights.", "defaults": { "dark": "pine.warningBackground", "light": "pine.warningBackground", "highContrast": "pine.warningBackground" } },
{ "id": "errorLens.infoForeground", "description": "Foreground color for info highlights.", "defaults": { "dark": "pine.infoForeground", "light": "pine.infoForeground", "highContrast": "pine.infoForeground" } },
{ "id": "errorLens.infoBackground", "description": "Background color for info highlights.", "defaults": { "dark": "pine.infoBackground", "light": "pine.infoBackground", "highContrast": "pine.infoBackground" } },
{ "id": "errorLens.hintForeground", "description": "Foreground color for hint highlights.", "defaults": { "dark": "pine.hintForeground", "light": "pine.hintForeground", "highContrast": "pine.hintForeground" } },
{ "id": "errorLens.hintBackground", "description": "Background color for hint highlights.", "defaults": { "dark": "pine.hintBackground", "light": "pine.hintBackground", "highContrast": "pine.hintBackground" } },
{ "id": "errorLens.gutterIconSet", "description": "'codicons' or 'default'. The icon set used in the gutter for errors, warnings, and hints.", "default": { "dark": "codicon.error", "light": "codicon.error", "highContrast": "codicon.error" } },
{
"id": "pine.gutterIconSetDefault",
"description": "'codicons' or 'default'. The icon set used in the gutter for errors, warnings, and hints when 'errorLens.gutterIconSet' is set to 'default'.",
"default": { "dark": "codicon.error", "light": "codicon.error", "highContrast": "codicon.error" }
},
{
"id": "pine.gutterIconSetCodicons",
"description": "'codicons' or 'default'. The icon set used in the gutter for errors, warnings, and hints when 'errorLens.gutterIconSet' is set to 'codicons'.",
"default": { "dark": "codicon.error", "light": "codicon.error", "highContrast": "codicon.error" }
},
{ "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" }
},
{ "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" },
{ "command": "pine.getStandardList", "title": "Open Built-in Script", "category": "navigation" }, { "command": "pine.docString", "title": "Generate Docstring", "category": "navigation", "when": "editorLangId == pine" },
{ "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" }
],
"menus": {
"editor/context": [
{ "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" } ]
},
"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" ] } ],
"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": {
"@types/debounce" : "^1.2.4",
"@types/lodash" : "^4.17.7",
"@types/node" : "^22.5.4",
"@types/source-map-support" : "^0.5.10",
"@types/vscode" : "^1.93.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser" : "^7.0.0",
"@vscode/vsce" : "^3.1.0",
"eslint" : "^8.56.0",
"eslint-config-airbnb" : "^19.0.4",
"eslint-config-airbnb-typescript" : "^18.0.0",
"eslint-plugin-import" : "^2.30.0",
"eslint-plugin-jsx-a11y" : "^6.10.0",
"eslint-plugin-react" : "^7.35.2",
"eslint-plugin-react-hooks" : "^4.6.2",
"nodemon" : "^3.1.4",
"remark-preset-wooorm" : "^9.0.0",
"source-map-support" : "^0.5.21",
"ts-loader" : "^9.5.1",
"type-coverage" : "^2.0.0",
"typedoc" : "^0.28.0",
"typescript" : "^5.7.3",
"webpack" : "^5.94.0",
"webpack-cli" : "^5.1.4",
"xo" : "^0.54.0"
},
"extensionDependencies": [ "usernamehw.errorlens" ]
}