microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
cd27a87d48102f7ee25218755038ddf207a13ff5

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.vscode/launch.json

195lines · modecode

1{
2 // Use IntelliSense to learn about possible attributes.
3 // Hover to view descriptions of existing attributes.
4 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 "version": "0.2.0",
6 "configurations": [
7 {
8 "type": "node",
9 "request": "attach",
10 "name": "Attach to Default Port",
11 "port": 9229,
12 "smartStep": true,
13 "sourceMaps": true,
14 "skipFiles": ["<node_internals>/**/*.js"],
15 "outFiles": [
16 "${workspaceFolder}/packages/*/dist/**/*.js",
17 "${workspaceFolder}/packages/*/dist-dev/**/*.js"
18 ],
19 "presentation": {
20 "order": 999
21 }
22 },
23 {
24 "type": "node",
25 "request": "launch",
26 "name": "Debug Current Test File",
27 "autoAttachChildProcesses": true,
28 "skipFiles": ["<node_internals>/**", "**/node_modules/**"],
29 "program": "${workspaceRoot}/packages/compiler/node_modules/vitest/vitest.mjs",
30 "args": ["run", "${relativeFile}"],
31 "smartStep": true
32 },
33 {
34 "name": "Attach to Language Server",
35 "type": "node",
36 "request": "attach",
37 "port": 4242,
38 "restart": {
39 "delay": 100,
40 "maxAttempts": 10
41 },
42 "continueOnAttach": true,
43 "smartStep": true,
44 "sourceMaps": true,
45 "skipFiles": ["<node_internals>/**/*.js"],
46 "outFiles": [
47 "${workspaceFolder}/packages/*/dist/**/*.js",
48 "${workspaceFolder}/packages/*/dist-dev/**/*.js"
49 ],
50 "timeout": 60000,
51 "presentation": {
52 "order": 999
53 }
54 },
55 {
56 "type": "node",
57 "request": "launch",
58 "name": "Compile Scratch",
59 "program": "${workspaceFolder}/packages/compiler/entrypoints/cli.js",
60 "args": ["compile", "../samples/scratch", "--output-dir=temp/scratch-output"],
61 "smartStep": true,
62 "sourceMaps": true,
63 "skipFiles": ["<node_internals>/**/*.js"],
64 "outFiles": [
65 "${workspaceFolder}/packages/*/dist/**/*.js",
66 "${workspaceFolder}/packages/*/dist-dev/**/*.js"
67 ],
68 "cwd": "${workspaceFolder}/packages/compiler",
69 "presentation": {
70 "order": 2
71 }
72 },
73 {
74 "type": "node",
75 "request": "launch",
76 "name": "Compile Scratch (nostdlib)",
77 "program": "${workspaceFolder}/packages/compiler/entrypoints/cli.js",
78 "args": ["compile", "../samples/scratch", "--output-dir=temp/scratch-output", "--nostdlib"],
79 "smartStep": true,
80 "sourceMaps": true,
81 "skipFiles": ["<node_internals>/**/*.js"],
82 "outFiles": [
83 "${workspaceFolder}/packages/*/dist/**/*.js",
84 "${workspaceFolder}/packages/*/dist-dev/**/*.js"
85 ],
86 "cwd": "${workspaceFolder}/packages/compiler",
87 "presentation": {
88 "order": 2
89 }
90 },
91 {
92 "type": "node",
93 "request": "launch",
94 "name": "Debug tsp-pack",
95 "program": "${workspaceFolder}/packages/pack/dist/cli.js",
96 "args": ["main.tsp"],
97 "smartStep": true,
98 "sourceMaps": true,
99 "skipFiles": ["<node_internals>/**/*.js"],
100 "outFiles": [
101 "${workspaceFolder}/packages/*/dist/**/*.js",
102 "${workspaceFolder}/packages/*/dist-dev/**/*.js"
103 ],
104 "cwd": "${workspaceFolder}/packages/samples/scratch",
105 "presentation": {
106 "order": 2
107 }
108 },
109 {
110 "name": "Regenerate .tmlanguage",
111 "type": "node",
112 "program": "${workspaceFolder}/packages/typespec-vscode/scripts/generate-tmlanguage.js",
113 "request": "launch",
114 "cwd": "${workspaceFolder}/packages/typespec-vscode",
115 "presentation": {
116 "order": 999
117 }
118 },
119 {
120 "name": "VS Code Extension (Client)",
121 "type": "extensionHost",
122 "request": "launch",
123 "args": ["--extensionDevelopmentPath=${workspaceFolder}/packages/typespec-vscode"],
124 "outFiles": ["${workspaceFolder}/packages/typespec-vscode/dist/**/*.cjs"],
125 "env": {
126 // Log elapsed time for each call to server.
127 //"TYPESPEC_SERVER_LOG_TIMING": "true",
128
129 // Save .cpuprofile for last run of each server function here
130 // NOTE: This will add a lot of lag so don't trust logged timing if also enabled above.
131 //"TYPESPEC_SERVER_PROFILE_DIR": "${workspaceRoot}/temp",
132
133 // Use empty node options and don't debug while profiling to get the most accurate timing
134 //"TYPESPEC_SERVER_NODE_OPTIONS": "",
135
136 // Set the telemetry key environment variable to use if you dont want to set it in package.json
137 //"TYPESPEC_VSCODE_TELEMETRY_KEY": "{The instrumentation key of your Application Insights}",
138
139 // Enable debug logging for specific areas using TYPESPEC_DEBUG environment variable
140 // Examples:
141 // "TYPESPEC_DEBUG": "server.compile" - Enable server compilation debug logs
142 // "TYPESPEC_DEBUG": "lm" - Enable Language Model debug logs
143 // "TYPESPEC_DEBUG": "*" - Enable all debug logs
144 // "TYPESPEC_DEBUG": "server.compile,compile.config" - Enable multiple areas
145 //"TYPESPEC_DEBUG": "server.compile,update.manager,compile.config,lm",
146
147 "TYPESPEC_SERVER_NODE_OPTIONS": "--nolazy --inspect-brk=4242",
148 "TYPESPEC_DEVELOPMENT_MODE": "true"
149 },
150 "presentation": {
151 "hidden": true
152 }
153 },
154 {
155 "type": "node",
156 "request": "launch",
157 "name": "Debug TypeSpec Migrate",
158 "program": "${workspaceFolder}/packages/migrate/dist/src/cli.js",
159 "smartStep": true,
160 "sourceMaps": true,
161 "skipFiles": ["<node_internals>/**/*.js"]
162 },
163 {
164 "type": "node",
165 "request": "launch",
166 "name": "Debug Docs Generation",
167 "program": "${workspaceFolder}/packages/tspd/dist/src/cli.js",
168 "args": ["--enable-experimental", "doc", "--typekits", "."],
169 "cwd": "${workspaceFolder}/packages/http",
170 "smartStep": true,
171 "sourceMaps": true,
172 "skipFiles": ["<node_internals>/**/*.js"]
173 },
174 {
175 "name": "Run Web Extension in VS Code",
176 "type": "extensionHost",
177 "debugWebWorkerHost": true,
178 "request": "launch",
179 "args": [
180 "--extensionDevelopmentPath=${workspaceFolder}/packages/typespec-vscode",
181 "--extensionDevelopmentKind=web"
182 ],
183 "outFiles": ["${workspaceFolder}/dist/src/web/**/*.js"]
184 }
185 ],
186 "compounds": [
187 {
188 "name": "VS Code Extension",
189 "configurations": ["VS Code Extension (Client)", "Attach to Language Server"],
190 "presentation": {
191 "order": 1
192 }
193 }
194 ]
195}
196