-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
154 lines (154 loc) · 4.08 KB
/
package.json
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
{
"name": "vba-lsp",
"type": "module",
"displayName": "VBA Pro",
"description": "A VBA extension for VSCode with Language Server support",
"icon": "images/vba-lsp-icon.png",
"author": "SSlinky",
"license": "MIT",
"version": "1.4.7",
"repository": {
"type": "git",
"url": "https://github.com/SSlinky/VBA-LanguageServer"
},
"publisher": "NotisDataAnalytics",
"categories": [
"Programming Languages",
"Snippets",
"Linters",
"Formatters"
],
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.63.0"
},
"main": "./client/out/extension",
"activationEvents": [],
"contributes": {
"languages": [
{
"id": "vba",
"aliases": [
"VBA"
],
"extensions": [
".bas",
".cls",
".frm"
],
"configuration": "./vba.language-configuration.json"
}
],
"configurationDefaults": {
"[vba]": {
"editor.semanticHighlighting.enabled": true
}
},
"configuration": {
"type": "object",
"title": "VBA Pro",
"properties": {
"vbaLanguageServer.maxDocumentLines": {
"scope": "resource",
"type": "number",
"default": 1000,
"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/out/vba.tmLanguage.json"
}
],
"snippets": [
{
"language": "vba",
"path": "./snippets/vba.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run antlr4ngPre && npm run antlr4ng && npm run textMate && npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"textMate": "npx js-yaml client/src/syntaxes/vba.tmLanguage.yaml > client/out/vba.tmLanguage.json",
"antlr4ng": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vba.g4 -o ./server/src/antlr/out/",
"antlr4ngPre": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vbapre.g4 -o ./server/src/antlr/out/",
"test": "npm run tmSnapTest && npm run tmUnitTest && npm run vsctest",
"testsh": "sh ./scripts/e2e.sh",
"testps": "powershell ./scripts/e2e.ps1",
"tmUnitTest": "vscode-tmgrammar-test ./test/textmate/**/*.vba",
"tmSnapTest": "vscode-tmgrammar-snap ./test/textmate/snapshot/*.??s",
"tmSnapUpdate": "vscode-tmgrammar-snap --updateSnapshot ./test/textmate/snapshot/*.??s",
"vsctest": "vscode-test"
},
"dependencies": {
"antlr4ng": "^3.0.14"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.6",
"@typescript-eslint/eslint-plugin": "^8.20.0",
"@typescript-eslint/parser": "^8.20.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"antlr4ng-cli": "^2.0.0",
"eslint": "^9.18.0",
"js-yaml": "^4.1.0",
"mocha": "^10.8.2",
"typescript": "^5.7.3",
"vscode-tmgrammar-test": "^0.1.3"
}
}