From 5512278d05e2cba27338e69d33f9d50f0beb4af4 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Sat, 17 Dec 2016 11:38:21 +0100 Subject: [PATCH] add statusbar sample --- .vscode/launch.json | 11 +++++++++++ .vscode/tasks.json | 13 +++++++++++++ README.md | 2 ++ package.json | 3 ++- 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0005c53a..b34a994b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f841a7b9..d2b175ac 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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", diff --git a/README.md b/README.md index 3523cc2a..e38c8af2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 64803f49..d14e4b38 100644 --- a/package.json +++ b/package.json @@ -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 .." } } \ No newline at end of file