Skip to content

Commit

Permalink
update api and package
Browse files Browse the repository at this point in the history
  • Loading branch information
colombod committed Dec 5, 2023
1 parent 2a34ed8 commit 8e37232
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/polyglot-notebooks-vscode-insiders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -219,7 +219,7 @@
},
"dotnet-interactive.requiredInteractiveToolVersion": {
"type": "string",
"default": "1.0.451701",
"default": "1.0.460406",
"description": "%description.requiredInteractiveToolVersion%"
}
}
Expand Down Expand Up @@ -847,4 +847,4 @@
"vscode-uri": "3.0.6",
"@vscode/l10n": "0.0.10"
}
}
}
60 changes: 45 additions & 15 deletions src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -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 {

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -13342,13 +13341,13 @@ declare module 'vscode' {
export function openTextDocument(uri: Uri): Thenable<TextDocument>;

/**
* 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<TextDocument>;
export function openTextDocument(path: string): Thenable<TextDocument>;

/**
* Opens an untitled text document. The editor will prompt the user for a file
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/polyglot-notebooks-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -219,7 +219,7 @@
},
"dotnet-interactive.requiredInteractiveToolVersion": {
"type": "string",
"default": "1.0.451701",
"default": "1.0.460406",
"description": "%description.requiredInteractiveToolVersion%"
}
}
Expand Down Expand Up @@ -847,4 +847,4 @@
"vscode-uri": "3.0.6",
"@vscode/l10n": "0.0.10"
}
}
}
35 changes: 33 additions & 2 deletions src/polyglot-notebooks-vscode/src/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8e37232

Please sign in to comment.