Skip to content

Commit 8a3dcde

Browse files
committedMar 8, 2025
update 1.98.0
1 parent 67f02a9 commit 8a3dcde

File tree

3 files changed

+104
-33
lines changed

3 files changed

+104
-33
lines changed
 

‎deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@narumincho/vscode",
3-
"version": "1.97.0",
3+
"version": "1.98.0",
44
"exports": "./mod.ts",
55
"tasks": {
66
"build-example": "deno run -A ./example/build.ts"

‎gen/out.ts

+48-16
Original file line numberDiff line numberDiff line change
@@ -2923,14 +2923,14 @@ Returns VSCodeApi only within the vscode extension.
29232923
* A map containing a mapping of the mime type of the corresponding transferred data.
29242924
*
29252925
* 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
29272927
* an element in the same drag and drop controller.
29282928
*/ readonly DataTransfer: {
29292929
/**
29302930
* A map containing a mapping of the mime type of the corresponding transferred data.
29312931
*
29322932
* 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
29342934
* an element in the same drag and drop controller.
29352935
*/ new(): DataTransfer;
29362936
};
@@ -4680,7 +4680,7 @@ Returns VSCodeApi only within the vscode extension.
46804680
* @param options The {@link AuthenticationGetSessionOptions} to use
46814681
* @returns A thenable that resolves to an authentication session
46824682
*/ getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & {
4683-
createIfNone: true;
4683+
createIfNone: true | AuthenticationGetSessionPresentationOptions;
46844684
}): Thenable<AuthenticationSession>;
46854685
/**
46864686
* 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.
46954695
* @param options The {@link AuthenticationGetSessionOptions} to use
46964696
* @returns A thenable that resolves to an authentication session
46974697
*/ getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & {
4698-
forceNewSession: true | AuthenticationForceNewSessionOptions;
4698+
forceNewSession: true | AuthenticationGetSessionPresentationOptions | AuthenticationForceNewSessionOptions;
46994699
}): Thenable<AuthenticationSession>;
47004700
/**
47014701
* 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];
56395639
/**
56405640
* The position at which the selection starts.
56415641
* This position might be before or after {@link Selection.active active}.
5642-
*/ anchor: Position;
5642+
*/ readonly anchor: Position;
56435643
/**
56445644
* The position of the cursor.
56455645
* This position might be before or after {@link Selection.anchor anchor}.
5646-
*/ active: Position;
5646+
*/ readonly active: Position;
56475647
/**
56485648
* A selection is reversed if its {@link Selection.anchor anchor} is the {@link Selection.end end} position.
5649-
*/ isReversed: boolean;
5649+
*/ readonly isReversed: boolean;
56505650
};
56515651
/**
56525652
* Represents sources that can cause {@link window.onDidChangeTextEditorSelection selection change events}.
@@ -6098,6 +6098,9 @@ type ValueOf<T> = T[keyof T];
60986098
/**
60996099
* Add undo stop after making the edits.
61006100
*/ readonly undoStopAfter: boolean;
6101+
/**
6102+
* Keep whitespace of the {@link SnippetString.value} as is.
6103+
*/ readonly keepWhitespace?: boolean;
61016104
}): Thenable<boolean>;
61026105
/**
61036106
* 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];
74987501
/**
74997502
* The {@link SnippetString snippet} this edit will perform.
75007503
*/ snippet: SnippetString;
7504+
/**
7505+
* Whether the snippet edit should be applied with existing whitespace preserved.
7506+
*/ keepWhitespace?: boolean;
75017507
};
75027508
/**
75037509
* 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];
90679073
* Optional method which fills in the {@linkcode DocumentPasteEdit.additionalEdit} before the edit is applied.
90689074
*
90699075
* 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}.
90719077
*
90729078
* @param pasteEdit The {@linkcode DocumentPasteEdit} to resolve.
90739079
* @param token A cancellation token.
@@ -10416,7 +10422,7 @@ type ValueOf<T> = T[keyof T];
1041610422
* {@linkcode ExtensionContext.globalState globalState} to store key value data.
1041710423
*
1041810424
* @see {@linkcode FileSystem workspace.fs} for how to read and write files and folders from
10419-
* an uri.
10425+
* a uri.
1042010426
*/ readonly storageUri: Uri | undefined;
1042110427
/**
1042210428
* An absolute file path of a workspace specific directory in which the extension
@@ -11989,7 +11995,7 @@ type ValueOf<T> = T[keyof T];
1198911995
* A map containing a mapping of the mime type of the corresponding transferred data.
1199011996
*
1199111997
* 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
1199311999
* an element in the same drag and drop controller.
1199412000
*/ export type DataTransfer = {
1199512001
/**
@@ -11999,7 +12005,7 @@ type ValueOf<T> = T[keyof T];
1199912005
* Mimes type look ups are case-insensitive.
1200012006
*
1200112007
* 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,
1200312009
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
1200412010
*/ get(mimeType: string): DataTransferItem | undefined;
1200512011
/**
@@ -13953,6 +13959,24 @@ type ValueOf<T> = T[keyof T];
1395313959
* Whether this source control resource group is hidden when it contains
1395413960
* no {@link SourceControlResourceState source control resource states}.
1395513961
*/ 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;
1395613980
/**
1395713981
* This group's collection of
1395813982
* {@link SourceControlResourceState source control resource states}.
@@ -14618,13 +14642,17 @@ type ValueOf<T> = T[keyof T];
1461814642
*/ readonly label: string;
1461914643
}
1462014644
/**
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 {
1462314647
/**
1462414648
* An optional message that will be displayed to the user when we ask to re-authenticate. Providing additional context
1462514649
* as to why you are asking a user to re-authenticate can help increase the odds that they will accept.
1462614650
*/ detail?: string;
1462714651
}
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;
1462814656
/**
1462914657
* Options to be used when getting an {@link AuthenticationSession} from an {@link AuthenticationProvider}.
1463014658
*/ export interface AuthenticationGetSessionOptions {
@@ -14651,24 +14679,28 @@ type ValueOf<T> = T[keyof T];
1465114679
* on the accounts activity bar icon. An entry for the extension will be added under the menu to sign in. This
1465214680
* allows quietly prompting the user to sign in.
1465314681
*
14682+
* If you provide options, you will also see the dialog but with the additional context provided.
14683+
*
1465414684
* If there is a matching session but the extension has not been granted access to it, setting this to true
1465514685
* will also result in an immediate modal dialog, and false will add a numbered badge to the accounts icon.
1465614686
*
1465714687
* Defaults to false.
1465814688
*
1465914689
* Note: you cannot use this option with {@link AuthenticationGetSessionOptions.silent silent}.
14660-
*/ createIfNone?: boolean;
14690+
*/ createIfNone?: boolean | AuthenticationGetSessionPresentationOptions;
1466114691
/**
1466214692
* Whether we should attempt to reauthenticate even if there is already a session available.
1466314693
*
1466414694
* If true, a modal dialog will be shown asking the user to sign in again. This is mostly used for scenarios
1466514695
* where the token needs to be re minted because it has lost some authorization.
1466614696
*
14697+
* If you provide options, you will also see the dialog but with the additional context provided.
14698+
*
1466714699
* If there are no existing sessions and forceNewSession is true, it will behave identically to
1466814700
* {@link AuthenticationGetSessionOptions.createIfNone createIfNone}.
1466914701
*
1467014702
* This defaults to false.
14671-
*/ forceNewSession?: boolean | AuthenticationForceNewSessionOptions;
14703+
*/ forceNewSession?: boolean | AuthenticationGetSessionPresentationOptions | AuthenticationForceNewSessionOptions;
1467214704
/**
1467314705
* Whether we should show the indication to sign in in the Accounts menu.
1467414706
*
@@ -16169,7 +16201,7 @@ type ValueOf<T> = T[keyof T];
1616916201
*/ description: string;
1617016202
/**
1617116203
* A JSON schema for the input this tool accepts.
16172-
*/ inputSchema?: object;
16204+
*/ inputSchema?: object | undefined;
1617316205
}
1617416206
/**
1617516207
* A tool-calling mode for the language model to use.

0 commit comments

Comments
 (0)
Failed to load comments.