Skip to content

Commit 36df4be

Browse files
committed
Updates to vscode.d.ts
1 parent 70fe08f commit 36df4be

File tree

1 file changed

+50
-7
lines changed

1 file changed

+50
-7
lines changed

src/extension/vscode.d.ts

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ declare module 'vscode' {
502502
constructor(anchorLine: number, anchorCharacter: number, activeLine: number, activeCharacter: number);
503503

504504
/**
505-
* A selection is reversed if {@link Selection.active active}.isBefore({@link Selection.anchor anchor}).
505+
* A selection is reversed if its {@link Selection.anchor anchor} is the {@link Selection.end end} position.
506506
*/
507507
isReversed: boolean;
508508
}
@@ -6420,6 +6420,17 @@ declare module 'vscode' {
64206420
*/
64216421
static Test: TaskGroup;
64226422

6423+
/**
6424+
* Whether the task that is part of this group is the default for the group.
6425+
* This property cannot be set through API, and is controlled by a user's task configurations.
6426+
*/
6427+
readonly isDefault?: boolean;
6428+
6429+
/**
6430+
* The ID of the task group. Is one of TaskGroup.Clean.id, TaskGroup.Build.id, TaskGroup.Rebuild.id, or TaskGroup.Test.id.
6431+
*/
6432+
readonly id: string;
6433+
64236434
private constructor(id: string, label: string);
64246435
}
64256436

@@ -7014,6 +7025,18 @@ declare module 'vscode' {
70147025
SymbolicLink = 64
70157026
}
70167027

7028+
export enum FilePermission {
7029+
/**
7030+
* The file is readonly.
7031+
*
7032+
* *Note:* All `FileStat` from a `FileSystemProvider` that is registered with
7033+
* the option `isReadonly: true` will be implicitly handled as if `FilePermission.Readonly`
7034+
* is set. As a consequence, it is not possible to have a readonly file system provider
7035+
* registered where some `FileStat` are not readonly.
7036+
*/
7037+
Readonly = 1
7038+
}
7039+
70177040
/**
70187041
* The `FileStat`-type represents metadata about a file
70197042
*/
@@ -7045,6 +7068,12 @@ declare module 'vscode' {
70457068
* example.
70467069
*/
70477070
size: number;
7071+
/**
7072+
* The permissions of the file, e.g. whether the file is readonly.
7073+
*
7074+
* *Note:* This value might be a bitmask, e.g. `FilePermission.Readonly | FilePermission.Other`.
7075+
*/
7076+
permissions?: FilePermission;
70487077
}
70497078

70507079
/**
@@ -7397,6 +7426,14 @@ declare module 'vscode' {
73977426
*/
73987427
readonly enableScripts?: boolean;
73997428

7429+
/**
7430+
* Controls whether forms are enabled in the webview content or not.
7431+
*
7432+
* Defaults to true if {@link enableScripts scripts are enabled}. Otherwise defaults to false.
7433+
* Explicitly setting this property to either true or false overrides the default.
7434+
*/
7435+
readonly enableForms?: boolean;
7436+
74007437
/**
74017438
* Controls whether command uris are enabled in webview content or not.
74027439
*
@@ -8180,6 +8217,11 @@ declare module 'vscode' {
81808217
*/
81818218
export const appRoot: string;
81828219

8220+
/**
8221+
* The environment in which the app is hosted in. i.e. 'desktop', 'codespaces', 'web'.
8222+
*/
8223+
export const appHost: string;
8224+
81838225
/**
81848226
* The custom uri scheme the editor registers to in the operating system.
81858227
*/
@@ -9250,7 +9292,7 @@ declare module 'vscode' {
92509292
* Get {@link TreeItem} representation of the `element`
92519293
*
92529294
* @param element The element for which {@link TreeItem} representation is asked for.
9253-
* @return {@link TreeItem} representation of the element
9295+
* @return TreeItem representation of the element.
92549296
*/
92559297
getTreeItem(element: T): TreeItem | Thenable<TreeItem>;
92569298

@@ -9989,7 +10031,8 @@ declare module 'vscode' {
998910031
buttons: readonly QuickInputButton[];
999010032

999110033
/**
9992-
* An event signaling when a button was triggered.
10034+
* An event signaling when a button in the title bar was triggered.
10035+
* This event does not fire for buttons on a {@link QuickPickItem}.
999310036
*/
999410037
readonly onDidTriggerButton: Event<QuickInputButton>;
999510038

@@ -10931,7 +10974,7 @@ declare module 'vscode' {
1093110974
* @param scope A scope for which the configuration is asked for.
1093210975
* @return The full configuration or a subset.
1093310976
*/
10934-
export function getConfiguration(section?: string | undefined, scope?: ConfigurationScope | null): WorkspaceConfiguration;
10977+
export function getConfiguration(section?: string, scope?: ConfigurationScope | null): WorkspaceConfiguration;
1093510978

1093610979
/**
1093710980
* An event that is emitted when the {@link WorkspaceConfiguration configuration} changed.
@@ -11551,7 +11594,7 @@ declare module 'vscode' {
1155111594
/**
1155211595
* The metadata of this cell. Can be anything but must be JSON-stringifyable.
1155311596
*/
11554-
readonly metadata: { [key: string]: any }
11597+
readonly metadata: { [key: string]: any };
1155511598

1155611599
/**
1155711600
* The outputs of this cell.
@@ -13790,7 +13833,7 @@ declare module 'vscode' {
1379013833
* to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
1379113834
* @param providerId The id of the provider to use
1379213835
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
13793-
* @param options The {@link GetSessionOptions} to use
13836+
* @param options The {@link AuthenticationGetSessionOptions} to use
1379413837
* @returns A thenable that resolves to an authentication session
1379513838
*/
1379613839
export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable<AuthenticationSession>;
@@ -13805,7 +13848,7 @@ declare module 'vscode' {
1380513848
* to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
1380613849
* @param providerId The id of the provider to use
1380713850
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
13808-
* @param options The {@link GetSessionOptions} to use
13851+
* @param options The {@link AuthenticationGetSessionOptions} to use
1380913852
* @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
1381013853
*/
1381113854
export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;

0 commit comments

Comments
 (0)