Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
colombod committed Jun 5, 2023
1 parent 90d2a47 commit 3df9150
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/polyglot-notebooks-vscode-insiders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
},
"dotnet-interactive.requiredInteractiveToolVersion": {
"type": "string",
"default": "1.0.428101",
"default": "1.0.430501",
"description": "%description.requiredInteractiveToolVersion%"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16362,7 +16362,7 @@ declare module 'vscode' {
appendOutput(output: string, location?: Location, test?: TestItem): void;

/**
* Signals that the end of the test run. Any tests included in the run whose
* Signals the end of the test run. Any tests included in the run whose
* states have not been updated will have their state reset.
*/
end(): void;
Expand Down
2 changes: 1 addition & 1 deletion src/polyglot-notebooks-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
},
"dotnet-interactive.requiredInteractiveToolVersion": {
"type": "string",
"default": "1.0.428101",
"default": "1.0.430501",
"description": "%description.requiredInteractiveToolVersion%"
}
}
Expand Down
35 changes: 26 additions & 9 deletions src/polyglot-notebooks-vscode/src/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7443,6 +7443,11 @@ declare module 'vscode' {
* Controls whether the terminal is cleared before executing the task.
*/
clear?: boolean;

/**
* Controls whether the terminal is closed after executing the task.
*/
close?: boolean;
}

/**
Expand Down Expand Up @@ -10153,21 +10158,22 @@ declare module 'vscode' {
/**
* Creates a status bar {@link StatusBarItem item}.
*
* @param id The identifier of the item. Must be unique within the extension.
* @param alignment The alignment of the item.
* @param priority The priority of the item. Higher values mean the item should be shown more to the left.
* @return A new status bar item.
*/
export function createStatusBarItem(alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
export function createStatusBarItem(id: string, alignment?: StatusBarAlignment, priority?: number): StatusBarItem;

/**
* Creates a status bar {@link StatusBarItem item}.
*
* @param id The unique identifier of the item.
* @see {@link createStatusBarItem} for creating a status bar item with an identifier.
* @param alignment The alignment of the item.
* @param priority The priority of the item. Higher values mean the item should be shown more to the left.
* @return A new status bar item.
*/
export function createStatusBarItem(id: string, alignment?: StatusBarAlignment, priority?: number): StatusBarItem;
export function createStatusBarItem(alignment?: StatusBarAlignment, priority?: number): StatusBarItem;

/**
* Creates a {@link Terminal} with a backing shell process. The cwd of the terminal will be the workspace
Expand Down Expand Up @@ -11058,7 +11064,7 @@ declare module 'vscode' {
* **Example:** Exit the terminal when "y" is pressed, otherwise show a notification.
* ```typescript
* const writeEmitter = new vscode.EventEmitter<string>();
* const closeEmitter = new vscode.EventEmitter<vscode.TerminalDimensions>();
* const closeEmitter = new vscode.EventEmitter<void>();
* const pty: vscode.Pseudoterminal = {
* onDidWrite: writeEmitter.event,
* onDidClose: closeEmitter.event,
Expand All @@ -11071,7 +11077,8 @@ declare module 'vscode' {
* closeEmitter.fire();
* }
* };
* vscode.window.createTerminal({ name: 'Exit example', pty });
* const terminal = vscode.window.createTerminal({ name: 'Exit example', pty });
* terminal.show(true);
* ```
*/
onDidClose?: Event<void | number>;
Expand Down Expand Up @@ -15647,6 +15654,16 @@ declare module 'vscode' {
readonly label: string;
}

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

/**
* Options to be used when getting an {@link AuthenticationSession} from an {@link AuthenticationProvider}.
Expand Down Expand Up @@ -15697,7 +15714,7 @@ declare module 'vscode' {
*
* This defaults to false.
*/
forceNewSession?: boolean | { detail: string };
forceNewSession?: boolean | AuthenticationForceNewSessionOptions;

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

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

/**
* Signals that the end of the test run. Any tests included in the run whose
* Signals the end of the test run. Any tests included in the run whose
* states have not been updated will have their state reset.
*/
end(): void;
Expand Down Expand Up @@ -16771,7 +16788,7 @@ declare module 'vscode' {
}

/**
* Represents the main editor area which consists of multple groups which contain tabs.
* Represents the main editor area which consists of multiple groups which contain tabs.
*/
export interface TabGroups {
/**
Expand Down

0 comments on commit 3df9150

Please sign in to comment.