forked from microsoft/vscode-extension-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
- Loading branch information
Akos Kitta
committed
Jul 23, 2019
1 parent
dec5333
commit 7f1230c
Showing
8 changed files
with
420 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
out | ||
node_modules | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.vscode/** | ||
out/**/*.map | ||
src/** | ||
.gitignore | ||
tsconfig.json | ||
tslint.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "quick-pick-hide", | ||
"displayName": "Complete Quick Pick API", | ||
"description": "See: https://github.com/theia-ide/theia/pull/5766", | ||
"version": "0.0.1", | ||
"publisher": "vscode-samples", | ||
"engines": { | ||
"vscode": "^1.32.0" | ||
}, | ||
"categories": [ | ||
"Other" | ||
], | ||
"activationEvents": [ | ||
"*" | ||
], | ||
"main": "./out/extension.js", | ||
"contributes": { | ||
"commands": [ | ||
{ | ||
"command": "quick.pick.hide.api", | ||
"title": "Sample: complete QuickPick hide API" | ||
} | ||
] | ||
}, | ||
"scripts": { | ||
"vscode:prepublish": "npm run compile", | ||
"compile": "tsc -p ./", | ||
"lint": "tslint -p ./", | ||
"watch": "tsc -watch -p ./" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "10.3.6", | ||
"tslint": "^5.16.0", | ||
"typescript": "^3.5.1", | ||
"@types/vscode": "^1.32.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as vscode from 'vscode'; | ||
|
||
export function activate(context: vscode.ExtensionContext) { | ||
const disposable = vscode.commands.registerCommand('quick.pick.hide.api', () => { | ||
const quickOpen = vscode.window.createQuickPick(); | ||
|
||
quickOpen.items = [ | ||
{ label: 'A' }, { label: 'B' } | ||
]; | ||
|
||
quickOpen.show(); | ||
|
||
setTimeout(() => { | ||
quickOpen.hide(); | ||
}, 2000); | ||
}); | ||
|
||
context.subscriptions.push(disposable); | ||
} |
Oops, something went wrong.