-
Notifications
You must be signed in to change notification settings - Fork 30.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propose "allowLocal" open dialog option API
Part of #131138
- Loading branch information
Showing
2 changed files
with
20 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
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 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
// https://github.com/microsoft/vscode/issues/131138 | ||
|
||
declare module 'vscode' { | ||
|
||
export interface OpenDialogOptions { | ||
/** | ||
* Controls whether the dialog allows users to select local files via the "Show Local" button. | ||
* Extensions that set this to `true` should check the scheme of the selected file. | ||
* | ||
* TODO: Workspace extensions already get only `file` scheme URIs back from the dialog. Should we ignore `allowLocal` for them? | ||
*/ | ||
allowLocal?: boolean; | ||
} | ||
} |