-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
190 lines (190 loc) · 5.22 KB
/
Copy pathpackage.json
File metadata and controls
190 lines (190 loc) · 5.22 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"name": "vba-lsp",
"type": "commonjs",
"displayName": "VBA Pro",
"description": "A VBA extension for VS Code with Language Server support",
"icon": "images/vba-lsp-icon.png",
"author": "SSlinky",
"license": "MIT",
"version": "1.7.4",
"repository": {
"type": "git",
"url": "https://github.com/SSlinky/VBA-LanguageServer"
},
"publisher": "NotisDataAnalytics",
"categories": [
"Programming Languages",
"Snippets",
"Linters",
"Formatters",
"Themes"
],
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.63.0"
},
"main": "dist/client/out/extension",
"browser": "dist/web/webextension.js",
"activationEvents": [],
"contributes": {
"languages": [
{
"id": "vba",
"aliases": [
"VBA"
],
"extensions": [
".cls",
".bas",
".frm"
],
"configuration": "./vba.language-configuration.json",
"icon": {
"dark": "icons/vba_90sGreen_dark.svg",
"light": "icons/vba_90sGreen_light.svg"
}
}
],
"iconThemes": [
{
"id": "vs-seti-vba",
"label": "Seti + VBA",
"path": "icons/theme-seti/icons/vs-seti-icon-theme.json"
}
],
"configurationDefaults": {
"[vba]": {
"editor.semanticHighlighting.enabled": true
}
},
"configuration": {
"type": "object",
"title": "VBA Pro",
"properties": {
"vbaLanguageServer.logLevel.outputChannel": {
"scope": "resource",
"type": "string",
"enum": [
"Debug",
"Info",
"Warn",
"Error"
],
"default": "Warn",
"description": "Sets the logging level for the output channel."
},
"vbaLanguageServer.maxDocumentLines": {
"scope": "resource",
"type": "number",
"default": 5000,
"description": "Limits the file size the language server will attempt to parse."
},
"vbaLanguageServer.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"vbaLanguageServer.doWarnOptionExplicitMissing": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "The language server should warn when Option Explicit is not present."
},
"vbaLanguageServer.environment.os": {
"scope": "resource",
"type": "string",
"enum": [
"Win16",
"Win32",
"Win64",
"Mac"
],
"default": "Win64",
"description": "Controls which compiler sections to display."
},
"vbaLanguageServer.environment.version": {
"scope": "resource",
"type": "string",
"enum": [
"Vba6",
"Vba7"
],
"default": "Vba7",
"description": "Controls which compiler sections to display."
},
"vbaLanguageServer.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "verbose",
"description": "Traces the communication between VS Code and the language server."
}
}
},
"grammars": [
{
"language": "vba",
"scopeName": "source.vba",
"path": "./client/syntaxes/vba.tmLanguage.json"
}
],
"snippets": [
{
"language": "vba",
"path": "./snippets/vba.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"build": "npm-run-all -p build:* && npm run check-types && node esbuild.js",
"package": "npm-run-all -p build:* && npm run check-types && node esbuild.js --production",
"check-types": "tsc --noEmit",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"build:textMate": "npx js-yaml client/syntaxes/vba.tmLanguage.yaml > client/syntaxes/vba.tmLanguage.json",
"antlr": "npm-run-all -p build:antlr*",
"build:antlr": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vba.g4 -o ./server/src/antlr/out/",
"build:antlrPre": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vbapre.g4 -o ./server/src/antlr/out/",
"build:antlrFmt": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vbafmt.g4 -o ./server/src/antlr/out/",
"tmSnapUpdate": "vscode-tmgrammar-snap --updateSnapshot ./test/textmate/snapshot/*.??s",
"test": "npm run build && npm-run-all -p test:*:*",
"test:textMate:unit": "vscode-tmgrammar-test ./test/textmate/**/*.vba",
"test:textMate:snap": "vscode-tmgrammar-snap ./test/textmate/snapshot/*.??s",
"test:vsc:unit": "vscode-test",
"testsh": "sh ./scripts/e2e.sh",
"testps": "powershell ./scripts/e2e.ps1"
},
"dependencies": {
"antlr4ng": "^3.0.16",
"reflect-metadata": "^0.2.2",
"tsyringe": "^4.10.0",
"typescript-eslint": "^8.32.1"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^22.15.21",
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.5.2",
"antlr4ng-cli": "^2.0.0",
"esbuild": "^0.25.4",
"eslint": "^9.27.0",
"js-yaml": "^4.1.0",
"mocha": "^11.5.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.8.3",
"vscode-tmgrammar-test": "^0.1.3"
}
}