Skip to content

Commit 5fb96a6

Browse files
authored
Fix launch.json and activation stuck on cpptools.json downloading. (#1649)
* Fix launch.json and activation stuck on cpptools.json downloading.
1 parent 5e88dbf commit 5fb96a6

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed

Extension/.vscode/launch.json

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,30 @@
77
"type": "extensionHost",
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
10+
"args": [
11+
"--extensionDevelopmentPath=${workspaceFolder}"
12+
],
1113
"stopOnEntry": false,
1214
"sourceMaps": true,
13-
"outFiles": ["${workspaceRoot}/out/src"],
15+
"outFiles": [
16+
"${workspaceFolder}/out/**/*.js"
17+
],
1418
"preLaunchTask": "npm"
1519
},
1620
{
1721
"name": "Launch Tests",
1822
"type": "extensionHost",
1923
"request": "launch",
2024
"runtimeExecutable": "${execPath}",
21-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
25+
"args": [
26+
"--extensionDevelopmentPath=${workspaceFolder}",
27+
"--extensionTestsPath=${workspaceFolder}/out/test"
28+
],
2229
"stopOnEntry": false,
2330
"sourceMaps": true,
24-
"outFiles": ["${workspaceRoot}/out/test"],
31+
"outFiles": [
32+
"${workspaceFolder}/out/test/**/*.js"
33+
],
2534
"preLaunchTask": "npm"
2635
},
2736
{
@@ -31,20 +40,20 @@
3140
"port": 5858
3241
},
3342
{
34-
"name": "Launch Integration Tests",
35-
"type": "extensionHost",
36-
"request": "launch",
37-
"runtimeExecutable": "${execPath}",
38-
"args": [
39-
"${workspaceRoot}/test/integrationTests/testAssets/SimpleCppProject",
40-
"--extensionDevelopmentPath=${workspaceRoot}",
41-
"--extensionTestsPath=${workspaceRoot}/out/test/integrationTests"
42-
],
43-
"stopOnEntry": false,
44-
"sourceMaps": true,
45-
"outFiles": [
46-
"${workspaceRoot}/out/test/**/*.js"
47-
]
48-
},
43+
"name": "Launch Integration Tests",
44+
"type": "extensionHost",
45+
"request": "launch",
46+
"runtimeExecutable": "${execPath}",
47+
"args": [
48+
"${workspaceFolder}/test/integrationTests/testAssets/SimpleCppProject",
49+
"--extensionDevelopmentPath=${workspaceFolder}",
50+
"--extensionTestsPath=${workspaceFolder}/out/test/integrationTests"
51+
],
52+
"stopOnEntry": false,
53+
"sourceMaps": true,
54+
"outFiles": [
55+
"${workspaceFolder}/out/test/**/*.js"
56+
]
57+
},
4958
]
50-
}
59+
}

Extension/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ async function finalizeExtensionActivation(): Promise<void> {
282282

283283
// Redownload cpptools.json after activation so it's not blocked.
284284
// It'll be used after the extension reloads.
285-
return cpptoolsJsonUtils.downloadCpptoolsJsonPkg();
285+
cpptoolsJsonUtils.downloadCpptoolsJsonPkg();
286286
}
287287

288288
function rewriteManifest(): Promise<void> {

0 commit comments

Comments
 (0)