-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update WebviewPortMapping and proposed type (#4295)
* feat: update WebviewPortMapping type * chore: update DocumentFilter、WorkspaceTrustRequestOptions、requestWorkspaceTrust type positioin * chore: add proposed vscode statement * chore: update proposed quote
- Loading branch information
1 parent
d5f68e0
commit c174571
Showing
6 changed files
with
60 additions
and
57 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 was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
packages/types/vscode/typings-pending/vscode.proposed.d.ts
This file was deleted.
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
13 changes: 13 additions & 0 deletions
13
packages/types/vscode/typings/vscode.proposed.documentFiltersExclusive.d.ts
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,13 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
declare module 'vscode' { | ||
|
||
// todo@jrieken add issue reference | ||
|
||
export interface DocumentFilter { | ||
readonly exclusive?: boolean; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
packages/types/vscode/typings/vscode.proposed.workspaceTrust.d.ts
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,30 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
declare module 'vscode' { | ||
|
||
// https://github.com/microsoft/vscode/issues/120173 | ||
|
||
/** | ||
* The object describing the properties of the workspace trust request | ||
*/ | ||
export interface WorkspaceTrustRequestOptions { | ||
/** | ||
* Custom message describing the user action that requires workspace | ||
* trust. If omitted, a generic message will be displayed in the workspace | ||
* trust request dialog. | ||
*/ | ||
readonly message?: string; | ||
} | ||
|
||
export namespace workspace { | ||
/** | ||
* Prompt the user to chose whether to trust the current workspace | ||
* @param options Optional object describing the properties of the | ||
* workspace trust request. | ||
*/ | ||
export function requestWorkspaceTrust(options?: WorkspaceTrustRequestOptions): Thenable<boolean | undefined>; | ||
} | ||
} |