Skip to content

Commit deab1fb

Browse files
committed
update 1.99.0
1 parent 8a3dcde commit deab1fb

3 files changed

Lines changed: 48 additions & 18 deletions

File tree

deno.json

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

gen/out.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4917,7 +4917,7 @@ Returns VSCodeApi only within the vscode extension.
49174917
* used to represent line coverage.
49184918
* @param branchCoverage Branch coverage information
49194919
* @param declarationCoverage Declaration coverage information
4920-
* @param includesTests Test cases included in this coverage report, see {@link includesTests}
4920+
* @param includesTests Test cases included in this coverage report, see {@link FileCoverage.includesTests}
49214921
*/ new(uri: Uri, statementCoverage: TestCoverageCount, branchCoverage?: TestCoverageCount, declarationCoverage?: TestCoverageCount, includesTests?: TestItem[]): FileCoverage;
49224922
};
49234923
/**
@@ -5415,12 +5415,12 @@ type ValueOf<T> = T[keyof T];
54155415
* The position will be {@link TextDocument.validatePosition adjusted}.
54165416
*
54175417
* @param position A position.
5418-
* @returns A valid zero-based offset.
5418+
* @returns A valid zero-based offset in UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
54195419
*/ offsetAt(position: Position): number;
54205420
/**
54215421
* Converts a zero-based offset to a position.
54225422
*
5423-
* @param offset A zero-based offset.
5423+
* @param offset A zero-based offset into the document. This offset is in UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
54245424
* @returns A valid {@link Position}.
54255425
*/ positionAt(offset: number): Position;
54265426
/**
@@ -5474,6 +5474,8 @@ type ValueOf<T> = T[keyof T];
54745474
*/ readonly line: number;
54755475
/**
54765476
* The zero-based character value.
5477+
*
5478+
* Character offsets are expressed using UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
54775479
*/ readonly character: number;
54785480
/**
54795481
* Check if this position is before `other`.
@@ -6412,6 +6414,9 @@ type ValueOf<T> = T[keyof T];
64126414
/**
64136415
* A human-readable string which is rendered prominent. Supports rendering of {@link ThemeIcon theme icons} via
64146416
* the `$(<name>)`-syntax.
6417+
*
6418+
* Note: When {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Default} (so a regular item
6419+
* instead of a separator), it supports rendering of {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
64156420
*/ label: string;
64166421
/**
64176422
* The kind of QuickPickItem that will determine how this item is rendered in the quick pick. When not specified,
@@ -9955,6 +9960,16 @@ type ValueOf<T> = T[keyof T];
99559960
* For more information on events that can send data see "DEC Private Mode Set (DECSET)" on
99569961
* https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
99579962
*/ readonly isInteractedWith: boolean;
9963+
/**
9964+
* The detected shell type of the {@link Terminal}. This will be `undefined` when there is
9965+
* not a clear signal as to what the shell is, or the shell is not supported yet. This
9966+
* value should change to the shell type of a sub-shell when launched (for example, running
9967+
* `bash` inside `zsh`).
9968+
*
9969+
* Note that the possible values are currently defined as any of the following:
9970+
* 'bash', 'cmd', 'csh', 'fish', 'gitbash', 'julia', 'ksh', 'node', 'nu', 'pwsh', 'python',
9971+
* 'sh', 'wsl', 'zsh'.
9972+
*/ readonly shell: string | undefined;
99589973
}
99599974
/**
99609975
* [Shell integration](https://code.visualstudio.com/docs/terminal/shell-integration)-powered capabilities owned by a terminal.
@@ -12005,7 +12020,7 @@ type ValueOf<T> = T[keyof T];
1200512020
* Mimes type look ups are case-insensitive.
1200612021
*
1200712022
* Special mime types:
12008-
* - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
12023+
* - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
1200912024
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
1201012025
*/ get(mimeType: string): DataTransferItem | undefined;
1201112026
/**
@@ -15866,7 +15881,7 @@ type ValueOf<T> = T[keyof T];
1586615881
* This associates the tool invocation to a chat session.
1586715882
*/ readonly toolInvocationToken: ChatParticipantToolToken;
1586815883
/**
15869-
* This is the model that is currently selected in the UI. Extensions can use this or use {@link chat.selectChatModels} to
15884+
* This is the model that is currently selected in the UI. Extensions can use this or use {@link lm.selectChatModels} to
1587015885
* pick another model. Don't hold onto this past the lifetime of the request.
1587115886
*/ readonly model: LanguageModelChat;
1587215887
}
@@ -16008,7 +16023,7 @@ type ValueOf<T> = T[keyof T];
1600816023
/**
1600916024
* Represents a language model response.
1601016025
*
16011-
* @see {@link LanguageModelAccess.chatRequest}
16026+
* @see {@link ChatRequest}
1601216027
*/ export interface LanguageModelChatResponse {
1601316028
/**
1601416029
* An async iterable that is a stream of text and tool-call parts forming the overall response. A

mod.ts

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5524,7 +5524,7 @@ Returns VSCodeApi only within the vscode extension.
55245524
* used to represent line coverage.
55255525
* @param branchCoverage Branch coverage information
55265526
* @param declarationCoverage Declaration coverage information
5527-
* @param includesTests Test cases included in this coverage report, see {@link includesTests}
5527+
* @param includesTests Test cases included in this coverage report, see {@link FileCoverage.includesTests}
55285528
*/ new (
55295529
uri: Uri,
55305530
statementCoverage: TestCoverageCount,
@@ -6105,12 +6105,12 @@ type ValueOf<T> = T[keyof T];
61056105
* The position will be {@link TextDocument.validatePosition adjusted}.
61066106
*
61076107
* @param position A position.
6108-
* @returns A valid zero-based offset.
6108+
* @returns A valid zero-based offset in UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
61096109
*/ offsetAt(position: Position): number;
61106110
/**
61116111
* Converts a zero-based offset to a position.
61126112
*
6113-
* @param offset A zero-based offset.
6113+
* @param offset A zero-based offset into the document. This offset is in UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
61146114
* @returns A valid {@link Position}.
61156115
*/ positionAt(offset: number): Position;
61166116
/**
@@ -6167,6 +6167,8 @@ type ValueOf<T> = T[keyof T];
61676167
*/ readonly line: number;
61686168
/**
61696169
* The zero-based character value.
6170+
*
6171+
* Character offsets are expressed using UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
61706172
*/ readonly character: number;
61716173
/**
61726174
* Check if this position is before `other`.
@@ -7133,6 +7135,9 @@ type ValueOf<T> = T[keyof T];
71337135
/**
71347136
* A human-readable string which is rendered prominent. Supports rendering of {@link ThemeIcon theme icons} via
71357137
* the `$(<name>)`-syntax.
7138+
*
7139+
* Note: When {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Default} (so a regular item
7140+
* instead of a separator), it supports rendering of {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
71367141
*/ label: string;
71377142
/**
71387143
* The kind of QuickPickItem that will determine how this item is rendered in the quick pick. When not specified,
@@ -10966,6 +10971,16 @@ type ValueOf<T> = T[keyof T];
1096610971
* For more information on events that can send data see "DEC Private Mode Set (DECSET)" on
1096710972
* https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
1096810973
*/ readonly isInteractedWith: boolean;
10974+
/**
10975+
* The detected shell type of the {@link Terminal}. This will be `undefined` when there is
10976+
* not a clear signal as to what the shell is, or the shell is not supported yet. This
10977+
* value should change to the shell type of a sub-shell when launched (for example, running
10978+
* `bash` inside `zsh`).
10979+
*
10980+
* Note that the possible values are currently defined as any of the following:
10981+
* 'bash', 'cmd', 'csh', 'fish', 'gitbash', 'julia', 'ksh', 'node', 'nu', 'pwsh', 'python',
10982+
* 'sh', 'wsl', 'zsh'.
10983+
*/ readonly shell: string | undefined;
1096910984
}
1097010985
/**
1097110986
* [Shell integration](https://code.visualstudio.com/docs/terminal/shell-integration)-powered capabilities owned by a terminal.
@@ -13080,7 +13095,7 @@ type ValueOf<T> = T[keyof T];
1308013095
* Mimes type look ups are case-insensitive.
1308113096
*
1308213097
* Special mime types:
13083-
* - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
13098+
* - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
1308413099
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
1308513100
*/ get(mimeType: string): DataTransferItem | undefined;
1308613101
/**
@@ -17170,7 +17185,7 @@ type ValueOf<T> = T[keyof T];
1717017185
* This associates the tool invocation to a chat session.
1717117186
*/ readonly toolInvocationToken: ChatParticipantToolToken;
1717217187
/**
17173-
* This is the model that is currently selected in the UI. Extensions can use this or use {@link chat.selectChatModels} to
17188+
* This is the model that is currently selected in the UI. Extensions can use this or use {@link lm.selectChatModels} to
1717417189
* pick another model. Don't hold onto this past the lifetime of the request.
1717517190
*/ readonly model: LanguageModelChat;
1717617191
}
@@ -17324,7 +17339,7 @@ type ValueOf<T> = T[keyof T];
1732417339
/**
1732517340
* Represents a language model response.
1732617341
*
17327-
* @see {@link LanguageModelAccess.chatRequest}
17342+
* @see {@link ChatRequest}
1732817343
*/ export interface LanguageModelChatResponse {
1732917344
/**
1733017345
* An async iterable that is a stream of text and tool-call parts forming the overall response. A
@@ -17421,12 +17436,12 @@ type ValueOf<T> = T[keyof T];
1742117436
token?: CancellationToken,
1742217437
): Thenable<LanguageModelChatResponse>;
1742317438
/**
17424-
* Count the number of tokens in a message using the model specific tokenizer-logic.
17439+
* Count the number of tokens in a message using the model specific tokenizer-logic.
1742517440

17426-
* @param text A string or a message instance.
17427-
* @param token Optional cancellation token. See {@link CancellationTokenSource} for how to create one.
17428-
* @returns A thenable that resolves to the number of tokens.
17429-
*/ countTokens(
17441+
* @param text A string or a message instance.
17442+
* @param token Optional cancellation token. See {@link CancellationTokenSource} for how to create one.
17443+
* @returns A thenable that resolves to the number of tokens.
17444+
*/ countTokens(
1743017445
text: string | LanguageModelChatMessage,
1743117446
token?: CancellationToken,
1743217447
): Thenable<number>;

0 commit comments

Comments
 (0)