|
1 | | -import { type CoderApi } from "../api/coderApi"; |
2 | | -import { type ServiceContainer } from "../core/container"; |
3 | | -import { type ContextManager } from "../core/contextManager"; |
4 | | -import { type MementoManager } from "../core/mementoManager"; |
5 | | -import { type SecretsManager } from "../core/secretsManager"; |
6 | | -import { type Logger } from "../logging/logger"; |
7 | | -import { type WorkspaceProvider } from "../workspace/workspacesProvider"; |
8 | | - |
9 | | -import { |
10 | | - type Deployment, |
11 | | - type DeploymentWithAuth, |
12 | | - isAuthenticated, |
13 | | -} from "./types"; |
14 | | - |
15 | 1 | import type { User } from "coder/site/src/api/typesGenerated"; |
16 | 2 | import type * as vscode from "vscode"; |
17 | 3 |
|
| 4 | +import type { CoderApi } from "../api/coderApi"; |
| 5 | +import type { ServiceContainer } from "../core/container"; |
| 6 | +import type { ContextManager } from "../core/contextManager"; |
| 7 | +import type { MementoManager } from "../core/mementoManager"; |
| 8 | +import type { SecretsManager } from "../core/secretsManager"; |
| 9 | +import type { Logger } from "../logging/logger"; |
| 10 | +import type { WorkspaceProvider } from "../workspace/workspacesProvider"; |
| 11 | + |
| 12 | +import type { Deployment, DeploymentWithAuth } from "./types"; |
| 13 | + |
18 | 14 | /** |
19 | 15 | * Manages deployment state for the extension. |
20 | 16 | * |
@@ -72,7 +68,7 @@ export class DeploymentManager implements vscode.Disposable { |
72 | 68 | * Check if we have an authenticated deployment (with a valid user). |
73 | 69 | */ |
74 | 70 | public isAuthenticated(): boolean { |
75 | | - return isAuthenticated(this.currentDeployment); |
| 71 | + return this.currentDeployment?.user !== undefined; |
76 | 72 | } |
77 | 73 |
|
78 | 74 | /** |
|
0 commit comments