Merge pull request #5757 from continuedev/nate/is-signed-in-await
await isSignedIn()
This commit is contained in:
commit
f908cb159f
5 changed files with 14 additions and 11 deletions
|
|
@ -41,7 +41,6 @@ import { GlobalContext } from "../../util/GlobalContext";
|
|||
import { modifyAnyConfigWithSharedConfig } from "../sharedConfig";
|
||||
|
||||
import { getControlPlaneEnvSync } from "../../control-plane/env";
|
||||
import { logger } from "../../util/logger";
|
||||
import { getCleanUriPath } from "../../util/uri";
|
||||
import { getAllDotContinueYamlFiles } from "../loadLocalAssistants";
|
||||
import { LocalPlatformClient } from "./LocalPlatformClient";
|
||||
|
|
@ -115,9 +114,9 @@ async function loadConfigYaml(options: {
|
|||
? dirname(getCleanUriPath(packageIdentifier.filePath))
|
||||
: undefined;
|
||||
|
||||
logger.info(
|
||||
`Loading config.yaml from ${JSON.stringify(packageIdentifier)} with root path ${rootPath}`,
|
||||
);
|
||||
// logger.info(
|
||||
// `Loading config.yaml from ${JSON.stringify(packageIdentifier)} with root path ${rootPath}`,
|
||||
// );
|
||||
|
||||
let config =
|
||||
overrideConfigYaml ??
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export class ControlPlaneClient {
|
|||
fqsns: FQSN[],
|
||||
orgScopeId: string | null,
|
||||
): Promise<(SecretResult | undefined)[]> {
|
||||
if (!this.isSignedIn()) {
|
||||
if (!(await this.isSignedIn())) {
|
||||
return fqsns.map((fqsn) => ({
|
||||
found: false,
|
||||
fqsn,
|
||||
|
|
@ -105,7 +105,7 @@ export class ControlPlaneClient {
|
|||
rawYaml: string;
|
||||
}[]
|
||||
> {
|
||||
if (!this.isSignedIn()) {
|
||||
if (!(await this.isSignedIn())) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
@ -124,7 +124,7 @@ export class ControlPlaneClient {
|
|||
}
|
||||
|
||||
public async listOrganizations(): Promise<Array<OrganizationDescription>> {
|
||||
if (!this.isSignedIn()) {
|
||||
if (!(await this.isSignedIn())) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ export class ControlPlaneClient {
|
|||
public async listAssistantFullSlugs(
|
||||
organizationId: string | null,
|
||||
): Promise<FullSlug[] | null> {
|
||||
if (!this.isSignedIn()) {
|
||||
if (!(await this.isSignedIn())) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
6
extensions/vscode/package-lock.json
generated
6
extensions/vscode/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "1.1.35",
|
||||
"version": "1.1.36",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "1.1.35",
|
||||
"version": "1.1.36",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
|
|
@ -148,6 +148,7 @@
|
|||
"p-limit": "^6.1.0",
|
||||
"partial-json": "^0.1.7",
|
||||
"pg": "^8.11.3",
|
||||
"plist": "^3.1.0",
|
||||
"posthog-node": "^3.6.3",
|
||||
"puppeteer": "^22.4.0",
|
||||
"puppeteer-chromium-resolver": "^23.0.0",
|
||||
|
|
@ -184,6 +185,7 @@
|
|||
"@types/mustache": "^4.2.5",
|
||||
"@types/node-fetch": "^2.6.11",
|
||||
"@types/pg": "^8.11.6",
|
||||
"@types/plist": "^3.0.5",
|
||||
"@types/request": "^2.48.12",
|
||||
"@types/tar": "^6.1.13",
|
||||
"@types/uuid": "^9.0.7",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"author": "Continue Dev, Inc",
|
||||
"version": "1.1.36",
|
||||
"version": "1.1.37",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
|
|||
2
gui/package-lock.json
generated
2
gui/package-lock.json
generated
|
|
@ -152,6 +152,7 @@
|
|||
"p-limit": "^6.1.0",
|
||||
"partial-json": "^0.1.7",
|
||||
"pg": "^8.11.3",
|
||||
"plist": "^3.1.0",
|
||||
"posthog-node": "^3.6.3",
|
||||
"puppeteer": "^22.4.0",
|
||||
"puppeteer-chromium-resolver": "^23.0.0",
|
||||
|
|
@ -188,6 +189,7 @@
|
|||
"@types/mustache": "^4.2.5",
|
||||
"@types/node-fetch": "^2.6.11",
|
||||
"@types/pg": "^8.11.6",
|
||||
"@types/plist": "^3.0.5",
|
||||
"@types/request": "^2.48.12",
|
||||
"@types/tar": "^6.1.13",
|
||||
"@types/uuid": "^9.0.7",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue