diff --git a/src/polyglot-notebooks-vscode-insiders/package.json b/src/polyglot-notebooks-vscode-insiders/package.json index cc3dcaa6d0..73afb428e9 100644 --- a/src/polyglot-notebooks-vscode-insiders/package.json +++ b/src/polyglot-notebooks-vscode-insiders/package.json @@ -13,7 +13,7 @@ "//version": "%description.version%", "version": "42.42.42", "engines": { - "vscode": "^1.83.0" + "vscode": "^1.84.0" }, "bugs": { "url": "https://github.com/dotnet/interactive/issues" @@ -219,7 +219,7 @@ }, "dotnet-interactive.requiredInteractiveToolVersion": { "type": "string", - "default": "1.0.451701", + "default": "1.0.460406", "description": "%description.requiredInteractiveToolVersion%" } } @@ -847,4 +847,4 @@ "vscode-uri": "3.0.6", "@vscode/l10n": "0.0.10" } -} \ No newline at end of file +} diff --git a/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts b/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts index 55b5473510..1c8a513e3f 100644 --- a/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts +++ b/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts @@ -888,14 +888,14 @@ declare module 'vscode' { } /** - * A reference to one of the workbench colors as defined in https://code.visualstudio.com/docs/getstarted/theme-color-reference. + * A reference to one of the workbench colors as defined in https://code.visualstudio.com/api/references/theme-color. * Using a theme color is preferred over a custom color as it gives theme authors and users the possibility to change the color. */ export class ThemeColor { /** * Creates a reference to a theme color. - * @param id of the color. The available colors are listed in https://code.visualstudio.com/docs/getstarted/theme-color-reference. + * @param id of the color. The available colors are listed in https://code.visualstudio.com/api/references/theme-color. */ constructor(id: string); } @@ -1552,7 +1552,7 @@ declare module 'vscode' { */ with(change: { /** - * The new scheme, defauls to this Uri's scheme. + * The new scheme, defaults to this Uri's scheme. */ scheme?: string; /** @@ -3025,12 +3025,12 @@ declare module 'vscode' { export type MarkedString = string | { /** * The language of a markdown code block - * @deprecated, please use {@linkcode MarkdownString} instead + * @deprecated please use {@linkcode MarkdownString} instead */ language: string; /** * The code snippet of a markdown code block. - * @deprecated, please use {@linkcode MarkdownString} instead + * @deprecated please use {@linkcode MarkdownString} instead */ value: string; }; @@ -4060,7 +4060,7 @@ declare module 'vscode' { * and `${3:foo}`. `$0` defines the final tab stop, it defaults to * the end of the snippet. Variables are defined with `$name` and * `${name:default value}`. Also see - * [the full snippet syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_creating-your-own-snippets). + * [the full snippet syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets). */ export class SnippetString { @@ -7330,11 +7330,10 @@ declare module 'vscode' { * (shell) of the terminal. * * @param text The text to send. - * @param addNewLine Whether to add a new line to the text being sent, this is normally - * required to run a command in the terminal. The character(s) added are \n or \r\n - * depending on the platform. This defaults to `true`. + * @param shouldExecute Indicates that the text being sent should be executed rather than just inserted in the terminal. + * The character(s) added are \n or \r\n, depending on the platform. This defaults to `true`. */ - sendText(text: string, addNewLine?: boolean): void; + sendText(text: string, shouldExecute?: boolean): void; /** * Show the terminal panel and reveal this terminal in the UI. @@ -10203,7 +10202,7 @@ declare module 'vscode' { * * palette - Use the `commands`-section in `package.json` to make a command show in * the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette). * * keybinding - Use the `keybindings`-section in `package.json` to enable - * [keybindings](https://code.visualstudio.com/docs/getstarted/keybindings#_customizing-shortcuts) + * [keybindings](https://code.visualstudio.com/docs/getstarted/keybindings#_advanced-customization) * for your extension. * * Commands from other extensions and from the editor itself are accessible to an extension. However, @@ -11320,7 +11319,7 @@ declare module 'vscode' { * tree objects in a data transfer. See the documentation for `DataTransferItem` for how best to take advantage of this. * * To add a data transfer item that can be dragged into the editor, use the application specific mime type "text/uri-list". - * 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, + * 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, * set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number. * * @param source The source items for the drag and drop operation. @@ -13342,13 +13341,13 @@ declare module 'vscode' { export function openTextDocument(uri: Uri): Thenable; /** - * A short-hand for `openTextDocument(Uri.file(fileName))`. + * A short-hand for `openTextDocument(Uri.file(path))`. * * @see {@link workspace.openTextDocument} - * @param fileName A name of a file on disk. + * @param path A path of a file on disk. * @returns A promise that resolves to a {@link TextDocument document}. */ - export function openTextDocument(fileName: string): Thenable; + export function openTextDocument(path: string): Thenable; /** * Opens an untitled text document. The editor will prompt the user for a file @@ -17610,6 +17609,37 @@ declare module 'vscode' { */ location?: Location; + /** + * Context value of the test item. This can be used to contribute message- + * specific actions to the test peek view. The value set here can be found + * in the `testMessage` property of the following `menus` contribution points: + * + * - `testing/message/context` - context menu for the message in the results tree + * - `testing/message/content` - a prominent button overlaying editor content where + * the message is displayed. + * + * For example: + * + * ```json + * "contributes": { + * "menus": { + * "testing/message/content": [ + * { + * "command": "extension.deleteCommentThread", + * "when": "testMessage == canApplyRichDiff" + * } + * ] + * } + * } + * ``` + * + * The command will be called with an object containing: + * - `test`: the {@link TestItem} the message is associated with, *if* it + * is still present in the {@link TestController.items} collection. + * - `message`: the {@link TestMessage} instance. + */ + contextValue?: string; + /** * Creates a new TestMessage that will present as a diff in the editor. * @param message Message to display to the user. diff --git a/src/polyglot-notebooks-vscode/package.json b/src/polyglot-notebooks-vscode/package.json index e1e24aaa6d..a004599a24 100644 --- a/src/polyglot-notebooks-vscode/package.json +++ b/src/polyglot-notebooks-vscode/package.json @@ -13,7 +13,7 @@ "//version": "%description.version%", "version": "42.42.42", "engines": { - "vscode": "^1.83.0" + "vscode": "^1.84.0" }, "bugs": { "url": "https://github.com/dotnet/interactive/issues" @@ -219,7 +219,7 @@ }, "dotnet-interactive.requiredInteractiveToolVersion": { "type": "string", - "default": "1.0.451701", + "default": "1.0.460406", "description": "%description.requiredInteractiveToolVersion%" } } @@ -847,4 +847,4 @@ "vscode-uri": "3.0.6", "@vscode/l10n": "0.0.10" } -} \ No newline at end of file +} diff --git a/src/polyglot-notebooks-vscode/src/vscode.d.ts b/src/polyglot-notebooks-vscode/src/vscode.d.ts index 55b5473510..010904619e 100644 --- a/src/polyglot-notebooks-vscode/src/vscode.d.ts +++ b/src/polyglot-notebooks-vscode/src/vscode.d.ts @@ -1552,7 +1552,7 @@ declare module 'vscode' { */ with(change: { /** - * The new scheme, defauls to this Uri's scheme. + * The new scheme, defaults to this Uri's scheme. */ scheme?: string; /** @@ -11320,7 +11320,7 @@ declare module 'vscode' { * tree objects in a data transfer. See the documentation for `DataTransferItem` for how best to take advantage of this. * * To add a data transfer item that can be dragged into the editor, use the application specific mime type "text/uri-list". - * 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, + * 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, * set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number. * * @param source The source items for the drag and drop operation. @@ -17610,6 +17610,37 @@ declare module 'vscode' { */ location?: Location; + /** + * Context value of the test item. This can be used to contribute message- + * specific actions to the test peek view. The value set here can be found + * in the `testMessage` property of the following `menus` contribution points: + * + * - `testing/message/context` - context menu for the message in the results tree + * - `testing/message/content` - a prominent button overlaying editor content where + * the message is displayed. + * + * For example: + * + * ```json + * "contributes": { + * "menus": { + * "testing/message/content": [ + * { + * "command": "extension.deleteCommentThread", + * "when": "testMessage == canApplyRichDiff" + * } + * ] + * } + * } + * ``` + * + * The command will be called with an object containing: + * - `test`: the {@link TestItem} the message is associated with, *if* it + * is still present in the {@link TestController.items} collection. + * - `message`: the {@link TestMessage} instance. + */ + contextValue?: string; + /** * Creates a new TestMessage that will present as a diff in the editor. * @param message Message to display to the user.