mirror of
https://github.com/denoland/deno
synced 2024-10-05 23:59:24 +00:00
fix(lsp): implement missing ts server host apis (#23131)
This commit is contained in:
parent
c53b720656
commit
524e451bfb
|
@ -544,6 +544,19 @@ delete Object.prototype.__proto__;
|
||||||
getGlobalTypingsCacheLocation() {
|
getGlobalTypingsCacheLocation() {
|
||||||
return undefined;
|
return undefined;
|
||||||
},
|
},
|
||||||
|
// @ts-ignore Undocumented method.
|
||||||
|
toPath(fileName) {
|
||||||
|
// @ts-ignore Undocumented function.
|
||||||
|
ts.toPath(
|
||||||
|
fileName,
|
||||||
|
this.getCurrentDirectory(),
|
||||||
|
this.getCanonicalFileName(fileName),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
// @ts-ignore Undocumented method.
|
||||||
|
watchNodeModulesForPackageJsonChanges() {
|
||||||
|
return { close() {} };
|
||||||
|
},
|
||||||
getSourceFile(
|
getSourceFile(
|
||||||
specifier,
|
specifier,
|
||||||
languageVersion,
|
languageVersion,
|
||||||
|
|
Loading…
Reference in a new issue