* Switch openMention to use getCwd instead of using the vscode SDK directly. * Use getCwd in services/test/TestServer.ts instead of using the vscode SDK. Don't get the cwd from the controller extension context global state, use the workspace folder as the rest of the codebase is doing. Replace GitHelper.getWorkspacePath with utils.getCwd() * Use host bridge getWorkspacePaths in services/test/TestMode.ts -instead of using the vscode SDK. Remove unsed param `context` * Remove unused file CheckpointTracker-old.ts * Use hostbridge getCwd in CheckpointUtils.ts and message-state.ts
15 lines
526 B
TypeScript
15 lines
526 B
TypeScript
import { Controller } from ".."
|
|
import { Empty, StringRequest } from "../../../shared/proto/common"
|
|
import { openMention as coreOpenMention } from "../../mentions"
|
|
|
|
/**
|
|
* Opens a mention (file path, problem, terminal, or URL)
|
|
* @param controller The controller instance
|
|
* @param request The string request containing the mention text
|
|
* @returns Empty response
|
|
*/
|
|
export async function openMention(_controller: Controller, request: StringRequest): Promise<Empty> {
|
|
coreOpenMention(request.value)
|
|
return Empty.create()
|
|
}
|