forked from smithy-lang/smithy-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
153 lines (153 loc) · 4.11 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
{
"name": "smithy-vscode-extension",
"displayName": "Smithy",
"description": "Smithy IDL Language Extension",
"version": "0.5.2",
"icon": "images/smithy.png",
"publisher": "smithy",
"engines": {
"vscode": "^1.65.0"
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/smithy-vscode.git"
},
"license": "Apache-2.0",
"prettier": {
"printWidth": 120
},
"categories": [
"Programming Languages",
"Snippets"
],
"activationEvents": [
"onLanguage:smithy",
"onCommand:smithy.runSelector"
],
"main": "./out/src/extension",
"preview": true,
"contributes": {
"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.2.2",
"description": "Version of the Smithy LSP (see https://github.com/smithy/smithy-language-server)"
},
"smithyLsp.rootPath": {
"scope": "resource",
"type": "string"
}
}
}
},
"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.1",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.23",
"@types/sinon": "^10.0.11",
"@types/vscode": "^1.65.0",
"@vscode/test-electron": "^2.1.3",
"glob": "^7.1.6",
"mocha": "^9.2.2",
"prettier": "^2.6.2",
"sinon": "^13.0.2",
"ts-loader": "^9.3.0",
"typescript": "^4.6.3",
"vsce": "^2.11.0",
"vscode-nls-dev": "^4.0.1",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"follow-redirects": "^1.14.9",
"vscode-languageclient": "^8.0.2",
"vscode-nls": "^5.2.0",
"vscode-tmgrammar-test": "^0.1.1"
}
}