add statusbar sample

This commit is contained in:
Benjamin Pasero
2016-12-17 11:38:21 +01:00
parent 327c876a1a
commit 5512278d05
4 changed files with 28 additions and 1 deletions

11
.vscode/launch.json vendored
View File

@ -35,6 +35,17 @@
"outFiles": ["${workspaceRoot}/contentprovider-sample/out/**/*.js"],
"preLaunchTask": "compile-contentprovider"
},
{
"name": "Launch Status Bar Sample",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}/statusbar-sample" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/statusbar-sample/out/**/*.js"],
"preLaunchTask": "compile-statusbar"
},
{
"name": "Launch Language Provider Sample",
"type": "extensionHost",

13
.vscode/tasks.json vendored
View File

@ -46,6 +46,19 @@
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
},
{
// in package.json we have a compile task for each example
"taskName": "compile-statusbar",
// show the output window only if unrecognized errors occur.
"showOutput": "silent",
// 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"
},
{
// in package.json we have a compile task for each example
"taskName": "compile-contentprovider",

View File

@ -8,6 +8,7 @@ Sample code illustrating the VS Code extension APIs.
* [Preview Html](/previewhtml-sample/README.md)
* [Vim](/vim-sample/README.md)
* [Integrated Terminal](/terminal-example/README.md)
* [Status Bar](/statusbar-sample/README.md)
* Experimental: [Tree Explorer](/tree-explorer/README.md)
# How to run locally
@ -19,4 +20,5 @@ Sample code illustrating the VS Code extension APIs.
* `npm run compile-previewhtml`
* `npm run compile-contentprovider`
* `npm run compile-languageprovider`
* `npm run compile-statusbar`
* launch the sample from the debug viewlet

View File

@ -6,6 +6,7 @@
"compile-decorator": "cd decorator-sample && npm run compile",
"compile-previewhtml": "cd previewhtml-sample && npm run compile",
"compile-contentprovider": "cd contentprovider-sample && npm run compile",
"compile-languageprovider": "cd languageprovider-sample && npm run compile && cd .."
"compile-languageprovider": "cd languageprovider-sample && npm run compile && cd ..",
"compile-statusbar": "cd statusbar-sample && npm run compile && cd .."
}
}