Mover sxample to latest version of the LSP

This commit is contained in:
Dirk Baeumer
2017-09-08 15:59:00 +02:00
parent 3487e6b2e7
commit cc17dabbae
5 changed files with 37 additions and 37 deletions

View File

@ -5,5 +5,6 @@
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
"typescript.tsdk": "./node_modules/typescript/lib"
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.tsc.autoDetect": "off"
}

View File

@ -2,31 +2,17 @@
"version": "2.0.0",
"tasks": [
{
"taskName": "Compile",
"taskName": "compile",
"dependsOn": [
"Client Compile",
"Server Compile"
"compile:client",
"compile:server"
],
"problemMatcher": []
},
{
"taskName": "Client Compile",
"type": "shell",
"command": "npm run client-compile",
"group": "build",
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": [
"$tsc"
]
},
{
"taskName": "Server Compile",
"type": "shell",
"command": "npm run server-compile",
"label": "compile:client",
"type": "npm",
"script": "compile:client",
"group": "build",
"presentation": {
"panel": "dedicated",
@ -37,10 +23,23 @@
]
},
{
"taskName": "Watch",
"label": "compile:server",
"type": "npm",
"script": "compile:server",
"group": "build",
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": [
"$tsc"
]
},
{
"taskName": "watch",
"dependsOn": [
"Client Watch",
"Server Watch"
"watch:client",
"watch:server"
],
"group": {
"kind": "build",
@ -49,9 +48,9 @@
"problemMatcher": []
},
{
"taskName": "Client Watch",
"type": "shell",
"command": "npm run client-watch",
"label": "watch:client",
"type": "npm",
"script": "watch:client",
"isBackground": true,
"group": "build",
"presentation": {
@ -63,9 +62,9 @@
]
},
{
"taskName": "Server Watch",
"type": "shell",
"command": "npm run server-watch",
"label": "watch:server",
"type": "npm",
"script": "watch:server",
"isBackground": true,
"group": "build",
"presentation": {

View File

@ -10,7 +10,7 @@
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"engines": {
"vscode": "^1.15.0"
"vscode": "^1.16.0"
},
"categories": [
"Other"
@ -53,6 +53,6 @@
},
"dependencies": {
"vscode": "^1.1.5",
"vscode-languageclient": "^3.3.0"
"vscode-languageclient": "^3.4.2"
}
}

View File

@ -12,10 +12,10 @@
"scripts": {
"postinstall": "cd server && npm install && cd ../client && npm install && cd ..",
"compile": "tsc -p client/tsconfig.json && cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json",
"client-compile": "tsc -p client/tsconfig.json",
"client-watch": "tsc -w -p client/tsconfig.json",
"server-compile": "cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json",
"server-watch": "cd server && npm run installServer && cd .. && tsc -w -p server/tsconfig.json"
"compile:client": "tsc -p client/tsconfig.json",
"watch:client": "tsc -w -p client/tsconfig.json",
"compile:server": "cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json",
"watch:server": "cd server && npm run installServer && cd .. && tsc -w -p server/tsconfig.json"
},
"devDependencies": {
"@types/mocha": "^2.2.42",

View File

@ -12,7 +12,7 @@
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"dependencies": {
"vscode-languageserver": "^3.3.0"
"vscode-languageserver": "^3.4.2"
},
"scripts": {
"installServer": "installServerIntoExtension ../client ./package.json ./tsconfig.json",