chore: show windows unsupported warning only once
This commit is contained in:
parent
148a9eaa4a
commit
e26b47e96c
2 changed files with 9 additions and 2 deletions
|
|
@ -39,6 +39,7 @@ export type GlobalContextType = {
|
|||
*/
|
||||
hasDismissedConfigTsNoticeJetBrains: boolean;
|
||||
hasAlreadyCreatedAPromptFile: boolean;
|
||||
hasShownUnsupportedPlatformWarning: boolean;
|
||||
showConfigUpdateToast: boolean;
|
||||
isSupportedLanceDbCpuTargetForLinux: boolean;
|
||||
sharedConfig: SharedConfigSchema;
|
||||
|
|
|
|||
|
|
@ -6,15 +6,21 @@ import { VsCodeExtension } from "../extension/VsCodeExtension";
|
|||
import registerQuickFixProvider from "../lang-server/codeActions";
|
||||
import { getExtensionVersion, isUnsupportedPlatform } from "../util/util";
|
||||
|
||||
import { GlobalContext } from "core/util/GlobalContext";
|
||||
import { VsCodeContinueApi } from "./api";
|
||||
import setupInlineTips from "./InlineTipManager";
|
||||
|
||||
export async function activateExtension(context: vscode.ExtensionContext) {
|
||||
const platformCheck = isUnsupportedPlatform();
|
||||
if (platformCheck.isUnsupported) {
|
||||
// const platformTarget = `${getPlatform()}-${getArchitecture()}`;
|
||||
const globalContext = new GlobalContext();
|
||||
const hasShownUnsupportedPlatformWarning = globalContext.get(
|
||||
"hasShownUnsupportedPlatformWarning",
|
||||
);
|
||||
|
||||
if (platformCheck.isUnsupported && !hasShownUnsupportedPlatformWarning) {
|
||||
const platformTarget = "windows-arm64";
|
||||
|
||||
globalContext.update("hasShownUnsupportedPlatformWarning", true);
|
||||
void vscode.window.showInformationMessage(
|
||||
`Continue detected that you are using ${platformTarget}. Due to native dependencies, Continue may not be able to start`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue