Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Update to latest vscode development setup #1

Merged
merged 1 commit into from
Oct 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
]
}