-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
181 lines (181 loc) · 6.23 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
174
175
176
177
178
179
180
181
{
"name": "openscad-language-support",
"displayName": "OpenSCAD Language Support",
"description": "Maybe the best extension for OpenSCAD so far. Provides formatting, auto-completion, jump to definition, document symbols, and more you need!",
"version": "1.2.6",
"publisher": "Leathong",
"icon": "media/logo.png",
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
"vscode": "^1.61.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Formatters"
],
"keywords": [
"openscad",
"scad"
],
"homepage": "https://github.com/Leathong/openscad-support-vscode",
"bugs": {
"url": "https://github.com/Leathong/openscad-support-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Leathong/openscad-support-vscode"
},
"activationEvents": [
"onLanguage:scad",
"workspaceContains:**/*.scad",
"onCommand:scad-lsp.preview",
"onCommand:scad-lsp.cheatsheet",
"onWebviewPanel:cheatsheet"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "scad-lsp.cheatsheet",
"title": "Open Cheatsheet",
"category": "OpenSCAD"
},
{
"command": "scad-lsp.preview",
"title": "Preview in OpenSCAD",
"category": "OpenSCAD",
"icon": {
"light": "./media/icons/preview-light.svg",
"dark": "./media/icons/preview-dark.svg"
}
}
],
"menus": {
"editor/title": [
{
"command": "scad-lsp.preview",
"when": "editorLangId == scad",
"group": "navigation@-1.2"
}
],
"editor/title/context": [
{
"command": "scad-lsp.preview",
"when": "resourceLangId == scad",
"group": "navigation@0"
}
],
"explorer/context": [
{
"command": "scad-lsp.preview",
"when": "resourceLangId == scad",
"group": "navigation@-1.3"
}
],
"commandPalette": [
{
"command": "scad-lsp.preview",
"when": "editorLangId == scad || resourceLangId == scad"
}
]
},
"languages": [
{
"id": "scad",
"aliases": [
"OpenSCAD",
"openscad",
"scad"
],
"extensions": [
".scad"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./media/openscad.svg",
"dark": "./media/openscad.svg"
}
}
],
"snippets": [
{
"language": "scad",
"path": "./snippets/snippets.json"
}
],
"grammars": [
{
"language": "scad",
"scopeName": "source.scad",
"path": "./syntaxes/scad.tmLanguage.json"
}
],
"configuration": {
"title": "OpenSCAD-LSP",
"properties": {
"scad-lsp.searchPaths": {
"type": "string",
"description": "search paths for libs"
},
"scad-lsp.launchPath": {
"type": "string",
"default": "",
"markdownDescription": "Command to launch `openscad`. Either the path to the openscad executable, or just \"`openscad`\" (no quotes) if the executable is in the path. If left blank, it will use the default path for your system noted below:\n- Windows: `C:\\Program Files\\Openscad\\openscad.exe`\n- MacOS: `/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD`\n- Linux: `openscad` (Automatically in path)"
},
"scad-lsp.fmtStyle": {
"type": "string",
"default": "",
"description": "clang format style, options: LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit, file"
},
"scad-lsp.fmtExePath": {
"type": "string",
"default": "",
"description": "clang format executable path"
},
"scad-lsp.defaultParam": {
"type": "boolean",
"default": false,
"description": "if true, will include default params in auto-completion"
}
}
},
"keybindings": [
{
"command": "scad-lsp.preview",
"key": "f5",
"when": "resourceLangId == scad"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint -c .eslintrc.json --ext .ts src",
"format": "prettier --config .prettierrc.json --write ./src/**/*.ts && eslint -c .eslintrc.json --ext .ts src --fix",
"watch": "tsc -watch -p ./",
"update-grammar": "js-yaml syntaxes/scad.yaml-tmLanguage > syntaxes/scad.tmLanguage.json"
},
"devDependencies": {
"@types/command-exists": "^1.2.0",
"@types/jsdom": "^16.2.10",
"@types/node": "^12.12.6",
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^7.2.0",
"eslint-config-vscode-ext": "^1.0.0",
"eslint-plugin-prettier": "^3.4.0",
"js-yaml": "^3.14.1",
"prettier": "^2.3.0",
"typescript": "^4.0.0"
},
"dependencies": {
"command-exists": "^1.2.9",
"escape-string-regexp": "^4.0.0",
"jsdom": "^16.6.0",
"ste-signals": "^1.7.3",
"vscode-languageclient": "^8.0.2"
}
}