diff --git a/package-lock.json b/package-lock.json index 457deb76..9c0a76b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -55,7 +55,7 @@ "@types/sinon": "^10.0.12", "@types/unzip-stream": "^0.3.0", "@types/uuid": "^8.3.0", - "@types/vscode": "^1.73.0", + "@types/vscode": "^1.89.0", "@types/vscode-webview": "^1.57.1", "@types/webpack": "^5.28.0", "@types/webpack-env": "^1.17.0", @@ -104,7 +104,7 @@ }, "engines": { "npm": ">=8.3.0", - "vscode": "^1.73.0" + "vscode": "^1.89.0" }, "optionalDependencies": { "bufferutil": "^4.0.6", @@ -3388,9 +3388,9 @@ } }, "node_modules/@types/vscode": { - "version": "1.74.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.74.0.tgz", - "integrity": "sha512-LyeCIU3jb9d38w0MXFwta9r0Jx23ugujkAxdwLTNCyspdZTKUc43t7ppPbCiPoQ/Ivd/pnDFZrb4hWd45wrsgA==", + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.89.0.tgz", + "integrity": "sha512-TMfGKLSVxfGfoO8JfIE/neZqv7QLwS4nwPwL/NwMvxtAY2230H2I4Z5xx6836pmJvMAzqooRQ4pmLm7RUicP3A==", "dev": true }, "node_modules/@types/vscode-webview": { diff --git a/package.json b/package.json index e9348fb7..be2ca0f7 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "email": "PPTools@microsoft.com" }, "engines": { - "vscode": "^1.73.0", + "vscode": "^1.89.0", "npm": ">=8.3.0" }, "extensionKind": [ @@ -1051,7 +1051,7 @@ "@types/sinon": "^10.0.12", "@types/unzip-stream": "^0.3.0", "@types/uuid": "^8.3.0", - "@types/vscode": "^1.73.0", + "@types/vscode": "^1.89.0", "@types/vscode-webview": "^1.57.1", "@types/webpack": "^5.28.0", "@types/webpack-env": "^1.17.0", diff --git a/src/common/copilot/PowerPagesCopilot.ts b/src/common/copilot/PowerPagesCopilot.ts index fe139ceb..b947decd 100644 --- a/src/common/copilot/PowerPagesCopilot.ts +++ b/src/common/copilot/PowerPagesCopilot.ts @@ -110,9 +110,9 @@ export class PowerPagesCopilot implements vscode.WebviewViewProvider { orgChangeEvent((orgDetails: ActiveOrgOutput) => this.handleOrgChangeSuccess(orgDetails)) ); - this._disposables.push( - orgChangeErrorEvent(async () => await createAuthProfileExp(this._pacWrapper)) - ); + if(this._view?.visible) { + this._disposables.push(orgChangeErrorEvent(async () => await createAuthProfileExp(this._pacWrapper))); + } if (orgInfo) { orgID = orgInfo.orgId; diff --git a/src/common/utilities/Utils.ts b/src/common/utilities/Utils.ts index 3e55c8a3..76186d7d 100644 --- a/src/common/utilities/Utils.ts +++ b/src/common/utilities/Utils.ts @@ -91,7 +91,8 @@ export function showConnectedOrgMessage(environmentName: string, orgUrl: string) export async function showInputBoxAndGetOrgUrl() { return vscode.window.showInputBox({ placeHolder: vscode.l10n.t("Enter the environment URL"), - prompt: vscode.l10n.t("Active auth profile is not found or has expired. To create a new auth profile, enter the environment URL.") + prompt: vscode.l10n.t("Active auth profile is not found or has expired. To create a new auth profile, enter the environment URL."), + ignoreFocusOut: true }); } diff --git a/src/web/client/webViews/QuickPickProvider.ts b/src/web/client/webViews/QuickPickProvider.ts index a2ea7ed7..478a82e3 100644 --- a/src/web/client/webViews/QuickPickProvider.ts +++ b/src/web/client/webViews/QuickPickProvider.ts @@ -12,7 +12,6 @@ import { getFileEntityId, getFileEntityName, getFileRootWebPageId } from "../uti interface IQuickPickItem extends vscode.QuickPickItem { label: string; id?: string; - iconPath?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri } | vscode.ThemeIcon; } export class QuickPickProvider {