Skip to content

Commit 258152a

Browse files
authored
update @types/vscode version (DefinitelyTyped#72387)
1 parent 5e43537 commit 258152a

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

types/vscode/index.d.ts

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ declare module 'vscode' {
188188
* The position will be {@link TextDocument.validatePosition adjusted}.
189189
*
190190
* @param position A position.
191-
* @returns A valid zero-based offset.
191+
* @returns A valid zero-based offset in UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
192192
*/
193193
offsetAt(position: Position): number;
194194

195195
/**
196196
* Converts a zero-based offset to a position.
197197
*
198-
* @param offset A zero-based offset.
198+
* @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).
199199
* @returns A valid {@link Position}.
200200
*/
201201
positionAt(offset: number): Position;
@@ -263,6 +263,8 @@ declare module 'vscode' {
263263

264264
/**
265265
* The zero-based character value.
266+
*
267+
* Character offsets are expressed using UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
266268
*/
267269
readonly character: number;
268270

@@ -1881,6 +1883,9 @@ declare module 'vscode' {
18811883
/**
18821884
* A human-readable string which is rendered prominent. Supports rendering of {@link ThemeIcon theme icons} via
18831885
* the `$(<name>)`-syntax.
1886+
*
1887+
* Note: When {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Default} (so a regular item
1888+
* instead of a separator), it supports rendering of {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
18841889
*/
18851890
label: string;
18861891

@@ -7737,6 +7742,18 @@ declare module 'vscode' {
77377742
* https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
77387743
*/
77397744
readonly isInteractedWith: boolean;
7745+
7746+
/**
7747+
* The detected shell type of the {@link Terminal}. This will be `undefined` when there is
7748+
* not a clear signal as to what the shell is, or the shell is not supported yet. This
7749+
* value should change to the shell type of a sub-shell when launched (for example, running
7750+
* `bash` inside `zsh`).
7751+
*
7752+
* Note that the possible values are currently defined as any of the following:
7753+
* 'bash', 'cmd', 'csh', 'fish', 'gitbash', 'julia', 'ksh', 'node', 'nu', 'pwsh', 'python',
7754+
* 'sh', 'wsl', 'zsh'.
7755+
*/
7756+
readonly shell: string | undefined;
77407757
}
77417758

77427759
/**
@@ -11923,7 +11940,7 @@ declare module 'vscode' {
1192311940
* Mimes type look ups are case-insensitive.
1192411941
*
1192511942
* Special mime types:
11926-
* - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
11943+
* - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
1192711944
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
1192811945
*/
1192911946
get(mimeType: string): DataTransferItem | undefined;
@@ -18640,7 +18657,7 @@ declare module 'vscode' {
1864018657
* used to represent line coverage.
1864118658
* @param branchCoverage Branch coverage information
1864218659
* @param declarationCoverage Declaration coverage information
18643-
* @param includesTests Test cases included in this coverage report, see {@link includesTests}
18660+
* @param includesTests Test cases included in this coverage report, see {@link FileCoverage.includesTests}
1864418661
*/
1864518662
constructor(
1864618663
uri: Uri,
@@ -19487,7 +19504,7 @@ declare module 'vscode' {
1948719504
readonly toolInvocationToken: ChatParticipantToolToken;
1948819505

1948919506
/**
19490-
* This is the model that is currently selected in the UI. Extensions can use this or use {@link chat.selectChatModels} to
19507+
* This is the model that is currently selected in the UI. Extensions can use this or use {@link lm.selectChatModels} to
1949119508
* pick another model. Don't hold onto this past the lifetime of the request.
1949219509
*/
1949319510
readonly model: LanguageModelChat;
@@ -19780,7 +19797,7 @@ declare module 'vscode' {
1978019797
/**
1978119798
* Represents a language model response.
1978219799
*
19783-
* @see {@link LanguageModelAccess.chatRequest}
19800+
* @see {@link ChatRequest}
1978419801
*/
1978519802
export interface LanguageModelChatResponse {
1978619803

types/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/vscode",
4-
"version": "1.98.9999",
4+
"version": "1.99.9999",
55
"projects": [
66
"https://github.com/microsoft/vscode"
77
],

0 commit comments

Comments
 (0)