mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 10:34:29 -05:00
added getApiVersion method to TypeScriptServicesFactory
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
/// <reference path='formatting.ts' />
|
||||
|
||||
module ts {
|
||||
|
||||
export var ScriptAPIVersion = "1.4"
|
||||
|
||||
export interface Node {
|
||||
getSourceFile(): SourceFile;
|
||||
getChildCount(sourceFile?: SourceFile): number;
|
||||
|
||||
@@ -867,6 +867,13 @@ module ts {
|
||||
private _shims: Shim[] = [];
|
||||
private documentRegistry: DocumentRegistry = createDocumentRegistry();
|
||||
|
||||
/*
|
||||
* Returns script API version.
|
||||
*/
|
||||
public getApiVersion(dummy: any): string {
|
||||
return ScriptAPIVersion;
|
||||
}
|
||||
|
||||
public createLanguageServiceShim(host: LanguageServiceShimHost): LanguageServiceShim {
|
||||
try {
|
||||
var hostAdapter = new LanguageServiceShimHostAdapter(host);
|
||||
|
||||
Reference in New Issue
Block a user