From 5a9086b127090d232e63cdf613d5286db9c59104 Mon Sep 17 00:00:00 2001 From: vince-fugnitto Date: Wed, 9 Dec 2020 14:20:55 -0500 Subject: [PATCH] ext: add `.vscode` folder The following commit adds the `.vscode` folder which includes: - debug configuration - settings - tasks Signed-off-by: vince-fugnitto --- .vscode/launch.json | 41 +++++++++++++++++++++++++++++++++++ .vscode/license.code-snippets | 11 ++++++++++ .vscode/settings.json | 10 +++++++++ .vscode/tasks.json | 33 ++++++++++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/license.code-snippets create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..1d56fb9 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,41 @@ +// A launch configuration that compiles the extension and then opens it inside a new window +{ + "version": "0.2.0", + "configurations": [ + { + "type": "extensionHost", + "request": "launch", + "name": "Launch Client", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceRoot}" + ], + "outFiles": [ + "${workspaceRoot}/client/out/**/*.js" + ], + "preLaunchTask": { + "type": "npm", + "script": "watch" + } + }, + { + "type": "node", + "request": "attach", + "name": "Attach to Server", + "port": 6009, + "restart": true, + "outFiles": [ + "${workspaceRoot}/server/out/**/*.js" + ] + } + ], + "compounds": [ + { + "name": "Client + Server", + "configurations": [ + "Launch Client", + "Attach to Server" + ] + } + ] +} diff --git a/.vscode/license.code-snippets b/.vscode/license.code-snippets new file mode 100644 index 0000000..9594069 --- /dev/null +++ b/.vscode/license.code-snippets @@ -0,0 +1,11 @@ +{ + "Copyright-JS/JSX/TS/TSX/CSS": { + "prefix": [ + "header", + "copyright" + ], + "body": "/********************************************************************************\n * Copyright (C) $CURRENT_YEAR ${YourCompany} and others.\n *\n * This program and the accompanying materials are made available under the\n * terms of the Eclipse Public License v. 2.0 which is available at\n * http://www.eclipse.org/legal/epl-2.0.\n *\n * This Source Code may also be made available under the following Secondary\n * Licenses when the conditions for such availability set forth in the Eclipse\n * Public License v. 2.0 are satisfied: GNU General Public License, version 2\n * with the GNU Classpath Exception which is available at\n * https://www.gnu.org/software/classpath/license.html.\n *\n * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0\n ********************************************************************************/\n\n$0", + "description": "Adds the copyright...", + "scope": "javascript,javascriptreact,typescript,typescriptreact,css" + } +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4e03b22 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "editor.insertSpaces": false, + "tslint.enable": true, + "eslint.enable": true, + "typescript.tsc.autoDetect": "off", + "typescript.preferences.quoteStyle": "single", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + } +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f129682 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,33 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "compile", + "group": "build", + "presentation": { + "panel": "dedicated", + "reveal": "never" + }, + "problemMatcher": [ + "$tsc" + ] + }, + { + "type": "npm", + "script": "watch", + "isBackground": true, + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "panel": "dedicated", + "reveal": "never" + }, + "problemMatcher": [ + "$tsc-watch" + ] + } + ] +}