Skip to content

Commit 8e37232

Browse files
committed
update api and package
1 parent 2a34ed8 commit 8e37232

File tree

4 files changed

+84
-23
lines changed

4 files changed

+84
-23
lines changed

src/polyglot-notebooks-vscode-insiders/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"//version": "%description.version%",
1414
"version": "42.42.42",
1515
"engines": {
16-
"vscode": "^1.83.0"
16+
"vscode": "^1.84.0"
1717
},
1818
"bugs": {
1919
"url": "https://github.com/dotnet/interactive/issues"
@@ -219,7 +219,7 @@
219219
},
220220
"dotnet-interactive.requiredInteractiveToolVersion": {
221221
"type": "string",
222-
"default": "1.0.451701",
222+
"default": "1.0.460406",
223223
"description": "%description.requiredInteractiveToolVersion%"
224224
}
225225
}
@@ -847,4 +847,4 @@
847847
"vscode-uri": "3.0.6",
848848
"@vscode/l10n": "0.0.10"
849849
}
850-
}
850+
}

src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts

+45-15
Original file line numberDiff line numberDiff line change
@@ -888,14 +888,14 @@ declare module 'vscode' {
888888
}
889889

890890
/**
891-
* A reference to one of the workbench colors as defined in https://code.visualstudio.com/docs/getstarted/theme-color-reference.
891+
* A reference to one of the workbench colors as defined in https://code.visualstudio.com/api/references/theme-color.
892892
* Using a theme color is preferred over a custom color as it gives theme authors and users the possibility to change the color.
893893
*/
894894
export class ThemeColor {
895895

896896
/**
897897
* Creates a reference to a theme color.
898-
* @param id of the color. The available colors are listed in https://code.visualstudio.com/docs/getstarted/theme-color-reference.
898+
* @param id of the color. The available colors are listed in https://code.visualstudio.com/api/references/theme-color.
899899
*/
900900
constructor(id: string);
901901
}
@@ -1552,7 +1552,7 @@ declare module 'vscode' {
15521552
*/
15531553
with(change: {
15541554
/**
1555-
* The new scheme, defauls to this Uri's scheme.
1555+
* The new scheme, defaults to this Uri's scheme.
15561556
*/
15571557
scheme?: string;
15581558
/**
@@ -3025,12 +3025,12 @@ declare module 'vscode' {
30253025
export type MarkedString = string | {
30263026
/**
30273027
* The language of a markdown code block
3028-
* @deprecated, please use {@linkcode MarkdownString} instead
3028+
* @deprecated please use {@linkcode MarkdownString} instead
30293029
*/
30303030
language: string;
30313031
/**
30323032
* The code snippet of a markdown code block.
3033-
* @deprecated, please use {@linkcode MarkdownString} instead
3033+
* @deprecated please use {@linkcode MarkdownString} instead
30343034
*/
30353035
value: string;
30363036
};
@@ -4060,7 +4060,7 @@ declare module 'vscode' {
40604060
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
40614061
* the end of the snippet. Variables are defined with `$name` and
40624062
* `${name:default value}`. Also see
4063-
* [the full snippet syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_creating-your-own-snippets).
4063+
* [the full snippet syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets).
40644064
*/
40654065
export class SnippetString {
40664066

@@ -7330,11 +7330,10 @@ declare module 'vscode' {
73307330
* (shell) of the terminal.
73317331
*
73327332
* @param text The text to send.
7333-
* @param addNewLine Whether to add a new line to the text being sent, this is normally
7334-
* required to run a command in the terminal. The character(s) added are \n or \r\n
7335-
* depending on the platform. This defaults to `true`.
7333+
* @param shouldExecute Indicates that the text being sent should be executed rather than just inserted in the terminal.
7334+
* The character(s) added are \n or \r\n, depending on the platform. This defaults to `true`.
73367335
*/
7337-
sendText(text: string, addNewLine?: boolean): void;
7336+
sendText(text: string, shouldExecute?: boolean): void;
73387337

73397338
/**
73407339
* Show the terminal panel and reveal this terminal in the UI.
@@ -10203,7 +10202,7 @@ declare module 'vscode' {
1020310202
* * palette - Use the `commands`-section in `package.json` to make a command show in
1020410203
* the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette).
1020510204
* * keybinding - Use the `keybindings`-section in `package.json` to enable
10206-
* [keybindings](https://code.visualstudio.com/docs/getstarted/keybindings#_customizing-shortcuts)
10205+
* [keybindings](https://code.visualstudio.com/docs/getstarted/keybindings#_advanced-customization)
1020710206
* for your extension.
1020810207
*
1020910208
* Commands from other extensions and from the editor itself are accessible to an extension. However,
@@ -11320,7 +11319,7 @@ declare module 'vscode' {
1132011319
* tree objects in a data transfer. See the documentation for `DataTransferItem` for how best to take advantage of this.
1132111320
*
1132211321
* To add a data transfer item that can be dragged into the editor, use the application specific mime type "text/uri-list".
11323-
* The data for "text/uri-list" should be a string with `toString()`ed Uris separated by newlines. To specify a cursor position in the file,
11322+
* The data for "text/uri-list" should be a string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
1132411323
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
1132511324
*
1132611325
* @param source The source items for the drag and drop operation.
@@ -13342,13 +13341,13 @@ declare module 'vscode' {
1334213341
export function openTextDocument(uri: Uri): Thenable<TextDocument>;
1334313342

1334413343
/**
13345-
* A short-hand for `openTextDocument(Uri.file(fileName))`.
13344+
* A short-hand for `openTextDocument(Uri.file(path))`.
1334613345
*
1334713346
* @see {@link workspace.openTextDocument}
13348-
* @param fileName A name of a file on disk.
13347+
* @param path A path of a file on disk.
1334913348
* @returns A promise that resolves to a {@link TextDocument document}.
1335013349
*/
13351-
export function openTextDocument(fileName: string): Thenable<TextDocument>;
13350+
export function openTextDocument(path: string): Thenable<TextDocument>;
1335213351

1335313352
/**
1335413353
* Opens an untitled text document. The editor will prompt the user for a file
@@ -17610,6 +17609,37 @@ declare module 'vscode' {
1761017609
*/
1761117610
location?: Location;
1761217611

17612+
/**
17613+
* Context value of the test item. This can be used to contribute message-
17614+
* specific actions to the test peek view. The value set here can be found
17615+
* in the `testMessage` property of the following `menus` contribution points:
17616+
*
17617+
* - `testing/message/context` - context menu for the message in the results tree
17618+
* - `testing/message/content` - a prominent button overlaying editor content where
17619+
* the message is displayed.
17620+
*
17621+
* For example:
17622+
*
17623+
* ```json
17624+
* "contributes": {
17625+
* "menus": {
17626+
* "testing/message/content": [
17627+
* {
17628+
* "command": "extension.deleteCommentThread",
17629+
* "when": "testMessage == canApplyRichDiff"
17630+
* }
17631+
* ]
17632+
* }
17633+
* }
17634+
* ```
17635+
*
17636+
* The command will be called with an object containing:
17637+
* - `test`: the {@link TestItem} the message is associated with, *if* it
17638+
* is still present in the {@link TestController.items} collection.
17639+
* - `message`: the {@link TestMessage} instance.
17640+
*/
17641+
contextValue?: string;
17642+
1761317643
/**
1761417644
* Creates a new TestMessage that will present as a diff in the editor.
1761517645
* @param message Message to display to the user.

src/polyglot-notebooks-vscode/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"//version": "%description.version%",
1414
"version": "42.42.42",
1515
"engines": {
16-
"vscode": "^1.83.0"
16+
"vscode": "^1.84.0"
1717
},
1818
"bugs": {
1919
"url": "https://github.com/dotnet/interactive/issues"
@@ -219,7 +219,7 @@
219219
},
220220
"dotnet-interactive.requiredInteractiveToolVersion": {
221221
"type": "string",
222-
"default": "1.0.451701",
222+
"default": "1.0.460406",
223223
"description": "%description.requiredInteractiveToolVersion%"
224224
}
225225
}
@@ -847,4 +847,4 @@
847847
"vscode-uri": "3.0.6",
848848
"@vscode/l10n": "0.0.10"
849849
}
850-
}
850+
}

src/polyglot-notebooks-vscode/src/vscode.d.ts

+33-2
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ declare module 'vscode' {
15521552
*/
15531553
with(change: {
15541554
/**
1555-
* The new scheme, defauls to this Uri's scheme.
1555+
* The new scheme, defaults to this Uri's scheme.
15561556
*/
15571557
scheme?: string;
15581558
/**
@@ -11320,7 +11320,7 @@ declare module 'vscode' {
1132011320
* tree objects in a data transfer. See the documentation for `DataTransferItem` for how best to take advantage of this.
1132111321
*
1132211322
* To add a data transfer item that can be dragged into the editor, use the application specific mime type "text/uri-list".
11323-
* The data for "text/uri-list" should be a string with `toString()`ed Uris separated by newlines. To specify a cursor position in the file,
11323+
* The data for "text/uri-list" should be a string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
1132411324
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
1132511325
*
1132611326
* @param source The source items for the drag and drop operation.
@@ -17610,6 +17610,37 @@ declare module 'vscode' {
1761017610
*/
1761117611
location?: Location;
1761217612

17613+
/**
17614+
* Context value of the test item. This can be used to contribute message-
17615+
* specific actions to the test peek view. The value set here can be found
17616+
* in the `testMessage` property of the following `menus` contribution points:
17617+
*
17618+
* - `testing/message/context` - context menu for the message in the results tree
17619+
* - `testing/message/content` - a prominent button overlaying editor content where
17620+
* the message is displayed.
17621+
*
17622+
* For example:
17623+
*
17624+
* ```json
17625+
* "contributes": {
17626+
* "menus": {
17627+
* "testing/message/content": [
17628+
* {
17629+
* "command": "extension.deleteCommentThread",
17630+
* "when": "testMessage == canApplyRichDiff"
17631+
* }
17632+
* ]
17633+
* }
17634+
* }
17635+
* ```
17636+
*
17637+
* The command will be called with an object containing:
17638+
* - `test`: the {@link TestItem} the message is associated with, *if* it
17639+
* is still present in the {@link TestController.items} collection.
17640+
* - `message`: the {@link TestMessage} instance.
17641+
*/
17642+
contextValue?: string;
17643+
1761317644
/**
1761417645
* Creates a new TestMessage that will present as a diff in the editor.
1761517646
* @param message Message to display to the user.

0 commit comments

Comments
 (0)