Skip to content

Commit 9e215b0

Browse files
authored
feat: expose remogeSourceFile (#6)
1 parent eb50638 commit 9e215b0

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

_packages/api/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type {
1616
TypeResponse,
1717
} from "./proto.ts";
1818

19-
export { SymbolFlags, TypeFlags };
19+
export { SymbolFlags, TypeFlags, RemoteSourceFile, type Node };
2020

2121
export interface APIOptions {
2222
tsserverPath: string;

_packages/api/src/client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export class Client {
2929
);
3030

3131
if (options.fs) {
32-
for (const [key, callback] of Object.entries(options.fs)) {
33-
this.channel.registerCallback(key, (_, arg) => {
34-
const result = callback(JSON.parse(arg));
35-
return JSON.stringify(result) ?? "";
36-
});
37-
}
32+
// for (const [key, callback] of Object.entries(options.fs)) {
33+
// this.channel.registerCallback(key, (_, arg) => {
34+
// const result = callback(JSON.parse(arg));
35+
// return JSON.stringify(result) ?? "";
36+
// });
37+
// }
3838
}
3939
}
4040

0 commit comments

Comments
 (0)