File tree Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -4482,7 +4482,7 @@ namespace ts {
4482
4482
newEndN = Math . max ( newEnd2 , newEnd2 + ( newEnd1 - oldEnd2 ) ) ;
4483
4483
}
4484
4484
4485
- return createTextChangeRange ( createTextSpanFromBounds ( oldStartN , oldEndN ) , /*newLength: */ newEndN - oldStartN ) ;
4485
+ return createTextChangeRange ( createTextSpanFromBounds ( oldStartN , oldEndN ) , /*newLength*/ newEndN - oldStartN ) ;
4486
4486
}
4487
4487
4488
4488
export function getTypeParameterOwner ( d : Declaration ) : Declaration {
Original file line number Diff line number Diff line change @@ -2897,7 +2897,6 @@ ${code}
2897
2897
}
2898
2898
}
2899
2899
}
2900
- // TODO: should be '==='?
2901
2900
}
2902
2901
else if ( line === "" || lineLength === 0 ) {
2903
2902
// Previously blank lines between fourslash content caused it to be considered as 2 files,
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ class ProjectRunner extends RunnerBase {
111
111
else if ( url . indexOf ( diskProjectPath ) === 0 ) {
112
112
// Replace the disk specific path into the project root path
113
113
url = url . substr ( diskProjectPath . length ) ;
114
- // TODO: should be '!=='?
115
114
if ( url . charCodeAt ( 0 ) !== ts . CharacterCodes . slash ) {
116
115
url = "/" + url ;
117
116
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ namespace ts {
37
37
*
38
38
* Or undefined value if there was no change.
39
39
*/
40
- getChangeRange ( oldSnapshot : ScriptSnapshotShim ) : string ;
40
+ getChangeRange ( oldSnapshot : ScriptSnapshotShim ) : string | undefined ;
41
41
42
42
/** Releases all resources held by this script snapshot */
43
43
dispose ?( ) : void ;
@@ -292,7 +292,6 @@ namespace ts {
292
292
public getChangeRange ( oldSnapshot : IScriptSnapshot ) : TextChangeRange {
293
293
const oldSnapshotShim = < ScriptSnapshotShimAdapter > oldSnapshot ;
294
294
const encoded = this . scriptSnapshotShim . getChangeRange ( oldSnapshotShim . scriptSnapshotShim ) ;
295
- // TODO: should this be '==='?
296
295
if ( encoded === null ) {
297
296
return null ;
298
297
}
@@ -381,7 +380,6 @@ namespace ts {
381
380
382
381
public getCompilationSettings ( ) : CompilerOptions {
383
382
const settingsJson = this . shimHost . getCompilationSettings ( ) ;
384
- // TODO: should this be '==='?
385
383
if ( settingsJson === null || settingsJson === "" ) {
386
384
throw Error ( "LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings" ) ;
387
385
}
You can’t perform that action at this time.
0 commit comments