mirror of
https://github.com/cline/cline.git
synced 2026-09-15 13:02:17 +08:00
gpt-5 codex
This commit is contained in:
@@ -25,7 +25,6 @@ import { clineEnvConfig } from "@/config"
|
||||
import { HostProvider } from "@/hosts/host-provider"
|
||||
import { ExtensionRegistryInfo } from "@/registry"
|
||||
import { AuthService } from "@/services/auth/AuthService"
|
||||
import { featureFlagsService } from "@/services/feature-flags"
|
||||
import { getDistinctId } from "@/services/logging/distinctId"
|
||||
import { telemetryService } from "@/services/telemetry"
|
||||
import { ShowMessageType } from "@/shared/proto/host/window"
|
||||
@@ -222,7 +221,6 @@ export class Controller {
|
||||
this.workspaceManager = await setupWorkspaceManager({
|
||||
stateManager: this.stateManager,
|
||||
detectRoots: detectWorkspaceRoots,
|
||||
isMultiRootEnabled: featureFlagsService.getMultiRootEnabled(),
|
||||
})
|
||||
|
||||
const cwd = this.workspaceManager?.getPrimaryRoot()?.path || (await getCwd(getDesktopDir()))
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { HostProvider } from "@/hosts/host-provider"
|
||||
import { featureFlagsService } from "@/services/feature-flags"
|
||||
import { telemetryService } from "@/services/telemetry"
|
||||
import type { HistoryItem } from "@/shared/HistoryItem"
|
||||
import { ShowMessageType } from "@/shared/proto/host/window"
|
||||
@@ -18,16 +19,14 @@ type DetectRoots = () => Promise<WorkspaceRoot[]>
|
||||
export async function setupWorkspaceManager({
|
||||
stateManager,
|
||||
detectRoots,
|
||||
isMultiRootEnabled,
|
||||
}: {
|
||||
stateManager: StateManager
|
||||
historyItem?: HistoryItem
|
||||
detectRoots: DetectRoots
|
||||
isMultiRootEnabled: boolean
|
||||
}): Promise<WorkspaceRootManager> {
|
||||
const cwd = await getCwd(getDesktopDir())
|
||||
const startTime = performance.now()
|
||||
|
||||
const isMultiRootEnabled = featureFlagsService.getMultiRootEnabled()
|
||||
try {
|
||||
let manager: WorkspaceRootManager
|
||||
// Multi-root mode condition which is always false for now as isMultiRootEnabled is hardcoded to false
|
||||
|
||||
Reference in New Issue
Block a user