summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json42
-rw-r--r--.vscode/settings.json3
-rw-r--r--.vscode/tasks.json61
3 files changed, 101 insertions, 5 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index cc7b1ce4..c598750f 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -3,15 +3,47 @@
// 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": "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": "Extension (VSCode)",
+ "type": "extensionHost",
+ "request": "launch",
+ "cwd": "${workspaceFolder}/extension",
+ "args": [
+ "${workspaceFolder}/extension/manual-testing-sandbox",
+ "--extensionDevelopmentPath=${workspaceFolder}/extension",
+ ],
+ "outFiles": [
+ "${workspaceFolder}/extension/out/**/*.js"
+ ],
+ "preLaunchTask": "vscode-extension:build",
+ "env": {
+ "CONTINUE_SERVER_URL": "http://localhost:8001"
+ }
+ },
]
-}
+} \ No newline at end of file
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
new file mode 100644
index 00000000..64e18f28
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,61 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "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
+ }
+ },
+ {
+ "label": "vscode-extension:esbuild",
+ "type": "npm",
+ "script": "esbuild",
+ "path": "extension",
+ "problemMatcher": [
+ {
+ "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"
+ ],
+ "presentation": {
+ "revealProblems": "onProblem",
+ "clear": true,
+ },
+ },
+ // Install or update all dependencies for all projects in the monrepo
+ {
+ "label": "install-all-dependencies",
+ "type": "shell",
+ "command": "./install-dependencies.sh",
+ "problemMatcher": [], // Empty so users are not promted to select progress reporting
+ },
+ ]
+} \ No newline at end of file