Add lsp code action ui sample

This commit is contained in:
Dirk Baeumer
2019-11-15 19:19:44 +01:00
parent 92354b3a8a
commit 3fa2d68290
23 changed files with 5487 additions and 0 deletions

View File

@ -0,0 +1,33 @@
// 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=${workspaceFolder}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/client/out/**/*.js"],
"preLaunchTask": "npm: watch"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Server",
"address": "localhost",
"protocol": "inspector",
"port": 6011,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/server/out/**/*.js"]
}
],
"compounds": [
{
"name": "Client + Server",
"configurations": ["Launch Client", "Attach to Server"]
}
]
}

View File

@ -0,0 +1,29 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false
},
"search.exclude": {
"out": true,
"server": true
},
"files.trimTrailingWhitespace": true,
"editor.insertSpaces": false,
"editor.tabSize": 4,
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.tsc.autoDetect": "off",
"eslint.enable": true,
"eslint.validate": [
"typescript"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.workingDirectories": [
{ "directory": "./client", "changeProcessCWD": true },
{ "directory": "./server", "changeProcessCWD": true }
],
"eslint.trace.server": "off",
"eslint.lintTask.enable": false,
"eslint.format.enable": false
}

View File

@ -0,0 +1,36 @@
{
// 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",
"isBackground": true,
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "never",
"panel": "dedicated"
},
"problemMatcher": [
"$tsc-watch"
]
},
{
"type": "npm",
"script": "compile",
"isBackground": false,
"group": "build",
"presentation": {
"reveal": "never",
"panel": "dedicated"
},
"problemMatcher": [
"$tsc"
]
}
]
}