@@ -502,7 +502,7 @@ declare module 'vscode' {
502
502
constructor ( anchorLine : number , anchorCharacter : number , activeLine : number , activeCharacter : number ) ;
503
503
504
504
/**
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 .
506
506
*/
507
507
isReversed : boolean ;
508
508
}
@@ -6420,6 +6420,17 @@ declare module 'vscode' {
6420
6420
*/
6421
6421
static Test : TaskGroup ;
6422
6422
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
+
6423
6434
private constructor ( id : string , label : string ) ;
6424
6435
}
6425
6436
@@ -7014,6 +7025,18 @@ declare module 'vscode' {
7014
7025
SymbolicLink = 64
7015
7026
}
7016
7027
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
+
7017
7040
/**
7018
7041
* The `FileStat`-type represents metadata about a file
7019
7042
*/
@@ -7045,6 +7068,12 @@ declare module 'vscode' {
7045
7068
* example.
7046
7069
*/
7047
7070
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 ;
7048
7077
}
7049
7078
7050
7079
/**
@@ -7397,6 +7426,14 @@ declare module 'vscode' {
7397
7426
*/
7398
7427
readonly enableScripts ?: boolean ;
7399
7428
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
+
7400
7437
/**
7401
7438
* Controls whether command uris are enabled in webview content or not.
7402
7439
*
@@ -8180,6 +8217,11 @@ declare module 'vscode' {
8180
8217
*/
8181
8218
export const appRoot : string ;
8182
8219
8220
+ /**
8221
+ * The environment in which the app is hosted in. i.e. 'desktop', 'codespaces', 'web'.
8222
+ */
8223
+ export const appHost : string ;
8224
+
8183
8225
/**
8184
8226
* The custom uri scheme the editor registers to in the operating system.
8185
8227
*/
@@ -9250,7 +9292,7 @@ declare module 'vscode' {
9250
9292
* Get {@link TreeItem} representation of the `element`
9251
9293
*
9252
9294
* @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.
9254
9296
*/
9255
9297
getTreeItem ( element : T ) : TreeItem | Thenable < TreeItem > ;
9256
9298
@@ -9989,7 +10031,8 @@ declare module 'vscode' {
9989
10031
buttons : readonly QuickInputButton [ ] ;
9990
10032
9991
10033
/**
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}.
9993
10036
*/
9994
10037
readonly onDidTriggerButton : Event < QuickInputButton > ;
9995
10038
@@ -10931,7 +10974,7 @@ declare module 'vscode' {
10931
10974
* @param scope A scope for which the configuration is asked for.
10932
10975
* @return The full configuration or a subset.
10933
10976
*/
10934
- export function getConfiguration ( section ?: string | undefined , scope ?: ConfigurationScope | null ) : WorkspaceConfiguration ;
10977
+ export function getConfiguration ( section ?: string , scope ?: ConfigurationScope | null ) : WorkspaceConfiguration ;
10935
10978
10936
10979
/**
10937
10980
* An event that is emitted when the {@link WorkspaceConfiguration configuration} changed.
@@ -11551,7 +11594,7 @@ declare module 'vscode' {
11551
11594
/**
11552
11595
* The metadata of this cell. Can be anything but must be JSON-stringifyable.
11553
11596
*/
11554
- readonly metadata : { [ key : string ] : any }
11597
+ readonly metadata : { [ key : string ] : any } ;
11555
11598
11556
11599
/**
11557
11600
* The outputs of this cell.
@@ -13790,7 +13833,7 @@ declare module 'vscode' {
13790
13833
* to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
13791
13834
* @param providerId The id of the provider to use
13792
13835
* @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
13794
13837
* @returns A thenable that resolves to an authentication session
13795
13838
*/
13796
13839
export function getSession ( providerId : string , scopes : readonly string [ ] , options : AuthenticationGetSessionOptions & { createIfNone : true } ) : Thenable < AuthenticationSession > ;
@@ -13805,7 +13848,7 @@ declare module 'vscode' {
13805
13848
* to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
13806
13849
* @param providerId The id of the provider to use
13807
13850
* @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
13809
13852
* @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
13810
13853
*/
13811
13854
export function getSession ( providerId : string , scopes : readonly string [ ] , options ?: AuthenticationGetSessionOptions ) : Thenable < AuthenticationSession | undefined > ;
0 commit comments