From c7d550276eef8a25e4a52861154c05af798398da Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 5 Aug 2024 18:00:14 -0400 Subject: [PATCH] infoPopup --- core/util/messageIde.ts | 2 +- extensions/vscode/package-lock.json | 4 ++-- extensions/vscode/package.json | 2 +- extensions/vscode/src/extension/VsCodeMessenger.ts | 3 +++ gui/src/components/ProfileSwitcher.tsx | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/util/messageIde.ts b/core/util/messageIde.ts index 11bd9b3b2..396df29c7 100644 --- a/core/util/messageIde.ts +++ b/core/util/messageIde.ts @@ -55,7 +55,7 @@ export class MessageIde implements IDE { } infoPopup(message: string): Promise { - return this.request("errorPopup", { message }); + return this.request("infoPopup", { message }); } errorPopup(message: string): Promise { diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 24512fd0e..e8848611a 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.193", + "version": "0.9.194", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.193", + "version": "0.9.194", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index cac67cba1..28a4a4a61 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.193", + "version": "0.9.194", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index e5866da6a..a51bd8233 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -292,6 +292,9 @@ export class VsCodeMessenger { } }); }); + this.onWebviewOrCore("infoPopup", (msg) => { + vscode.window.showInformationMessage(msg.data.message); + }); this.onWebviewOrCore("getGitHubAuthToken", (msg) => ide.getGitHubAuthToken(), ); diff --git a/gui/src/components/ProfileSwitcher.tsx b/gui/src/components/ProfileSwitcher.tsx index 7d3aa8410..d07ab5d44 100644 --- a/gui/src/components/ProfileSwitcher.tsx +++ b/gui/src/components/ProfileSwitcher.tsx @@ -21,10 +21,10 @@ import { import { IdeMessengerContext } from "../context/IdeMessenger"; import { useAuth } from "../hooks/useAuth"; import { useWebviewListener } from "../hooks/useWebviewListener"; +import { setLastControlServerBetaEnabledStatus } from "../redux/slices/miscSlice"; import { RootState } from "../redux/store"; import { getFontSize } from "../util"; import HeaderButtonWithText from "./HeaderButtonWithText"; -import { setLastControlServerBetaEnabledStatus } from "../redux/slices/miscSlice"; const StyledListbox = styled(Listbox)` background-color: ${vscBackground};