mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
add statusbar sample
This commit is contained in:
11
.vscode/launch.json
vendored
11
.vscode/launch.json
vendored
@ -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
13
.vscode/tasks.json
vendored
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 .."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user