diff options
Diffstat (limited to '.vscode')
-rw-r--r-- | .vscode/launch.json | 31 | ||||
-rw-r--r-- | .vscode/tasks.json | 16 |
2 files changed, 26 insertions, 21 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index bbe1fd2e..12cfaef8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,18 +7,12 @@ { "name": "Server + Extension (VSCode)", "stopAll": true, - "configurations": [ - "Server", - "Extension (VSCode)" - ] + "configurations": ["Server", "Extension (VSCode)"] }, { "name": "Server + Tests (VSCode)", "stopAll": true, - "configurations": [ - "Server", - "Tests (VSCode)" - ] + "configurations": ["Server", "Tests (VSCode)"] } ], "configurations": [ @@ -27,12 +21,9 @@ "type": "python", "request": "launch", "module": "continuedev.src.continuedev.server.main", - "args": [ - "--port", - "8001" - ], + "args": ["--port", "8001"], "justMyCode": false, - "subProcess": false, + "subProcess": false // Does it need a build task? // What about a watch task? - type errors? }, @@ -45,11 +36,9 @@ // Pass a directory to manually test in "${workspaceFolder}/extension/manual-testing-sandbox", "${workspaceFolder}/extension/manual-testing-sandbox/example.ts", - "--extensionDevelopmentPath=${workspaceFolder}/extension", - ], - "outFiles": [ - "${workspaceFolder}/extension/out/**/*.js" + "--extensionDevelopmentPath=${workspaceFolder}/extension" ], + "outFiles": ["${workspaceFolder}/extension/out/**/*.js"], "preLaunchTask": "vscode-extension:build", "env": { "CONTINUE_SERVER_URL": "http://localhost:8001" @@ -77,10 +66,10 @@ "internalConsoleOptions": "openOnSessionStart", "preLaunchTask": "vscode-extension:tests:build", "env": { - "CONTINUE_SERVER_URL": "http://localhost:8001", + "CONTINUE_SERVER_URL": "http://localhost:65432", // Avoid timing out when stopping on breakpoints during debugging in VSCode - "MOCHA_TIMEOUT": "0", - }, + "MOCHA_TIMEOUT": "0" + } } ] -}
\ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c15edf0d..1a29668b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,6 +7,8 @@ "dependsOn": [ // To detect compile errors "vscode-extension:tsc", + // To build the react-app that is used in the extension + "vscode-extension:continue-ui:build", // To bundle the code the same way we do for publishing "vscode-extension:esbuild" ], @@ -50,6 +52,20 @@ "clear": true, }, }, + // Build the react-app. It gets bundled into the extension as a file resource and has a seprate build step + { + "label": "vscode-extension:continue-ui:build", + "type": "npm", + "script": "build", + "path": "extension/react-app", + "problemMatcher": [ + "$tsc" + ], + "presentation": { + "revealProblems": "onProblem", + "clear": true, + }, + }, // // Compile and bundle tests { |