Skip to content

Commit fe052d2

Browse files
committed
Refactor ClineProvider
1 parent da3aa7a commit fe052d2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/core/ClaudeDev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import { parseAssistantMessage } from "./prompts/parse-assistant-message"
4141
import { formatResponse } from "./prompts/responses"
4242
import { addCustomInstructions, SYSTEM_PROMPT } from "./prompts/system"
4343
import { truncateHalfConversation } from "./sliding-window"
44-
import { ClineProvider, GlobalFileNames } from "./webview/ClaudeDevProvider"
44+
import { ClineProvider, GlobalFileNames } from "./webview/ClineProvider"
4545

4646
const cwd =
4747
vscode.workspace.workspaceFolders?.map((folder) => folder.uri.fsPath).at(0) ?? path.join(os.homedir(), "Desktop") // may or may not exist but fs checking existence would immediately ask for permission which would be bad UX, need to come up with a better solution

src/exports/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as vscode from "vscode"
2-
import { ClineProvider } from "../core/webview/ClaudeDevProvider"
2+
import { ClineProvider } from "../core/webview/ClineProvider"
33
import { ClaudeDevAPI } from "./claude-dev"
44

55
export function createClaudeDevAPI(outputChannel: vscode.OutputChannel, sidebarProvider: ClineProvider): ClaudeDevAPI {

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// The module 'vscode' contains the VS Code extensibility API
22
// Import the module and reference it with the alias vscode in your code below
3-
import * as vscode from "vscode"
4-
import { ClineProvider } from "./core/webview/ClaudeDevProvider"
53
import delay from "delay"
4+
import * as vscode from "vscode"
5+
import { ClineProvider } from "./core/webview/ClineProvider"
66
import { createClaudeDevAPI } from "./exports"
77
import "./utils/path" // necessary to have access to String.prototype.toPosix
88

src/integrations/workspace/WorkspaceTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as vscode from "vscode"
22
import * as path from "path"
33
import { listFiles } from "../../services/glob/list-files"
4-
import { ClineProvider } from "../../core/webview/ClaudeDevProvider"
4+
import { ClineProvider } from "../../core/webview/ClineProvider"
55

66
const cwd = vscode.workspace.workspaceFolders?.map((folder) => folder.uri.fsPath).at(0)
77

0 commit comments

Comments
 (0)