mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
update mian read me and package json
This commit is contained in:
@ -5,9 +5,10 @@ Sample code illustrating the VS Code extension APIs.
|
||||
* [Editor Decoration](/decorator-sample/README.md)
|
||||
* [Virtual Documents](/contentprovider-sample/README.md)
|
||||
* [Preview Html](/previewhtml-sample/README.md)
|
||||
* [Vim](/vim-sample/README.md)
|
||||
|
||||
# How to run locally
|
||||
|
||||
* `git clone`
|
||||
* `npm run install-all`
|
||||
* run one of `npm run compile-decorator`, `npm run compile-previewhtml`, or `compile-contentprovider`
|
||||
* run one of `npm run compile-decorator`, `npm run compile-previewhtml`, or `compile-contentprovider`
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "vsc-extension-samples",
|
||||
"publisher": "Microsoft",
|
||||
"scripts": {
|
||||
"install-all": "npm --prefix decorator-sample i decorator-sample && npm --prefix previewhtml-sample i previewhtml-sample && npm --prefix contentprovider-sample i contentprovider-sample",
|
||||
"install-all": "npm --prefix decorator-sample i decorator-sample && npm --prefix previewhtml-sample i previewhtml-sample && npm --prefix contentprovider-sample i contentprovider-sample && npm --prefix vim-sample i vim-sample",
|
||||
"compile-decorator": "cd decorator-sample && npm run compile",
|
||||
"compile-previewhtml": "cd previewhtml-sample && npm run compile",
|
||||
"compile-contentprovider": "cd contentprovider-sample && npm run compile"
|
||||
|
||||
@ -179,7 +179,7 @@ export class Controller implements IController {
|
||||
private _interpretNormalModeInput(editor: TextEditor): Thenable<ITypeResult> {
|
||||
if (this._currentInput.startsWith(':')) {
|
||||
return vscode.window.showInputBox({value: 'tabm'}).then((value) => {
|
||||
let result = this._findMapping(value, editor);
|
||||
let result = this._findMapping(value || '', editor);
|
||||
return Promise.resolve(result);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user