@@ -888,14 +888,14 @@ declare module 'vscode' {
888
888
}
889
889
890
890
/**
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.
892
892
* Using a theme color is preferred over a custom color as it gives theme authors and users the possibility to change the color.
893
893
*/
894
894
export class ThemeColor {
895
895
896
896
/**
897
897
* 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.
899
899
*/
900
900
constructor(id: string);
901
901
}
@@ -1552,7 +1552,7 @@ declare module 'vscode' {
1552
1552
*/
1553
1553
with(change: {
1554
1554
/**
1555
- * The new scheme, defauls to this Uri's scheme.
1555
+ * The new scheme, defaults to this Uri's scheme.
1556
1556
*/
1557
1557
scheme?: string;
1558
1558
/**
@@ -3025,12 +3025,12 @@ declare module 'vscode' {
3025
3025
export type MarkedString = string | {
3026
3026
/**
3027
3027
* The language of a markdown code block
3028
- * @deprecated, please use {@linkcode MarkdownString} instead
3028
+ * @deprecated please use {@linkcode MarkdownString} instead
3029
3029
*/
3030
3030
language: string;
3031
3031
/**
3032
3032
* The code snippet of a markdown code block.
3033
- * @deprecated, please use {@linkcode MarkdownString} instead
3033
+ * @deprecated please use {@linkcode MarkdownString} instead
3034
3034
*/
3035
3035
value: string;
3036
3036
};
@@ -4060,7 +4060,7 @@ declare module 'vscode' {
4060
4060
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
4061
4061
* the end of the snippet. Variables are defined with `$name` and
4062
4062
* `${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).
4064
4064
*/
4065
4065
export class SnippetString {
4066
4066
@@ -7330,11 +7330,10 @@ declare module 'vscode' {
7330
7330
* (shell) of the terminal.
7331
7331
*
7332
7332
* @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`.
7336
7335
*/
7337
- sendText(text: string, addNewLine ?: boolean): void;
7336
+ sendText(text: string, shouldExecute ?: boolean): void;
7338
7337
7339
7338
/**
7340
7339
* Show the terminal panel and reveal this terminal in the UI.
@@ -10203,7 +10202,7 @@ declare module 'vscode' {
10203
10202
* * palette - Use the `commands`-section in `package.json` to make a command show in
10204
10203
* the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette).
10205
10204
* * 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 )
10207
10206
* for your extension.
10208
10207
*
10209
10208
* Commands from other extensions and from the editor itself are accessible to an extension. However,
@@ -11320,7 +11319,7 @@ declare module 'vscode' {
11320
11319
* tree objects in a data transfer. See the documentation for `DataTransferItem` for how best to take advantage of this.
11321
11320
*
11322
11321
* 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,
11324
11323
* set the Uri's fragment to `L3,5`, where 3 is the line number and 5 is the column number.
11325
11324
*
11326
11325
* @param source The source items for the drag and drop operation.
@@ -13342,13 +13341,13 @@ declare module 'vscode' {
13342
13341
export function openTextDocument(uri: Uri): Thenable<TextDocument>;
13343
13342
13344
13343
/**
13345
- * A short-hand for `openTextDocument(Uri.file(fileName ))`.
13344
+ * A short-hand for `openTextDocument(Uri.file(path ))`.
13346
13345
*
13347
13346
* @see {@link workspace.openTextDocument}
13348
- * @param fileName A name of a file on disk.
13347
+ * @param path A path of a file on disk.
13349
13348
* @returns A promise that resolves to a {@link TextDocument document}.
13350
13349
*/
13351
- export function openTextDocument(fileName : string): Thenable<TextDocument>;
13350
+ export function openTextDocument(path : string): Thenable<TextDocument>;
13352
13351
13353
13352
/**
13354
13353
* Opens an untitled text document. The editor will prompt the user for a file
@@ -17610,6 +17609,37 @@ declare module 'vscode' {
17610
17609
*/
17611
17610
location?: Location;
17612
17611
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
+
17613
17643
/**
17614
17644
* Creates a new TestMessage that will present as a diff in the editor.
17615
17645
* @param message Message to display to the user.
0 commit comments