MCPcopy
hub / github.com/continuedev/continue / FileSystemIde

Class FileSystemIde

core/util/filesystem.ts:22–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20} from "../index.js";
21
22class FileSystemIde implements IDE {
23 constructor(private readonly workspaceDir: string) {}
24
25 async readSecrets(keys: string[]): Promise<Record<string, string>> {
26 return {};
27 }
28
29 async writeSecrets(secrets: { [key: string]: string }): Promise<void> {}
30
31 showToast(
32 type: ToastType,
33 message: string,
34 ...otherParams: any[]
35 ): Promise<void> {
36 return Promise.resolve();
37 }
38
39 fileExists(fileUri: string): Promise<boolean> {
40 const filepath = fileURLToPath(fileUri);
41 return Promise.resolve(fs.existsSync(filepath));
42 }
43
44 gotoDefinition(location: Location): Promise<RangeInFile[]> {
45 return Promise.resolve([]);
46 }
47
48 gotoTypeDefinition(location: Location): Promise<RangeInFile[]> {
49 return Promise.resolve([]);
50 }
51
52 getSignatureHelp(location: Location): Promise<SignatureHelp | null> {
53 return Promise.resolve(null);
54 }
55
56 getReferences(location: Location): Promise<RangeInFile[]> {
57 return Promise.resolve([]);
58 }
59
60 getDocumentSymbols(fileUri: string): Promise<DocumentSymbol[]> {
61 return Promise.resolve([]);
62 }
63
64 onDidChangeActiveTextEditor(callback: (fileUri: string) => void): void {
65 return;
66 }
67
68 isWorkspaceRemote(): Promise<boolean> {
69 return Promise.resolve(false);
70 }
71
72 async getIdeSettings(): Promise<IdeSettings> {
73 return {
74 remoteConfigServerUrl: undefined,
75 remoteConfigSyncPeriod: 60,
76 userToken: "",
77 continueTestEnvironment: "none",
78 pauseCodebaseIndexOnStart: false,
79 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected