Skip to content

Commit f511faa

Browse files
AkatQuasTaotaoDong
and
TaotaoDong
authored
Launch extension with additional options when debugging (#1339)
<img width="1425" alt="image" src="https://github.com/user-attachments/assets/2a6ac8a5-7db8-4f0b-b0df-763c05be7e61" /> This PR add several options for starting extension in VS Code. Co-authored-by: TaotaoDong <dongtaotao@bytedance.com>
1 parent a381015 commit f511faa

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.vscode/launch.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77
"request": "launch",
88
"name": "Launch Client",
99
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-tailwindcss"],
10+
"args": [
11+
// enable this flag if you want to activate the extension only when you are debugging the extension
12+
// "--disable-extensions",
13+
"--disable-updates",
14+
"--disable-workspace-trust",
15+
"--skip-release-notes",
16+
"--skip-welcome",
17+
"--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-tailwindcss"
18+
],
1119
"stopOnEntry": false,
1220
"sourceMaps": true,
1321
"outFiles": ["${workspaceRoot}/packages/vscode-tailwindcss/dist/**/*.js"],

.vscode/tasks.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"panel": "dedicated",
2424
"reveal": "never"
2525
},
26+
"options": {
27+
"cwd": "${workspaceFolder}/packages/vscode-tailwindcss"
28+
},
2629
"problemMatcher": ["$tsc-watch"]
2730
}
2831
]

0 commit comments

Comments
 (0)