Skip to content

Commit 3df9150

Browse files
committed
update code
1 parent 90d2a47 commit 3df9150

File tree

4 files changed

+29
-12
lines changed

4 files changed

+29
-12
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
},
220220
"dotnet-interactive.requiredInteractiveToolVersion": {
221221
"type": "string",
222-
"default": "1.0.428101",
222+
"default": "1.0.430501",
223223
"description": "%description.requiredInteractiveToolVersion%"
224224
}
225225
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16362,7 +16362,7 @@ declare module 'vscode' {
1636216362
appendOutput(output: string, location?: Location, test?: TestItem): void;
1636316363

1636416364
/**
16365-
* Signals that the end of the test run. Any tests included in the run whose
16365+
* Signals the end of the test run. Any tests included in the run whose
1636616366
* states have not been updated will have their state reset.
1636716367
*/
1636816368
end(): void;

src/polyglot-notebooks-vscode/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
},
220220
"dotnet-interactive.requiredInteractiveToolVersion": {
221221
"type": "string",
222-
"default": "1.0.428101",
222+
"default": "1.0.430501",
223223
"description": "%description.requiredInteractiveToolVersion%"
224224
}
225225
}

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

+26-9
Original file line numberDiff line numberDiff line change
@@ -7443,6 +7443,11 @@ declare module 'vscode' {
74437443
* Controls whether the terminal is cleared before executing the task.
74447444
*/
74457445
clear?: boolean;
7446+
7447+
/**
7448+
* Controls whether the terminal is closed after executing the task.
7449+
*/
7450+
close?: boolean;
74467451
}
74477452

74487453
/**
@@ -10153,21 +10158,22 @@ declare module 'vscode' {
1015310158
/**
1015410159
* Creates a status bar {@link StatusBarItem item}.
1015510160
*
10161+
* @param id The identifier of the item. Must be unique within the extension.
1015610162
* @param alignment The alignment of the item.
1015710163
* @param priority The priority of the item. Higher values mean the item should be shown more to the left.
1015810164
* @return A new status bar item.
1015910165
*/
10160-
export function createStatusBarItem(alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
10166+
export function createStatusBarItem(id: string, alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
1016110167

1016210168
/**
1016310169
* Creates a status bar {@link StatusBarItem item}.
1016410170
*
10165-
* @param id The unique identifier of the item.
10171+
* @see {@link createStatusBarItem} for creating a status bar item with an identifier.
1016610172
* @param alignment The alignment of the item.
1016710173
* @param priority The priority of the item. Higher values mean the item should be shown more to the left.
1016810174
* @return A new status bar item.
1016910175
*/
10170-
export function createStatusBarItem(id: string, alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
10176+
export function createStatusBarItem(alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
1017110177

1017210178
/**
1017310179
* Creates a {@link Terminal} with a backing shell process. The cwd of the terminal will be the workspace
@@ -11058,7 +11064,7 @@ declare module 'vscode' {
1105811064
* **Example:** Exit the terminal when "y" is pressed, otherwise show a notification.
1105911065
* ```typescript
1106011066
* const writeEmitter = new vscode.EventEmitter<string>();
11061-
* const closeEmitter = new vscode.EventEmitter<vscode.TerminalDimensions>();
11067+
* const closeEmitter = new vscode.EventEmitter<void>();
1106211068
* const pty: vscode.Pseudoterminal = {
1106311069
* onDidWrite: writeEmitter.event,
1106411070
* onDidClose: closeEmitter.event,
@@ -11071,7 +11077,8 @@ declare module 'vscode' {
1107111077
* closeEmitter.fire();
1107211078
* }
1107311079
* };
11074-
* vscode.window.createTerminal({ name: 'Exit example', pty });
11080+
* const terminal = vscode.window.createTerminal({ name: 'Exit example', pty });
11081+
* terminal.show(true);
1107511082
* ```
1107611083
*/
1107711084
onDidClose?: Event<void | number>;
@@ -15647,6 +15654,16 @@ declare module 'vscode' {
1564715654
readonly label: string;
1564815655
}
1564915656

15657+
/**
15658+
* Optional options to be used when calling {@link authentication.getSession} with the flag `forceNewSession`.
15659+
*/
15660+
export interface AuthenticationForceNewSessionOptions {
15661+
/**
15662+
* An optional message that will be displayed to the user when we ask to re-authenticate. Providing additional context
15663+
* as to why you are asking a user to re-authenticate can help increase the odds that they will accept.
15664+
*/
15665+
detail?: string;
15666+
}
1565015667

1565115668
/**
1565215669
* Options to be used when getting an {@link AuthenticationSession} from an {@link AuthenticationProvider}.
@@ -15697,7 +15714,7 @@ declare module 'vscode' {
1569715714
*
1569815715
* This defaults to false.
1569915716
*/
15700-
forceNewSession?: boolean | { detail: string };
15717+
forceNewSession?: boolean | AuthenticationForceNewSessionOptions;
1570115718

1570215719
/**
1570315720
* Whether we should show the indication to sign in in the Accounts menu.
@@ -15847,7 +15864,7 @@ declare module 'vscode' {
1584715864
* @param options The {@link AuthenticationGetSessionOptions} to use
1584815865
* @returns A thenable that resolves to an authentication session
1584915866
*/
15850-
export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { forceNewSession: true | { detail: string } }): Thenable<AuthenticationSession>;
15867+
export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { forceNewSession: true | AuthenticationForceNewSessionOptions }): Thenable<AuthenticationSession>;
1585115868

1585215869
/**
1585315870
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
@@ -16345,7 +16362,7 @@ declare module 'vscode' {
1634516362
appendOutput(output: string, location?: Location, test?: TestItem): void;
1634616363

1634716364
/**
16348-
* Signals that the end of the test run. Any tests included in the run whose
16365+
* Signals the end of the test run. Any tests included in the run whose
1634916366
* states have not been updated will have their state reset.
1635016367
*/
1635116368
end(): void;
@@ -16771,7 +16788,7 @@ declare module 'vscode' {
1677116788
}
1677216789

1677316790
/**
16774-
* Represents the main editor area which consists of multple groups which contain tabs.
16791+
* Represents the main editor area which consists of multiple groups which contain tabs.
1677516792
*/
1677616793
export interface TabGroups {
1677716794
/**

0 commit comments

Comments
 (0)