diff options
author | Kirill Dubovitskiy <kirill2003de@gmail.com> | 2023-08-05 02:15:20 -0700 |
---|---|---|
committer | Kirill Dubovitskiy <kirill2003de@gmail.com> | 2023-08-06 13:36:27 -0700 |
commit | 57139952995014ec154e5190a932c32f180aa5dc (patch) | |
tree | 9984bc846320af0863f387e57d7e72a748f99080 /.vscode | |
parent | 178e180e9c68ec7e89554c0b99a93dbb111c42b0 (diff) | |
download | sncontinue-57139952995014ec154e5190a932c32f180aa5dc.tar.gz sncontinue-57139952995014ec154e5190a932c32f180aa5dc.tar.bz2 sncontinue-57139952995014ec154e5190a932c32f180aa5dc.zip |
Initial stab at adding more launch configurations
Diffstat (limited to '.vscode')
-rw-r--r-- | .vscode/launch.json | 31 | ||||
-rw-r--r-- | .vscode/tasks.json | 49 |
2 files changed, 75 insertions, 5 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index cc7b1ce4..f6a37bed 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,13 +5,34 @@ "version": "0.2.0", "configurations": [ { - "name": "Python: Module", + "name": "Server", "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? + }, + { + "name": "VSCode Extension", + "type": "extensionHost", + "request": "launch", + "cwd": "${workspaceFolder}/extension", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}/extension", + ], + "outFiles": [ + "${workspaceFolder}/extension/out/**/*.js" + ], + "preLaunchTask": "vscode-extension:build-watch", + "env": { + "CONTINUE_SERVER_URL": "http://localhost:8001" + } + }, ] -} +}
\ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..aad0d2e4 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,49 @@ +// 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, + "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", + "type": "npm", + "script": "watch", + "path": "extension", + "isBackground": true, + "problemMatcher": [ + "$tsc-watch" + ], + // 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 + }, + "group": { + "kind": "build", + "isDefault": true + } + } + ] +}
\ No newline at end of file |