-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
173 lines (173 loc) · 4.8 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"name": "smithy-vscode-extension",
"displayName": "Smithy",
"description": "Smithy IDL Language Extension",
"version": "0.6.1",
"icon": "images/smithy.png",
"publisher": "smithy",
"engines": {
"vscode": "^1.84.1"
},
"repository": {
"type": "git",
"url": "https://github.com/smithy-lang/smithy-vscode.git"
},
"license": "Apache-2.0",
"prettier": {
"printWidth": 120
},
"categories": [
"Programming Languages",
"Snippets"
],
"main": "./out/src/extension",
"preview": true,
"contributes": {
"jsonValidation": [
{
"fileMatch": "smithy-build.json",
"url": "./smithy-build-schema.json"
}
],
"languages": [
{
"id": "smithy",
"aliases": [
"Smithy",
"smithy"
],
"extensions": [
".smithy"
],
"icon": {
"dark": "./images/smithy-file-icon.png",
"light": "./images/smithy-file-icon.png"
},
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "smithy",
"scopeName": "source.smithy",
"path": "./syntaxes/smithy.tmLanguage.json"
}
],
"snippets": [
{
"language": "smithy",
"path": "./snippets.json"
}
],
"commands": [
{
"command": "smithy.runSelector",
"title": "Smithy:Selector:Run"
},
{
"command": "smithy.clearSelector",
"title": "Smithy:Selector:Clear"
}
],
"menus": {
"commandPalette": [
{
"command": "smithy.runSelector",
"when": "editorLangId == smithy"
},
{
"command": "smithy.clearSelector",
"when": "editorLangId == smithy"
}
]
},
"configuration": {
"type": "object",
"title": "vscode-smithy configuration",
"properties": {
"smithyLsp.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"smithyLsp.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "verbose",
"description": "Traces the communication between VS Code and the language server."
},
"smithyLsp.version": {
"scope": "window",
"type": "string",
"default": "0.4.1",
"description": "Version of the Smithy Language Server (see https://github.com/smithy-lang/smithy-language-server)."
},
"smithyLsp.rootPath": {
"scope": "resource",
"type": "string"
},
"smithyLsp.diagnostics.minimumSeverity": {
"scope": "window",
"type": "string",
"enum": [
"NOTE",
"WARNING",
"DANGER",
"ERROR"
],
"default": "WARNING",
"description": "Minimum severity of Smithy validation events to display in the editor."
},
"smithyLsp.onlyReloadOnSave": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Whether to only re-load the Smithy model on save. Use this if the server feels slow as you type."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run webpack-package",
"webpack-package": "webpack --mode production --devtool hidden-source-map",
"compile": "tsc -p ./",
"install-plugin": "npm run package && code --install-extension smithy-vscode.vsix",
"package": "vsce package -o smithy-vscode.vsix",
"format": "prettier --write '**/*.{ts,js,json,yml}'",
"format-check": "prettier --check '**/*.{ts,js,json,yml}'",
"test-grammar": "npx vscode-tmgrammar-test -g syntaxes/smithy.tmLanguage.json 'tests/grammar/*'",
"test-extension": "npm run compile && npm run package && node ./out/tests/runTest.js",
"test": "npm run format-check && npm run test-grammar && npm run test-extension"
},
"devDependencies": {
"@types/follow-redirects": "^1.14.4",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.4",
"@types/node": "^18.18.9",
"@types/sinon": "^10.0.20",
"@types/vscode": "^1.84.1",
"@vscode/test-electron": "^2.4.0",
"@vscode/vsce": "^2.22.0",
"glob": "^9.3.5",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"sinon": "^15.2.0",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"vscode-nls-dev": "^4.0.4",
"vscode-tmgrammar-test": "^0.1.2",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"follow-redirects": "^1.15.6",
"vscode-languageclient": "^8.1.0",
"vscode-nls": "^5.2.0"
}
}