-
Notifications
You must be signed in to change notification settings - Fork 896
Expand file tree
/
Copy pathpackage.json
More file actions
208 lines (208 loc) · 8.67 KB
/
package.json
File metadata and controls
208 lines (208 loc) · 8.67 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{
"name": "native-preview",
"displayName": "TypeScript (Native Preview)",
"publisher": "TypeScriptTeam",
"author": "Microsoft Corp.",
"description": "Preview of the native TypeScript language server for Visual Studio Code.",
"icon": "logo.png",
"private": true,
"version": "0.0.0",
"type": "commonjs",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/typescript-go"
},
"enabledApiProposals": [
"multiDocumentHighlightProvider"
],
"engines": {
"vscode": "^1.110.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": false
}
},
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact"
],
"contributes": {
"configuration": [
{
"title": "TypeScript Native Preview",
"properties": {
"typescript.native-preview.customConfigFileName": {
"type": "string",
"default": "",
"description": "Custom config file name to use e.g. 'tsconfig.all.json', before defaulting to tsconfig.json/jsconfig.json.",
"tags": ["experimental"]
},
"typescript.native-preview.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "verbose",
"description": "Trace TypeScript Go server communication.",
"tags": [
"experimental"
]
},
"typescript.native-preview.pprofDir": {
"type": "string",
"description": "Directory to write pprof profiles to.",
"tags": [
"experimental"
]
},
"typescript.native-preview.tsdk": {
"type": "string",
"description": "Path to the @typescript/native-preview package or tsgo binary directory. If not specified, the extension will look for it in the default location.",
"tags": [
"experimental"
]
},
"typescript.native-preview.goMemLimit": {
"type": "string",
"description": "Set GOMEMLIMIT for the language server (e.g., '2048MiB', '4GiB'). See https://pkg.go.dev/runtime#hdr-Environment_Variables for more information.",
"pattern": "^[0-9]+(([KMGT]i)?B)?$",
"patternErrorMessage": "Must be a valid memory limit (e.g., '2048MiB', '4GiB').",
"tags": [
"experimental"
]
}
}
}
],
"commands": [
{
"command": "typescript.native-preview.enable",
"title": "Enable (Experimental)",
"enablement": "!typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.disable",
"title": "Disable",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.restart",
"title": "Restart Language Server",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.output.focus",
"title": "Show Output",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.lsp-trace.focus",
"title": "Show LSP Trace",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.reportIssue",
"title": "Report Issue",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.goToSourceDefinition",
"title": "Go to Source Definition",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"title": "Show References of CodeLens",
"command": "typescript.native-preview.codeLens.showLocations",
"enablement": "false"
},
{
"command": "typescript.native-preview.dev.runGC",
"title": "TypeScript Native Preview: Run Garbage Collection",
"enablement": "typescript.native-preview.serverRunning",
"category": "Developer"
},
{
"command": "typescript.native-preview.dev.saveHeapProfile",
"title": "TypeScript Native Preview: Save Heap Profile",
"enablement": "typescript.native-preview.serverRunning",
"category": "Developer"
},
{
"command": "typescript.native-preview.dev.saveAllocProfile",
"title": "TypeScript Native Preview: Save Allocation Profile",
"enablement": "typescript.native-preview.serverRunning",
"category": "Developer"
},
{
"command": "typescript.native-preview.dev.startCPUProfile",
"title": "TypeScript Native Preview: Start CPU Profile",
"enablement": "typescript.native-preview.serverRunning && !typescript.native-preview.cpuProfileRunning",
"category": "Developer"
},
{
"command": "typescript.native-preview.dev.stopCPUProfile",
"title": "TypeScript Native Preview: Stop CPU Profile",
"enablement": "typescript.native-preview.cpuProfileRunning",
"category": "Developer"
},
{
"command": "typescript.native-preview.initializeAPIConnection.ui",
"title": "Initialize API Connection",
"enablement": "typescript.native-preview.serverRunning",
"category": "Developer: TypeScript Native Preview"
}
],
"menus": {
"commandPalette": [
{
"command": "typescript.native-preview.goToSourceDefinition",
"when": "typescript.native-preview.serverRunning && tsSupportsSourceDefinition"
}
],
"editor/context": [
{
"command": "typescript.native-preview.goToSourceDefinition",
"when": "typescript.native-preview.serverRunning && tsSupportsSourceDefinition && (resourceLangId == typescript || resourceLangId == typescriptreact || resourceLangId == javascript || resourceLangId == javascriptreact)",
"group": "navigation@1.41"
}
]
}
},
"main": "./dist/extension.bundle.js",
"files": [
"dist/extension.bundle.js",
"lib",
"LICENSE",
"NOTICE.txt",
"logo.png"
],
"scripts": {
"build": "tsc && npm run bundle",
"bundle": "esbuild src/extension.ts --bundle --external:vscode --platform=node --format=cjs --outfile=dist/extension.bundle.js --sourcemap",
"watch": "npm run bundle -- --watch",
"//vscode:prepublish": "we do not use this hook; the Herebyfile runs bundle:release once instead",
"bundle:release": "npm run bundle -- --minify"
},
"dependencies": {
"@vscode/extension-telemetry": "^1.5.1",
"vscode-languageclient": "10.0.0-next.21",
"vscode-languageserver-protocol": "3.17.6-next.17"
},
"devDependencies": {
"@types/vscode": "~1.110.0",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.4"
}
}