diff options
author | Kirill Dubovitskiy <kirill2003de@gmail.com> | 2023-08-06 18:48:30 -0700 |
---|---|---|
committer | Kirill Dubovitskiy <kirill2003de@gmail.com> | 2023-08-06 18:48:30 -0700 |
commit | 400d1da490dab08a9b2ef2c88ab842ae5bc75620 (patch) | |
tree | 24dfa5980749952790abfa05db39255d89a79225 /.vscode | |
parent | 1598a614b248085d16006b79cd55f6fbce4d6bf5 (diff) | |
download | sncontinue-400d1da490dab08a9b2ef2c88ab842ae5bc75620.tar.gz sncontinue-400d1da490dab08a9b2ef2c88ab842ae5bc75620.tar.bz2 sncontinue-400d1da490dab08a9b2ef2c88ab842ae5bc75620.zip |
Added a launch configuration to start debugging both server + extension
Diffstat (limited to '.vscode')
-rw-r--r-- | .vscode/launch.json | 14 | ||||
-rw-r--r-- | .vscode/settings.json | 3 | ||||
-rw-r--r-- | .vscode/tasks.json | 61 |
3 files changed, 50 insertions, 28 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index f6a37bed..2c7d1a27 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,6 +3,16 @@ // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", + "compounds": [ + { + "name": "Server + Extension (VSCode)", + "stopAll": true, + "configurations": [ + "Server", + "Extension (VSCode)" + ] + } + ], "configurations": [ { "name": "Server", @@ -19,7 +29,7 @@ // What about a watch task? - type errors? }, { - "name": "VSCode Extension", + "name": "Extension (VSCode)", "type": "extensionHost", "request": "launch", "cwd": "${workspaceFolder}/extension", @@ -29,7 +39,7 @@ "outFiles": [ "${workspaceFolder}/extension/out/**/*.js" ], - "preLaunchTask": "vscode-extension:build-watch", + "preLaunchTask": "vscode-extension:build", "env": { "CONTINUE_SERVER_URL": "http://localhost:8001" } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..2195200a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.defaultInterpreterPath": "${workspaceFolder}/continuedev/.venv/bin/python", +}
\ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index aad0d2e4..3b6b62e8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,44 +1,53 @@ -// See https://go.microsoft.com/fwlink/?LinkId=733558 -// for the documentation about the tasks.json format { "version": "2.0.0", "tasks": [ { - "label": "vscode-extension:build-watch", - "type": "npm", - "script": "esbuild-watch", - "path": "extension", - "isBackground": true, + "label": "vscode-extension:build", + "dependsOn": [ + // To detect compile errors + "vscode-extension:tsc", + // To bundle the code the same way we do for publishing + "vscode-extension:esbuild" + ], "group": { "kind": "build", "isDefault": true - }, - "problemMatcher": [ - // We rely on tsc to emit type errors in a separate task - ], - // Depends on prevents the task from running until the other task has completed, not want we want - // does not start the extension - // "dependsOn": [ - // // esbuild does not emit type errors so we need a separate task for that - // // https://esbuild.github.io/content-types/#typescript - // "vscode-extension:tsc-watch" - // ] + } }, { - "label": "vscode-extension:tsc-watch", + "label": "vscode-extension:esbuild", "type": "npm", - "script": "watch", + "script": "esbuild", "path": "extension", - "isBackground": true, "problemMatcher": [ - "$tsc-watch" + { + "pattern": [ + { + "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + ], + } + ], + }, + // Tsc currently errors out due to testing setup issues, will be resolved in a different PR + // This will be useful for preventing debugging if there are compile errors + { + "label": "vscode-extension:tsc", + "type": "shell", + "command": "echo lol", + // "script": "tsc", + // "path": "extension", + "problemMatcher": [ + "$tsc" ], - // Problems are currently broken due to path resolution not being relative to the workspace root - // The way cursorless does it it by having top level package.json which is not ideal. - // Multi root workspaces would help here "presentation": { "revealProblems": "onProblem", - "clear": true + "clear": true, }, "group": { "kind": "build", |