mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Expose underlying program from the LS
This commit is contained in:
parent
9628191a14
commit
d6decf82e1
@ -914,6 +914,8 @@ module ts {
|
||||
|
||||
getEmitOutput(fileName: string): EmitOutput;
|
||||
|
||||
getProgram(): Program;
|
||||
|
||||
getSourceFile(filename: string): SourceFile;
|
||||
|
||||
dispose(): void;
|
||||
@ -2075,6 +2077,12 @@ module ts {
|
||||
}
|
||||
}
|
||||
|
||||
function getProgram(): Program {
|
||||
synchronizeHostData();
|
||||
|
||||
return program;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up any semantic caches that are not needed.
|
||||
* The host can call this method if it wants to jettison unused memory.
|
||||
@ -5444,6 +5452,7 @@ module ts {
|
||||
getFormattingEditsAfterKeystroke,
|
||||
getEmitOutput,
|
||||
getSourceFile: getCurrentSourceFile,
|
||||
getProgram
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user