16
16
/// <reference path='services.ts' />
17
17
18
18
/* @internal */
19
- var debugObjectHost = ( < any > this ) ;
19
+ let debugObjectHost = ( < any > this ) ;
20
+
21
+ // We need to use 'null' to interface with the managed side.
22
+ /* tslint:disable:no-null */
23
+ /* tslint:disable:no-in-operator */
20
24
21
25
/* @internal */
22
26
namespace ts {
@@ -234,8 +238,6 @@ namespace ts {
234
238
}
235
239
236
240
class ScriptSnapshotShimAdapter implements IScriptSnapshot {
237
- private lineStartPositions : number [ ] = null ;
238
-
239
241
constructor ( private scriptSnapshotShim : ScriptSnapshotShim ) {
240
242
}
241
243
@@ -940,7 +942,7 @@ namespace ts {
940
942
return {
941
943
options : { } ,
942
944
files : [ ] ,
943
- errors : [ realizeDiagnostic ( result . error , ' \r\n' ) ]
945
+ errors : [ realizeDiagnostic ( result . error , " \r\n" ) ]
944
946
} ;
945
947
}
946
948
@@ -949,7 +951,7 @@ namespace ts {
949
951
return {
950
952
options : configFile . options ,
951
953
files : configFile . fileNames ,
952
- errors : realizeDiagnostics ( configFile . errors , ' \r\n' )
954
+ errors : realizeDiagnostics ( configFile . errors , " \r\n" )
953
955
} ;
954
956
} ) ;
955
957
}
@@ -1039,12 +1041,21 @@ namespace ts {
1039
1041
}
1040
1042
}
1041
1043
1044
+ /* tslint:enable:no-in-operator */
1045
+ /* tslint:enable:no-null */
1046
+
1042
1047
1043
1048
/// TODO: this is used by VS, clean this up on both sides of the interface
1044
1049
/* @internal */
1045
- module TypeScript . Services {
1046
- export var TypeScriptServicesFactory = ts . TypeScriptServicesFactory ;
1050
+ namespace TypeScript . Services {
1051
+ export const TypeScriptServicesFactory = ts . TypeScriptServicesFactory ;
1047
1052
}
1048
1053
1054
+ /* tslint:disable:no-unused-variable */
1055
+ // 'toolsVersion' gets consumed by the managed side, so it's not unused.
1056
+ // TODO: it should be moved into a namespace though.
1057
+
1049
1058
/* @internal */
1050
- const toolsVersion = "1.6" ;
1059
+ const toolsVersion = "1.8" ;
1060
+
1061
+ /* tslint:enable:no-unused-variable */
0 commit comments