diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 18:40:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 18:40:33 +0800 |
commit | 67f6a20b27c98788843883c3712c648e110d781f (patch) | |
tree | 209705e0bc3c2c44d5ffade78cc2c7041eeffdda /.vscode | |
parent | a65a1ddb13854c2dfde4c04630a0a942abdafa32 (diff) | |
download | lua-language-server-67f6a20b27c98788843883c3712c648e110d781f.zip |
转移目录
Diffstat (limited to '.vscode')
-rw-r--r-- | .vscode/launch.json | 78 | ||||
-rw-r--r-- | .vscode/settings.json | 12 | ||||
-rw-r--r-- | .vscode/tasks.json | 87 |
3 files changed, 138 insertions, 39 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index f218c889..8c53b75b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,41 +1,41 @@ +// A launch configuration that compiles the extension and then opens it inside a new window { - "version": "0.2.0", - "configurations": [ - { - "name": "测试", - "type": "lua", - "request": "launch", - "stopOnEntry": false, - "program": "${workspaceRoot}/test/main.lua", - "cwd": "${workspaceRoot}", - "env": { - "PATH": "${workspaceRoot}\\bin\\" - }, - "luaRuntime": "5.3 32bit", - "luaexe": "${workspaceRoot}\\bin\\lua.exe", - "luadll": "${workspaceRoot}\\bin\\lua53.dll", - "path": "${workspaceRoot}/bin/?.lua", - "cpath": "${workspaceRoot}/bin/?.dll;", - "arg": [ - ], - "consoleCoding": "utf8", - "sourceCoding": "utf8" - }, - { - "name": "附加", - "type": "lua", - "request": "attach", - "stopOnEntry": true, - "sourceCoding": "utf8", - "consoleCoding": "utf8", - "ip": "localhost", - "port": 546858, - "sourceMaps": [ - [ - "C:\\Users\\sunyi\\.vscode\\extensions\\sumneko.lua-lsp\\server", - "${workspaceFolder}" - ] - ] - }, - ] + "version": "0.2.0", + "configurations": [ + { + "type": "extensionHost", + "request": "launch", + "name": "Launch Client", + "runtimeExecutable": "${execPath}", + "args": ["--extensionDevelopmentPath=${workspaceRoot}"], + "outFiles": ["${workspaceRoot}/client/out/**/*.js"], + "preLaunchTask": "npm: watch:client" + }, + { + "type": "node", + "request": "attach", + "name": "Attach to Server", + "port": 6009, + "restart": true, + "outFiles": ["${workspaceRoot}/server/out/**/*.js"] + }, + { + "name": "Language Server E2E Test", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceRoot}", + "--extensionTestsPath=${workspaceRoot}/client/out/test", + "${workspaceRoot}/client/testFixture" + ], + "outFiles": ["${workspaceRoot}/client/out/test/**/*.js"] + } + ], + "compounds": [ + { + "name": "Client + Server", + "configurations": ["Launch Client", "Attach to Server"] + } + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..040cd388 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "files.exclude": { + "out": false // set this to true to hide the "out" folder with the compiled JS files + }, + "search.exclude": { + "out": true // set this to false to include "out" folder in search results + }, + "typescript.tsdk": "./node_modules/typescript/lib", + "typescript.tsc.autoDetect": "off", + "npm.exclude": ["**/client", "**/server"], + "npm.enableScriptExplorer": true +}
\ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..d089ffb3 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,87 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "compile", + "dependsOn": [ + { + "type": "npm", + "script": "compile:client" + }, + { + "type": "npm", + "script": "compile:server" + } + ], + "problemMatcher": [] + }, + { + "type": "npm", + "script": "compile:client", + "group": "build", + "presentation": { + "panel": "dedicated", + "reveal": "never" + }, + "problemMatcher": [ + "$tsc" + ] + }, + { + "type": "npm", + "script": "compile:server", + "group": "build", + "presentation": { + "panel": "dedicated", + "reveal": "never" + }, + "problemMatcher": [ + "$tsc" + ] + }, + { + "label": "watch", + "dependsOn": [ + { + "type": "npm", + "script": "watch:client" + }, + { + "type": "npm", + "script": "watch:server" + } + ], + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "type": "npm", + "script": "watch:client", + "isBackground": true, + "group": "build", + "presentation": { + "panel": "dedicated", + "reveal": "never" + }, + "problemMatcher": [ + "$tsc-watch" + ] + }, + { + "type": "npm", + "script": "watch:server", + "isBackground": true, + "group": "build", + "presentation": { + "panel": "dedicated", + "reveal": "never" + }, + "problemMatcher": [ + "$tsc-watch" + ] + } + ] +}
\ No newline at end of file |