From afae77afba42de4b3a1f0643a039c9eed5581dc2 Mon Sep 17 00:00:00 2001 From: Sarmad Qadri Date: Tue, 6 Feb 2024 08:37:16 -0500 Subject: [PATCH] [easy] Create configs for debugging and launching vscode extension Adding `launch.json` and `tasks.json` to set up hot reloading debugger for vscode extension. More details here: https://docs.google.com/document/d/1eEqJ2nRTg9uyoeuIJ8C26MGN7Xb3JbKeI-8WT65dAkw/edit#heading=h.hdwz6fcvlys --- vscode-extension/.vscode/launch.json | 17 +++++++++++ vscode-extension/.vscode/settings.json | 3 ++ vscode-extension/.vscode/tasks.json | 20 ++++++++++++ vscode-extension/LICENSE | 21 +++++++++++++ vscode-extension/editor/.vscodeignore | 42 ++++++++++++++++++++++++++ 5 files changed, 103 insertions(+) create mode 100644 vscode-extension/.vscode/launch.json create mode 100644 vscode-extension/.vscode/settings.json create mode 100644 vscode-extension/.vscode/tasks.json create mode 100644 vscode-extension/LICENSE create mode 100644 vscode-extension/editor/.vscodeignore diff --git a/vscode-extension/.vscode/launch.json b/vscode-extension/.vscode/launch.json new file mode 100644 index 000000000..a0ca3cb93 --- /dev/null +++ b/vscode-extension/.vscode/launch.json @@ -0,0 +1,17 @@ +// A launch configuration that compiles the extension and then opens it inside a new window +// Use IntelliSense to learn about possible attributes. +// Hover to view descriptions of existing attributes. +// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Run Extension", + "type": "extensionHost", + "request": "launch", + "args": ["--extensionDevelopmentPath=${workspaceFolder}"], + "outFiles": ["${workspaceFolder}/out/**/*.js"], + "preLaunchTask": "${defaultBuildTask}" + } + ] +} diff --git a/vscode-extension/.vscode/settings.json b/vscode-extension/.vscode/settings.json new file mode 100644 index 000000000..23fd35f0e --- /dev/null +++ b/vscode-extension/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": true +} \ No newline at end of file diff --git a/vscode-extension/.vscode/tasks.json b/vscode-extension/.vscode/tasks.json new file mode 100644 index 000000000..078ff7e01 --- /dev/null +++ b/vscode-extension/.vscode/tasks.json @@ -0,0 +1,20 @@ +// See https://go.microsoft.com/fwlink/?LinkId=733558 +// for the documentation about the tasks.json format +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "watch", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} diff --git a/vscode-extension/LICENSE b/vscode-extension/LICENSE new file mode 100644 index 000000000..4e70c6588 --- /dev/null +++ b/vscode-extension/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 - present LastMile AI, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vscode-extension/editor/.vscodeignore b/vscode-extension/editor/.vscodeignore new file mode 100644 index 000000000..a6ff66ca7 --- /dev/null +++ b/vscode-extension/editor/.vscodeignore @@ -0,0 +1,42 @@ +# dependencies +.git +.vscode +src/ +test/ +**/node_modules/**/* +/.pnp +.pnp.js + +# testing +/coverage + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* \ No newline at end of file