From 3df9150cf048104c9c075c5a18f337e48f84b3b9 Mon Sep 17 00:00:00 2001 From: Diego Colombo Date: Mon, 5 Jun 2023 13:26:33 +0100 Subject: [PATCH] update code --- .../package.json | 2 +- .../src/vscode.d.ts | 2 +- src/polyglot-notebooks-vscode/package.json | 2 +- src/polyglot-notebooks-vscode/src/vscode.d.ts | 35 ++++++++++++++----- 4 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/polyglot-notebooks-vscode-insiders/package.json b/src/polyglot-notebooks-vscode-insiders/package.json index 0c6321d2ba..157a1beea8 100644 --- a/src/polyglot-notebooks-vscode-insiders/package.json +++ b/src/polyglot-notebooks-vscode-insiders/package.json @@ -219,7 +219,7 @@ }, "dotnet-interactive.requiredInteractiveToolVersion": { "type": "string", - "default": "1.0.428101", + "default": "1.0.430501", "description": "%description.requiredInteractiveToolVersion%" } } diff --git a/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts b/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts index 399a428999..3f38cc0f26 100644 --- a/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts +++ b/src/polyglot-notebooks-vscode-insiders/src/vscode.d.ts @@ -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; diff --git a/src/polyglot-notebooks-vscode/package.json b/src/polyglot-notebooks-vscode/package.json index c49c74f806..2f3448802f 100644 --- a/src/polyglot-notebooks-vscode/package.json +++ b/src/polyglot-notebooks-vscode/package.json @@ -219,7 +219,7 @@ }, "dotnet-interactive.requiredInteractiveToolVersion": { "type": "string", - "default": "1.0.428101", + "default": "1.0.430501", "description": "%description.requiredInteractiveToolVersion%" } } diff --git a/src/polyglot-notebooks-vscode/src/vscode.d.ts b/src/polyglot-notebooks-vscode/src/vscode.d.ts index 144e8923aa..3f38cc0f26 100644 --- a/src/polyglot-notebooks-vscode/src/vscode.d.ts +++ b/src/polyglot-notebooks-vscode/src/vscode.d.ts @@ -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; } /** @@ -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 @@ -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(); - * const closeEmitter = new vscode.EventEmitter(); + * const closeEmitter = new vscode.EventEmitter(); * const pty: vscode.Pseudoterminal = { * onDidWrite: writeEmitter.event, * onDidClose: closeEmitter.event, @@ -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; @@ -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}. @@ -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. @@ -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; + export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { forceNewSession: true | AuthenticationForceNewSessionOptions }): Thenable; /** * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not @@ -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; @@ -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 { /**