Refactor tree-sitter

This commit is contained in:
Saoud Rizwan committed 2024-09-24 10:58:07 -04:00
1 parent 3466859536
commit 4e10e1ec3d
18 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ import { serializeError } from "serialize-error"
import * as vscode from "vscode"
import { ApiHandler, buildApiHandler } from "./api"
import { TerminalManager } from "./integrations/TerminalManager"
import { listFiles, parseSourceCodeForDefinitionsTopLevel } from "./parse-source-code"
import { listFiles, parseSourceCodeForDefinitionsTopLevel } from "./core/tree-sitter"
import { ClaudeDevProvider } from "./providers/ClaudeDevProvider"
import { ApiConfiguration } from "./shared/api"
import { ClaudeRequestResult } from "./shared/ClaudeRequestResult"
@@ -3,7 +3,7 @@ import { globby, Options } from "globby"
import os from "os"
import * as path from "path"
import { LanguageParser, loadRequiredLanguageParsers } from "./languageParser"
import { arePathsEqual } from "../utils/path-helpers"
import { arePathsEqual } from "../../utils/path-helpers"
// TODO: implement caching behavior to avoid having to keep analyzing project for new tasks.
export async function parseSourceCodeForDefinitionsTopLevel(dirPath: string): Promise<string> {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -1,6 +1,6 @@
import * as vscode from "vscode"
import * as path from "path"
import { listFiles } from "../parse-source-code/index"
import { listFiles } from "../core/tree-sitter/index"
import { ClaudeDevProvider } from "../providers/ClaudeDevProvider"
const cwd = vscode.workspace.workspaceFolders?.map((folder) => folder.uri.fsPath).at(0)