From 18e1ada299918327eba5920a6c7c28393ffe7804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 21 Nov 2018 14:22:32 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=BC=94=E7=A4=BA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/extensions.json | 7 ++++++ .vscode/launch.json | 35 ++++------------------------- .vscode/settings.json | 12 +++------- .vscode/tasks.json | 60 +++---------------------------------------------- 4 files changed, 17 insertions(+), 97 deletions(-) create mode 100644 .vscode/extensions.json (limited to '.vscode') diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..ee71911b --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "eg2.tslint" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index a6428c55..99b82799 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,36 +2,6 @@ { "version": "0.2.0", "configurations": [ - { - "name": "测试", - "type": "lua", - "request": "launch", - "stopOnEntry": false, - "program": "${workspaceRoot}/server/test/main.lua", - "cwd": "${workspaceRoot}/server", - "env": { - "PATH": "${workspaceRoot}\\server\\bin\\" - }, - "luaRuntime": "5.3 32bit", - "luaexe": "${workspaceRoot}\\server\\bin\\lua.exe", - "luadll": "${workspaceRoot}\\server\\bin\\lua53.dll", - "path": "${workspaceRoot}/server/bin/?.lua", - "cpath": "${workspaceRoot}/server/bin/?.dll;", - "arg": [ - ], - "consoleCoding": "utf8", - "sourceCoding": "utf8" - }, - { - "name": "附加", - "type": "lua", - "request": "attach", - "stopOnEntry": true, - "sourceCoding": "utf8", - "consoleCoding": "utf8", - "ip": "localhost", - "port": 546858, - }, { "type": "extensionHost", "request": "launch", @@ -39,7 +9,10 @@ "runtimeExecutable": "${execPath}", "args": ["--extensionDevelopmentPath=${workspaceRoot}"], "outFiles": ["${workspaceRoot}/client/out/**/*.js"], - "preLaunchTask": "npm: watch:client" + "preLaunchTask": { + "type": "npm", + "script": "watch" + } }, { "type": "node", diff --git a/.vscode/settings.json b/.vscode/settings.json index 040cd388..4a9bab7c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,6 @@ { - "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", + "editor.insertSpaces": false, + "tslint.enable": true, "typescript.tsc.autoDetect": "off", - "npm.exclude": ["**/client", "**/server"], - "npm.enableScriptExplorer": true + "typescript.preferences.quoteStyle": "single" } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d089ffb3..5efd8048 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,23 +1,9 @@ { "version": "2.0.0", "tasks": [ - { - "label": "compile", - "dependsOn": [ - { - "type": "npm", - "script": "compile:client" - }, - { - "type": "npm", - "script": "compile:server" - } - ], - "problemMatcher": [] - }, { "type": "npm", - "script": "compile:client", + "script": "compile", "group": "build", "presentation": { "panel": "dedicated", @@ -29,52 +15,12 @@ }, { "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" - } - ], + "script": "watch", + "isBackground": true, "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" -- cgit v1.2.3