@@ -2923,14 +2923,14 @@ Returns VSCodeApi only within the vscode extension.
2923
2923
* A map containing a mapping of the mime type of the corresponding transferred data.
2924
2924
*
2925
2925
* Drag and drop controllers that implement {@link TreeDragAndDropController.handleDrag `handleDrag`} can add additional mime types to the
2926
- * data transfer. These additional mime types will only be included in the `handleDrop` when the the drag was initiated from
2926
+ * data transfer. These additional mime types will only be included in the `handleDrop` when the drag was initiated from
2927
2927
* an element in the same drag and drop controller.
2928
2928
*/ readonly DataTransfer: {
2929
2929
/**
2930
2930
* A map containing a mapping of the mime type of the corresponding transferred data.
2931
2931
*
2932
2932
* Drag and drop controllers that implement {@link TreeDragAndDropController.handleDrag `handleDrag`} can add additional mime types to the
2933
- * data transfer. These additional mime types will only be included in the `handleDrop` when the the drag was initiated from
2933
+ * data transfer. These additional mime types will only be included in the `handleDrop` when the drag was initiated from
2934
2934
* an element in the same drag and drop controller.
2935
2935
*/ new(): DataTransfer;
2936
2936
};
@@ -4680,7 +4680,7 @@ Returns VSCodeApi only within the vscode extension.
4680
4680
* @param options The {@link AuthenticationGetSessionOptions} to use
4681
4681
* @returns A thenable that resolves to an authentication session
4682
4682
*/ getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & {
4683
- createIfNone: true;
4683
+ createIfNone: true | AuthenticationGetSessionPresentationOptions ;
4684
4684
}): Thenable<AuthenticationSession>;
4685
4685
/**
4686
4686
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
@@ -4695,7 +4695,7 @@ Returns VSCodeApi only within the vscode extension.
4695
4695
* @param options The {@link AuthenticationGetSessionOptions} to use
4696
4696
* @returns A thenable that resolves to an authentication session
4697
4697
*/ getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & {
4698
- forceNewSession: true | AuthenticationForceNewSessionOptions;
4698
+ forceNewSession: true | AuthenticationGetSessionPresentationOptions | AuthenticationForceNewSessionOptions;
4699
4699
}): Thenable<AuthenticationSession>;
4700
4700
/**
4701
4701
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
@@ -5639,14 +5639,14 @@ type ValueOf<T> = T[keyof T];
5639
5639
/**
5640
5640
* The position at which the selection starts.
5641
5641
* This position might be before or after {@link Selection.active active}.
5642
- */ anchor: Position;
5642
+ */ readonly anchor: Position;
5643
5643
/**
5644
5644
* The position of the cursor.
5645
5645
* This position might be before or after {@link Selection.anchor anchor}.
5646
- */ active: Position;
5646
+ */ readonly active: Position;
5647
5647
/**
5648
5648
* A selection is reversed if its {@link Selection.anchor anchor} is the {@link Selection.end end} position.
5649
- */ isReversed: boolean;
5649
+ */ readonly isReversed: boolean;
5650
5650
};
5651
5651
/**
5652
5652
* Represents sources that can cause {@link window.onDidChangeTextEditorSelection selection change events}.
@@ -6098,6 +6098,9 @@ type ValueOf<T> = T[keyof T];
6098
6098
/**
6099
6099
* Add undo stop after making the edits.
6100
6100
*/ readonly undoStopAfter: boolean;
6101
+ /**
6102
+ * Keep whitespace of the {@link SnippetString.value} as is.
6103
+ */ readonly keepWhitespace?: boolean;
6101
6104
}): Thenable<boolean>;
6102
6105
/**
6103
6106
* Adds a set of decorations to the text editor. If a set of decorations already exists with
@@ -7498,6 +7501,9 @@ type ValueOf<T> = T[keyof T];
7498
7501
/**
7499
7502
* The {@link SnippetString snippet} this edit will perform.
7500
7503
*/ snippet: SnippetString;
7504
+ /**
7505
+ * Whether the snippet edit should be applied with existing whitespace preserved.
7506
+ */ keepWhitespace?: boolean;
7501
7507
};
7502
7508
/**
7503
7509
* A notebook edit represents edits that should be applied to the contents of a notebook.
@@ -9067,7 +9073,7 @@ type ValueOf<T> = T[keyof T];
9067
9073
* Optional method which fills in the {@linkcode DocumentPasteEdit.additionalEdit} before the edit is applied.
9068
9074
*
9069
9075
* This is called once per edit and should be used if generating the complete edit may take a long time.
9070
- * Resolve can only be used to change {@linkcode DocumentPasteEdit.additionalEdit}.
9076
+ * Resolve can only be used to change {@linkcode DocumentPasteEdit.insertText} or {@linkcode DocumentPasteEdit. additionalEdit}.
9071
9077
*
9072
9078
* @param pasteEdit The {@linkcode DocumentPasteEdit} to resolve.
9073
9079
* @param token A cancellation token.
@@ -10416,7 +10422,7 @@ type ValueOf<T> = T[keyof T];
10416
10422
* {@linkcode ExtensionContext.globalState globalState} to store key value data.
10417
10423
*
10418
10424
* @see {@linkcode FileSystem workspace.fs} for how to read and write files and folders from
10419
- * an uri.
10425
+ * a uri.
10420
10426
*/ readonly storageUri: Uri | undefined;
10421
10427
/**
10422
10428
* An absolute file path of a workspace specific directory in which the extension
@@ -11989,7 +11995,7 @@ type ValueOf<T> = T[keyof T];
11989
11995
* A map containing a mapping of the mime type of the corresponding transferred data.
11990
11996
*
11991
11997
* Drag and drop controllers that implement {@link TreeDragAndDropController.handleDrag `handleDrag`} can add additional mime types to the
11992
- * data transfer. These additional mime types will only be included in the `handleDrop` when the the drag was initiated from
11998
+ * data transfer. These additional mime types will only be included in the `handleDrop` when the drag was initiated from
11993
11999
* an element in the same drag and drop controller.
11994
12000
*/ export type DataTransfer = {
11995
12001
/**
@@ -11999,7 +12005,7 @@ type ValueOf<T> = T[keyof T];
11999
12005
* Mimes type look ups are case-insensitive.
12000
12006
*
12001
12007
* Special mime types:
12002
- * - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
12008
+ * - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
12003
12009
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
12004
12010
*/ get(mimeType: string): DataTransferItem | undefined;
12005
12011
/**
@@ -13953,6 +13959,24 @@ type ValueOf<T> = T[keyof T];
13953
13959
* Whether this source control resource group is hidden when it contains
13954
13960
* no {@link SourceControlResourceState source control resource states}.
13955
13961
*/ hideWhenEmpty?: boolean;
13962
+ /**
13963
+ * Context value of the resource group. This can be used to contribute resource group specific actions.
13964
+ * For example, if a resource group is given a context value of `exportable`, when contributing actions to `scm/resourceGroup/context`
13965
+ * using `menus` extension point, you can specify context value for key `scmResourceGroupState` in `when` expressions, like `scmResourceGroupState == exportable`.
13966
+ * ```json
13967
+ * "contributes": {
13968
+ * "menus": {
13969
+ * "scm/resourceGroup/context": [
13970
+ * {
13971
+ * "command": "extension.export",
13972
+ * "when": "scmResourceGroupState == exportable"
13973
+ * }
13974
+ * ]
13975
+ * }
13976
+ * }
13977
+ * ```
13978
+ * This will show action `extension.export` only for resource groups with `contextValue` equal to `exportable`.
13979
+ */ contextValue?: string;
13956
13980
/**
13957
13981
* This group's collection of
13958
13982
* {@link SourceControlResourceState source control resource states}.
@@ -14618,13 +14642,17 @@ type ValueOf<T> = T[keyof T];
14618
14642
*/ readonly label: string;
14619
14643
}
14620
14644
/**
14621
- * Optional options to be used when calling {@link authentication.getSession} with the flag `forceNewSession`.
14622
- */ export interface AuthenticationForceNewSessionOptions {
14645
+ * Optional options to be used when calling {@link authentication.getSession} with interactive options `forceNewSession` & `createIfNone `.
14646
+ */ export interface AuthenticationGetSessionPresentationOptions {
14623
14647
/**
14624
14648
* An optional message that will be displayed to the user when we ask to re-authenticate. Providing additional context
14625
14649
* as to why you are asking a user to re-authenticate can help increase the odds that they will accept.
14626
14650
*/ detail?: string;
14627
14651
}
14652
+ /**
14653
+ * Optional options to be used when calling {@link authentication.getSession} with the flag `forceNewSession`.
14654
+ * @deprecated Use {@link AuthenticationGetSessionPresentationOptions} instead.
14655
+ */ export type AuthenticationForceNewSessionOptions = AuthenticationGetSessionPresentationOptions;
14628
14656
/**
14629
14657
* Options to be used when getting an {@link AuthenticationSession} from an {@link AuthenticationProvider}.
14630
14658
*/ export interface AuthenticationGetSessionOptions {
@@ -14651,24 +14679,28 @@ type ValueOf<T> = T[keyof T];
14651
14679
* on the accounts activity bar icon. An entry for the extension will be added under the menu to sign in. This
14652
14680
* allows quietly prompting the user to sign in.
14653
14681
*
14682
+ * If you provide options, you will also see the dialog but with the additional context provided.
14683
+ *
14654
14684
* If there is a matching session but the extension has not been granted access to it, setting this to true
14655
14685
* will also result in an immediate modal dialog, and false will add a numbered badge to the accounts icon.
14656
14686
*
14657
14687
* Defaults to false.
14658
14688
*
14659
14689
* Note: you cannot use this option with {@link AuthenticationGetSessionOptions.silent silent}.
14660
- */ createIfNone?: boolean;
14690
+ */ createIfNone?: boolean | AuthenticationGetSessionPresentationOptions ;
14661
14691
/**
14662
14692
* Whether we should attempt to reauthenticate even if there is already a session available.
14663
14693
*
14664
14694
* If true, a modal dialog will be shown asking the user to sign in again. This is mostly used for scenarios
14665
14695
* where the token needs to be re minted because it has lost some authorization.
14666
14696
*
14697
+ * If you provide options, you will also see the dialog but with the additional context provided.
14698
+ *
14667
14699
* If there are no existing sessions and forceNewSession is true, it will behave identically to
14668
14700
* {@link AuthenticationGetSessionOptions.createIfNone createIfNone}.
14669
14701
*
14670
14702
* This defaults to false.
14671
- */ forceNewSession?: boolean | AuthenticationForceNewSessionOptions;
14703
+ */ forceNewSession?: boolean | AuthenticationGetSessionPresentationOptions | AuthenticationForceNewSessionOptions;
14672
14704
/**
14673
14705
* Whether we should show the indication to sign in in the Accounts menu.
14674
14706
*
@@ -16169,7 +16201,7 @@ type ValueOf<T> = T[keyof T];
16169
16201
*/ description: string;
16170
16202
/**
16171
16203
* A JSON schema for the input this tool accepts.
16172
- */ inputSchema?: object;
16204
+ */ inputSchema?: object | undefined ;
16173
16205
}
16174
16206
/**
16175
16207
* A tool-calling mode for the language model to use.
0 commit comments