Skip to content

Commit c9b1309

Browse files
committed
Gracefully handel getChangeRange in Scriptsnapshot.fromString
1 parent 66f8257 commit c9b1309

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/services.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ module ts {
115115
}
116116

117117
public getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange {
118-
throw new Error("not yet implemented");
118+
// Text-based snapshots do not support incremental parsing. Return undefined
119+
// to signal that to the caller.
120+
return undefined;
119121
}
120122
}
121123

0 commit comments

Comments
 (0)