web - document "open in desktop" better

This commit is contained in:
Benjamin Pasero 2020-02-12 11:33:36 +01:00
parent bdf11560cd
commit 0f7880a7ca
2 changed files with 17 additions and 0 deletions

View file

@ -86,6 +86,7 @@ export class OpenInDesktopAction extends Action {
// Show a picker with choices
const quickPick = this.quickInputService.createQuickPick<IApplicationLink>();
quickPick.items = links;
quickPick.placeholder = OpenInDesktopAction.LABEL;
quickPick.canSelectMany = false;
quickPick.onDidAccept(() => {
const selectedItems = quickPick.selectedItems;

View file

@ -59,7 +59,23 @@ interface IShowCandidate {
}
interface IApplicationLink {
/**
* A link that is opened in the OS. If you want to open VSCode it must
* follow our expected structure of links:
*
* <vscode|vscode-insiders>://<file|vscode-remote>/<authority>/<path>
*
* For example:
*
* vscode://vscode-remote/vsonline+2005711d/home/vsonline/workspace for
* a remote folder in VSO or vscode://file/home/workspace for a local folder.
*/
uri: URI;
/**
* A label for the link to display.
*/
label: string;
}