@@ -7443,6 +7443,11 @@ declare module 'vscode' {
7443
7443
* Controls whether the terminal is cleared before executing the task.
7444
7444
*/
7445
7445
clear?: boolean;
7446
+
7447
+ /**
7448
+ * Controls whether the terminal is closed after executing the task.
7449
+ */
7450
+ close?: boolean;
7446
7451
}
7447
7452
7448
7453
/**
@@ -10153,21 +10158,22 @@ declare module 'vscode' {
10153
10158
/**
10154
10159
* Creates a status bar {@link StatusBarItem item}.
10155
10160
*
10161
+ * @param id The identifier of the item. Must be unique within the extension.
10156
10162
* @param alignment The alignment of the item.
10157
10163
* @param priority The priority of the item. Higher values mean the item should be shown more to the left.
10158
10164
* @return A new status bar item.
10159
10165
*/
10160
- export function createStatusBarItem(alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
10166
+ export function createStatusBarItem(id: string, alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
10161
10167
10162
10168
/**
10163
10169
* Creates a status bar {@link StatusBarItem item}.
10164
10170
*
10165
- * @param id The unique identifier of the item.
10171
+ * @see {@link createStatusBarItem} for creating a status bar item with an identifier .
10166
10172
* @param alignment The alignment of the item.
10167
10173
* @param priority The priority of the item. Higher values mean the item should be shown more to the left.
10168
10174
* @return A new status bar item.
10169
10175
*/
10170
- export function createStatusBarItem(id: string, alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
10176
+ export function createStatusBarItem(alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
10171
10177
10172
10178
/**
10173
10179
* 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' {
11058
11064
* **Example:** Exit the terminal when "y" is pressed, otherwise show a notification.
11059
11065
* ```typescript
11060
11066
* const writeEmitter = new vscode.EventEmitter<string>();
11061
- * const closeEmitter = new vscode.EventEmitter<vscode.TerminalDimensions >();
11067
+ * const closeEmitter = new vscode.EventEmitter<void >();
11062
11068
* const pty: vscode.Pseudoterminal = {
11063
11069
* onDidWrite: writeEmitter.event,
11064
11070
* onDidClose: closeEmitter.event,
@@ -11071,7 +11077,8 @@ declare module 'vscode' {
11071
11077
* closeEmitter.fire();
11072
11078
* }
11073
11079
* };
11074
- * vscode.window.createTerminal({ name: 'Exit example', pty });
11080
+ * const terminal = vscode.window.createTerminal({ name: 'Exit example', pty });
11081
+ * terminal.show(true);
11075
11082
* ```
11076
11083
*/
11077
11084
onDidClose?: Event<void | number>;
@@ -15647,6 +15654,16 @@ declare module 'vscode' {
15647
15654
readonly label: string;
15648
15655
}
15649
15656
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
+ }
15650
15667
15651
15668
/**
15652
15669
* Options to be used when getting an {@link AuthenticationSession} from an {@link AuthenticationProvider}.
@@ -15697,7 +15714,7 @@ declare module 'vscode' {
15697
15714
*
15698
15715
* This defaults to false.
15699
15716
*/
15700
- forceNewSession?: boolean | { detail: string } ;
15717
+ forceNewSession?: boolean | AuthenticationForceNewSessionOptions ;
15701
15718
15702
15719
/**
15703
15720
* Whether we should show the indication to sign in in the Accounts menu.
@@ -15847,7 +15864,7 @@ declare module 'vscode' {
15847
15864
* @param options The {@link AuthenticationGetSessionOptions} to use
15848
15865
* @returns A thenable that resolves to an authentication session
15849
15866
*/
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>;
15851
15868
15852
15869
/**
15853
15870
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
@@ -16345,7 +16362,7 @@ declare module 'vscode' {
16345
16362
appendOutput(output: string, location?: Location, test?: TestItem): void;
16346
16363
16347
16364
/**
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
16349
16366
* states have not been updated will have their state reset.
16350
16367
*/
16351
16368
end(): void;
@@ -16771,7 +16788,7 @@ declare module 'vscode' {
16771
16788
}
16772
16789
16773
16790
/**
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.
16775
16792
*/
16776
16793
export interface TabGroups {
16777
16794
/**
0 commit comments