Skip to content

Commit

Permalink
Update to latest vscode develpment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
egamma committed Oct 19, 2015
1 parent 3ad6239 commit 26d01ad
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
7 changes: 3 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
"type": "extensionHost",
// path to VSCode executable
"runtimeExecutable": "${execPath}",
// force VSCode to create a new window and pass this project as an additonal plugin location
// add workspace path to %GOPATH% so that there is some meaningful contents
"args": [ "--new-window", "--extensionDevelopmentPath=${workspaceRoot}" ],
"args": [ "--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "out"
"outDir": "out",
"preLaunchTask": "npm"
},
{
"name": "debug-debugger",
Expand Down
20 changes: 11 additions & 9 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@
{
"version": "0.1.0",

// The command is tsc. Assumes that tsc 1.5.x or higher has been installed using npm install -g typescript
"command": "node_modules/.bin/tsc",
// we want to run npm
"command": "npm",

// The command is a shell script
// the command is a shell script
"isShellCommand": true,

// Show the output window only if unrecognized errors occur.
// show the output window only if unrecognized errors occur.
"showOutput": "silent",

// args is the HelloWorld program to compile.
"args": ["-w"],
// we run the custom script "compile" as defined in package.json
"args": ["run", "compile"],

// use the standard tsc problem matcher to find compile problems
// in the output.
"problemMatcher": "$tsc"
// The tsc compiler is started in watching mode
"isWatching": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
"publisher": "lukehoban",
"description": "Go support for Visual Studio Code",
"author": {
"name": "Microsoft Corporation"
"name": "Microsoft Corporation - Development Labs"
},
"private": true,
"repository": {
"type": "git",
"url": "https://monacotools.visualstudio.com/DefaultCollection/Monaco/_git/go-code"
"url": "https://github.com/Microsoft/vscode-go.git"
},
"scripts": {
"prepublish": "tsc"
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./"
},
"extensionDependencies": [
"vscode.go"
Expand All @@ -21,7 +22,7 @@
"json-rpc2": "^1.0.2"
},
"devDependencies": {
"typescript": "^1.6.2"
"vscode": "*"
},
"engines": {
"vscode": "*"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"target": "es5"
},
"exclude": [
"node_modules"
"node_modules"
]
}

0 comments on commit 26d01ad

Please sign in to comment.