forked from aws/language-servers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.json
205 lines (205 loc) · 8.92 KB
/
launch.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to AWS Documents Language Server",
"type": "node",
"request": "attach",
"port": 6012, // Hard defined in the vscode client activation.ts
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/**/node_modules/**/*.js"],
"restart": {
"maxAttempts": 10,
"delay": 1000
}
},
{
"name": "BuildSpec Server",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-buildspec-runtimes/out/index.js"
},
"preLaunchTask": "npm: compile"
},
{
"name": "CloudFormation Server",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-cloudformation-runtimes/out/index.js"
},
"preLaunchTask": "npm: compile"
},
{
"name": "YAML Server",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-yaml-runtimes/out/index.js"
},
"preLaunchTask": "npm: compile"
},
{
"name": "JSON Server",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-json-runtimes/out/index.js"
},
"preLaunchTask": "npm: compile"
},
{
"name": "PartiQL Server",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-partiql-runtimes/build/aws-lsp-partiql-binary.js"
},
"preLaunchTask": "npm: compile"
},
{
"name": "CodeWhisperer Server Token",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode", "--disable-extensions"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-codewhisperer-runtimes/out/token-standalone.js",
"ENABLE_INLINE_COMPLETION": "true",
"ENABLE_TOKEN_PROVIDER": "true",
"ENABLE_CUSTOM_COMMANDS": "true",
"ENABLE_CHAT": "true",
"ENABLE_CUSTOMIZATIONS": "true"
// "HTTPS_PROXY": "http://127.0.0.1:8888",
// "AWS_CA_BUNDLE": "/path/to/cert.pem"
},
"preLaunchTask": "npm: compile"
},
{
"name": "CodeWhisperer Server IAM",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-codewhisperer-runtimes/out/iam-standalone.js",
"ENABLE_INLINE_COMPLETION": "true",
"ENABLE_IAM_PROVIDER": "true"
// "HTTPS_PROXY": "http://127.0.0.1:8888",
}
// "preLaunchTask": "npm: compile"
},
{
"name": "S3 Server (with Credentials support)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-s3-runtimes/out/index.js",
"ENABLE_IAM_PROVIDER": "true"
},
"preLaunchTask": "npm: compile"
},
{
"name": "Hello World Server",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode", "--disable-extensions"],
"outFiles": ["${workspaceFolder}/client/vscode/out/**/*.js"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/hello-world-lsp-runtimes/out/standalone.js",
"ENABLE_CUSTOM_COMMANDS": "true",
"ENABLE_CHAT": "true"
},
"preLaunchTask": "npm: compile"
},
{
"name": "Identity Server + VSCode Extension",
"type": "extensionHost",
"request": "launch",
"preLaunchTask": "watch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode", "--disable-extensions"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-identity-runtimes/out/standalone.js",
"ENABLE_IDENTITY": "true",
"ENABLE_TOKEN_PROVIDER": "true"
},
"outFiles": [
"${workspaceFolder}/client/vscode/out/**/*.js",
"${workspaceFolder}/app/aws-lsp-identity-runtimes/out/**/*.js",
"${workspaceFolder}/server/aws-lsp-identity/out/**/*.js"
],
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/**/node_modules/**/*.js"],
"autoAttachChildProcesses": true
},
{
"name": "Notification Server + VSCode Extension",
"type": "extensionHost",
"request": "launch",
"preLaunchTask": "watch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/client/vscode", "--disable-extensions"],
"env": {
"LSP_SERVER": "${workspaceFolder}/app/aws-lsp-notification-runtimes/out/standalone.js",
"ENABLE_NOTIFICATION": "true",
"ENABLE_TOKEN_PROVIDER": "true"
},
"outFiles": [
"${workspaceFolder}/client/vscode/out/**/*.js",
"${workspaceFolder}/app/aws-lsp-notification-runtimes/out/**/*.js",
"${workspaceFolder}/server/aws-lsp-notification/out/**/*.js"
],
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/**/node_modules/**/*.js"],
"autoAttachChildProcesses": true
},
{
"name": "Unit Tests",
"type": "node",
"request": "launch",
"preLaunchTask": "watch",
"program": "${workspaceFolder}/node_modules/.bin/mocha",
"args": ["--forbid-only=false", "--forbid-pending=false", "./**/out/**/*.test.js"],
"outFiles": ["${workspaceFolder}/**/out/**/*.(m|c|)js", "!**/node_modules/**"],
"console": "integratedTerminal"
},
{
"name": "Unit Tests (current tab)",
"type": "node",
"request": "launch",
"preLaunchTask": "watch",
"program": "${workspaceFolder}/node_modules/.bin/mocha",
"args": ["--forbid-only=false", "--forbid-pending=false", "./**/out/**/${fileBasenameNoExtension}.js"],
"outFiles": ["${workspaceFolder}/**/out/**/*.(m|c|)js", "!**/node_modules/**"],
"console": "integratedTerminal"
}
],
"compounds": [
{
"name": "Launch as VSCode Extension + Debugging",
"configurations": ["CodeWhisperer Server IAM", "Attach to AWS Documents Language Server"]
}
]
}