We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ce6cf commit e4a6917Copy full SHA for e4a6917
src/server/scriptVersionCache.ts
@@ -851,9 +851,9 @@ namespace ts.server {
851
}
852
853
// assume there is room for the item; return true if more room
854
- add(collection: LineCollection) {
+ add(collection: LineCollection): void {
855
this.children.push(collection);
856
- return (this.children.length < lineCollectionCapacity);
+ Debug.assert(this.children.length <= lineCollectionCapacity);
857
858
859
charCount() {
0 commit comments