Skip to content

Commit 51c33c6

Browse files
colombodjonsequitur
authored andcommitted
update api and engine version
1 parent 9ca2fc3 commit 51c33c6

File tree

4 files changed

+130
-17
lines changed

4 files changed

+130
-17
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"//version": "The version '42.42.42' is auto-set during CI package creation.",
1414
"version": "42.42.42",
1515
"engines": {
16-
"vscode": "1.77.0-insider"
16+
"vscode": "1.78.0-insider"
1717
},
1818
"bugs": {
1919
"url": "https://github.com/dotnet/interactive/issues"
@@ -218,7 +218,7 @@
218218
},
219219
"dotnet-interactive.requiredInteractiveToolVersion": {
220220
"type": "string",
221-
"default": "1.0.416504",
221+
"default": "1.0.420401",
222222
"description": "The required version of the .NET Interactive tool."
223223
}
224224
}

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

+97-7
Original file line numberDiff line numberDiff line change
@@ -6499,7 +6499,7 @@ declare module 'vscode' {
64996499
/**
65006500
* Outputs the given trace message to the channel. Use this method to log verbose information.
65016501
*
6502-
* The message is only loggeed if the channel is configured to display {@link LogLevel.Trace trace} log level.
6502+
* The message is only logged if the channel is configured to display {@link LogLevel.Trace trace} log level.
65036503
*
65046504
* @param message trace message to log
65056505
*/
@@ -6508,7 +6508,7 @@ declare module 'vscode' {
65086508
/**
65096509
* Outputs the given debug message to the channel.
65106510
*
6511-
* The message is only loggeed if the channel is configured to display {@link LogLevel.Debug debug} log level or lower.
6511+
* The message is only logged if the channel is configured to display {@link LogLevel.Debug debug} log level or lower.
65126512
*
65136513
* @param message debug message to log
65146514
*/
@@ -6517,7 +6517,7 @@ declare module 'vscode' {
65176517
/**
65186518
* Outputs the given information message to the channel.
65196519
*
6520-
* The message is only loggeed if the channel is configured to display {@link LogLevel.Info info} log level or lower.
6520+
* The message is only logged if the channel is configured to display {@link LogLevel.Info info} log level or lower.
65216521
*
65226522
* @param message info message to log
65236523
*/
@@ -6526,7 +6526,7 @@ declare module 'vscode' {
65266526
/**
65276527
* Outputs the given warning message to the channel.
65286528
*
6529-
* The message is only loggeed if the channel is configured to display {@link LogLevel.Warning warning} log level or lower.
6529+
* The message is only logged if the channel is configured to display {@link LogLevel.Warning warning} log level or lower.
65306530
*
65316531
* @param message warning message to log
65326532
*/
@@ -6535,7 +6535,7 @@ declare module 'vscode' {
65356535
/**
65366536
* Outputs the given error or error message to the channel.
65376537
*
6538-
* The message is only loggeed if the channel is configured to display {@link LogLevel.Error error} log level or lower.
6538+
* The message is only logged if the channel is configured to display {@link LogLevel.Error error} log level or lower.
65396539
*
65406540
* @param error Error or error message to log
65416541
*/
@@ -12489,6 +12489,21 @@ declare module 'vscode' {
1248912489
*/
1249012490
export const onDidChangeNotebookDocument: Event<NotebookDocumentChangeEvent>;
1249112491

12492+
/**
12493+
* An event that is emitted when a {@link NotebookDocument notebook document} will be saved to disk.
12494+
*
12495+
* *Note 1:* Subscribers can delay saving by registering asynchronous work. For the sake of data integrity the editor
12496+
* might save without firing this event. For instance when shutting down with dirty files.
12497+
*
12498+
* *Note 2:* Subscribers are called sequentially and they can {@link NotebookDocumentWillSaveEvent.waitUntil delay} saving
12499+
* by registering asynchronous work. Protection against misbehaving listeners is implemented as such:
12500+
* * there is an overall time budget that all listeners share and if that is exhausted no further listener is called
12501+
* * listeners that take a long time or produce errors frequently will not be called anymore
12502+
*
12503+
* The current thresholds are 1.5 seconds as overall time budget and a listener can misbehave 3 times before being ignored.
12504+
*/
12505+
export const onWillSaveNotebookDocument: Event<NotebookDocumentWillSaveEvent>;
12506+
1249212507
/**
1249312508
* An event that is emitted when a {@link NotebookDocument notebook} is saved.
1249412509
*/
@@ -13558,6 +13573,61 @@ declare module 'vscode' {
1355813573
readonly cellChanges: readonly NotebookDocumentCellChange[];
1355913574
}
1356013575

13576+
/**
13577+
* An event that is fired when a {@link NotebookDocument notebook document} will be saved.
13578+
*
13579+
* To make modifications to the document before it is being saved, call the
13580+
* {@linkcode NotebookDocumentWillSaveEvent.waitUntil waitUntil}-function with a thenable
13581+
* that resolves to a {@link WorkspaceEdit workspace edit}.
13582+
*/
13583+
export interface NotebookDocumentWillSaveEvent {
13584+
/**
13585+
* A cancellation token.
13586+
*/
13587+
readonly token: CancellationToken;
13588+
13589+
/**
13590+
* The {@link NotebookDocument notebook document} that will be saved.
13591+
*/
13592+
readonly notebook: NotebookDocument;
13593+
13594+
/**
13595+
* The reason why save was triggered.
13596+
*/
13597+
readonly reason: TextDocumentSaveReason;
13598+
13599+
/**
13600+
* Allows to pause the event loop and to apply {@link WorkspaceEdit workspace edit}.
13601+
* Edits of subsequent calls to this function will be applied in order. The
13602+
* edits will be *ignored* if concurrent modifications of the notebook document happened.
13603+
*
13604+
* *Note:* This function can only be called during event dispatch and not
13605+
* in an asynchronous manner:
13606+
*
13607+
* ```ts
13608+
* workspace.onWillSaveNotebookDocument(event => {
13609+
* // async, will *throw* an error
13610+
* setTimeout(() => event.waitUntil(promise));
13611+
*
13612+
* // sync, OK
13613+
* event.waitUntil(promise);
13614+
* })
13615+
* ```
13616+
*
13617+
* @param thenable A thenable that resolves to {@link WorkspaceEdit workspace edit}.
13618+
*/
13619+
waitUntil(thenable: Thenable<WorkspaceEdit>): void;
13620+
13621+
/**
13622+
* Allows to pause the event loop until the provided thenable resolved.
13623+
*
13624+
* *Note:* This function can only be called during event dispatch.
13625+
*
13626+
* @param thenable A thenable that delays saving.
13627+
*/
13628+
waitUntil(thenable: Thenable<any>): void;
13629+
}
13630+
1356113631
/**
1356213632
* The summary of a notebook cell execution.
1356313633
*/
@@ -15946,6 +16016,13 @@ declare module 'vscode' {
1594616016
*/
1594716017
isDefault: boolean;
1594816018

16019+
/**
16020+
* Whether this profile supports continuous running of requests. If so,
16021+
* then {@link TestRunRequest.continuous} may be set to `true`. Defaults
16022+
* to false.
16023+
*/
16024+
supportsContinuousRun: boolean;
16025+
1594916026
/**
1595016027
* Associated tag for the profile. If this is set, only {@link TestItem}
1595116028
* instances with the same tag will be eligible to execute in this profile.
@@ -15966,6 +16043,11 @@ declare module 'vscode' {
1596616043
* associated with the request should be created before the function returns
1596716044
* or the returned promise is resolved.
1596816045
*
16046+
* If {@link supportsContinuousRun} is set, then {@link TestRunRequest.continuous}
16047+
* may be `true`. In this case, the profile should observe changes to
16048+
* source code and create new test runs by calling {@link TestController.createTestRun},
16049+
* until the cancellation is requested on the `token`.
16050+
*
1596916051
* @param request Request information for the test run.
1597016052
* @param cancellationToken Token that signals the used asked to abort the
1597116053
* test run. If cancellation is requested on this token, all {@link TestRun}
@@ -16020,10 +16102,11 @@ declare module 'vscode' {
1602016102
* @param runHandler Function called to start a test run.
1602116103
* @param isDefault Whether this is the default action for its kind.
1602216104
* @param tag Profile test tag.
16105+
* @param supportsContinuousRun Whether the profile supports continuous running.
1602316106
* @returns An instance of a {@link TestRunProfile}, which is automatically
1602416107
* associated with this controller.
1602516108
*/
16026-
createRunProfile(label: string, kind: TestRunProfileKind, runHandler: (request: TestRunRequest, token: CancellationToken) => Thenable<void> | void, isDefault?: boolean, tag?: TestTag): TestRunProfile;
16109+
createRunProfile(label: string, kind: TestRunProfileKind, runHandler: (request: TestRunRequest, token: CancellationToken) => Thenable<void> | void, isDefault?: boolean, tag?: TestTag, supportsContinuousRun?: boolean): TestRunProfile;
1602716110

1602816111
/**
1602916112
* A function provided by the extension that the editor may call to request
@@ -16138,12 +16221,19 @@ declare module 'vscode' {
1613816221
*/
1613916222
readonly profile: TestRunProfile | undefined;
1614016223

16224+
/**
16225+
* Whether the profile should run continuously as source code changes. Only
16226+
* relevant for profiles that set {@link TestRunProfile.supportsContinuousRun}.
16227+
*/
16228+
readonly continuous?: boolean;
16229+
1614116230
/**
1614216231
* @param include Array of specific tests to run, or undefined to run all tests
1614316232
* @param exclude An array of tests to exclude from the run.
1614416233
* @param profile The run profile used for this request.
16234+
* @param continuous Whether to run tests continuously as source changes.
1614516235
*/
16146-
constructor(include?: readonly TestItem[], exclude?: readonly TestItem[], profile?: TestRunProfile);
16236+
constructor(include?: readonly TestItem[], exclude?: readonly TestItem[], profile?: TestRunProfile, continuous?: boolean);
1614716237
}
1614816238

1614916239
/**

src/polyglot-notebooks-vscode/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"//version": "The version '42.42.42' is auto-set during CI package creation.",
1414
"version": "42.42.42",
1515
"engines": {
16-
"vscode": "^1.76.0"
16+
"vscode": "^1.77.0"
1717
},
1818
"bugs": {
1919
"url": "https://github.com/dotnet/interactive/issues"
@@ -218,7 +218,7 @@
218218
},
219219
"dotnet-interactive.requiredInteractiveToolVersion": {
220220
"type": "string",
221-
"default": "1.0.416502",
221+
"default": "1.0.420401",
222222
"description": "The required version of the .NET Interactive tool."
223223
}
224224
}
@@ -840,4 +840,4 @@
840840
"vscode-textmate": "6.0.0",
841841
"vscode-uri": "3.0.6"
842842
}
843-
}
843+
}

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

+28-5
Original file line numberDiff line numberDiff line change
@@ -10481,6 +10481,7 @@ declare module 'vscode' {
1048110481
* Retrieves the data transfer item for a given mime type.
1048210482
*
1048310483
* @param mimeType The mime type to get the data transfer item for, such as `text/plain` or `image/png`.
10484+
* Mimes type look ups are case-insensitive.
1048410485
*
1048510486
* Special mime types:
1048610487
* - `text/uri-list` — A string with `toString()`ed Uris separated by `\r\n`. To specify a cursor position in the file,
@@ -10490,7 +10491,8 @@ declare module 'vscode' {
1049010491

1049110492
/**
1049210493
* Sets a mime type to data transfer item mapping.
10493-
* @param mimeType The mime type to set the data for.
10494+
*
10495+
* @param mimeType The mime type to set the data for. Mimes types stored in lower case, with case-insensitive looks up.
1049410496
* @param value The data transfer item for the given mime type.
1049510497
*/
1049610498
set(mimeType: string, value: DataTransferItem): void;
@@ -12261,7 +12263,7 @@ declare module 'vscode' {
1226112263
* If you want to monitor file events across all opened workspace folders:
1226212264
*
1226312265
* ```ts
12264-
* vscode.workspace.createFileSystemWatcher('**​/*.js'));
12266+
* vscode.workspace.createFileSystemWatcher('**​/*.js');
1226512267
* ```
1226612268
*
1226712269
* *Note:* the array of workspace folders can be empty if no workspace is opened (empty window).
@@ -15944,6 +15946,13 @@ declare module 'vscode' {
1594415946
*/
1594515947
isDefault: boolean;
1594615948

15949+
/**
15950+
* Whether this profile supports continuous running of requests. If so,
15951+
* then {@link TestRunRequest.continuous} may be set to `true`. Defaults
15952+
* to false.
15953+
*/
15954+
supportsContinuousRun: boolean;
15955+
1594715956
/**
1594815957
* Associated tag for the profile. If this is set, only {@link TestItem}
1594915958
* instances with the same tag will be eligible to execute in this profile.
@@ -15964,6 +15973,11 @@ declare module 'vscode' {
1596415973
* associated with the request should be created before the function returns
1596515974
* or the returned promise is resolved.
1596615975
*
15976+
* If {@link supportsContinuousRun} is set, then {@link TestRunRequest.continuous}
15977+
* may be `true`. In this case, the profile should observe changes to
15978+
* source code and create new test runs by calling {@link TestController.createTestRun},
15979+
* until the cancellation is requested on the `token`.
15980+
*
1596715981
* @param request Request information for the test run.
1596815982
* @param cancellationToken Token that signals the used asked to abort the
1596915983
* test run. If cancellation is requested on this token, all {@link TestRun}
@@ -16018,10 +16032,11 @@ declare module 'vscode' {
1601816032
* @param runHandler Function called to start a test run.
1601916033
* @param isDefault Whether this is the default action for its kind.
1602016034
* @param tag Profile test tag.
16035+
* @param supportsContinuousRun Whether the profile supports continuous running.
1602116036
* @returns An instance of a {@link TestRunProfile}, which is automatically
1602216037
* associated with this controller.
1602316038
*/
16024-
createRunProfile(label: string, kind: TestRunProfileKind, runHandler: (request: TestRunRequest, token: CancellationToken) => Thenable<void> | void, isDefault?: boolean, tag?: TestTag): TestRunProfile;
16039+
createRunProfile(label: string, kind: TestRunProfileKind, runHandler: (request: TestRunRequest, token: CancellationToken) => Thenable<void> | void, isDefault?: boolean, tag?: TestTag, supportsContinuousRun?: boolean): TestRunProfile;
1602516040

1602616041
/**
1602716042
* A function provided by the extension that the editor may call to request
@@ -16136,12 +16151,19 @@ declare module 'vscode' {
1613616151
*/
1613716152
readonly profile: TestRunProfile | undefined;
1613816153

16154+
/**
16155+
* Whether the profile should run continuously as source code changes. Only
16156+
* relevant for profiles that set {@link TestRunProfile.supportsContinuousRun}.
16157+
*/
16158+
readonly continuous?: boolean;
16159+
1613916160
/**
1614016161
* @param include Array of specific tests to run, or undefined to run all tests
1614116162
* @param exclude An array of tests to exclude from the run.
1614216163
* @param profile The run profile used for this request.
16164+
* @param continuous Whether to run tests continuously as source changes.
1614316165
*/
16144-
constructor(include?: readonly TestItem[], exclude?: readonly TestItem[], profile?: TestRunProfile);
16166+
constructor(include?: readonly TestItem[], exclude?: readonly TestItem[], profile?: TestRunProfile, continuous?: boolean);
1614516167
}
1614616168

1614716169
/**
@@ -16215,7 +16237,8 @@ declare module 'vscode' {
1621516237
/**
1621616238
* Appends raw output from the test runner. On the user's request, the
1621716239
* output will be displayed in a terminal. ANSI escape sequences,
16218-
* such as colors and text styles, are supported.
16240+
* such as colors and text styles, are supported. New lines must be given
16241+
* as CRLF (`\r\n`) rather than LF (`\n`).
1621916242
*
1622016243
* @param output Output text to append.
1622116244
* @param location Indicate that the output was logged at the given

0 commit comments

Comments
 (0)