Searched refs:ScriptVersionCache (Results 1 – 3 of 3) sorted by relevance
251 export class ScriptVersionCache { class253 …donly versions: LineIndexSnapshot[] = new Array<LineIndexSnapshot>(ScriptVersionCache.maxVersions);266 return version % ScriptVersionCache.maxVersions;270 return this.currentVersion % ScriptVersionCache.maxVersions;276 if (this.changes.length > ScriptVersionCache.changeNumberThreshold ||277 deleteLen > ScriptVersionCache.changeLengthThreshold ||278 insertedText && insertedText.length > ScriptVersionCache.changeLengthThreshold) {298 if ((this.currentVersion - this.minVersion) >= ScriptVersionCache.maxVersions) {299 this.minVersion = (this.currentVersion - ScriptVersionCache.maxVersions) + 1;354 const svc = new ScriptVersionCache();[all …]
15 private svc: ScriptVersionCache | undefined;225 private switchToScriptVersionCache(): ScriptVersionCache {227 this.svc = ScriptVersionCache.fromString(this.getOrLoadText());233 private useScriptVersionCacheIfValidOrOpen(): ScriptVersionCache | undefined {
288 const svc = server.ScriptVersionCache.fromString(testContent);