We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71c15af + a2644c9 commit 2646502Copy full SHA for 2646502
src/razor/src/document/razorDocumentSynchronizer.ts
@@ -123,7 +123,6 @@ export class RazorDocumentSynchronizer {
123
124
const documentKey = getUriPath(context.projectedDocument.uri);
125
const synchronizations = this.synchronizations[documentKey];
126
- clearTimeout(context.timeoutId);
127
128
if (synchronizations.length === 1) {
129
delete this.synchronizations[documentKey];
@@ -170,9 +169,8 @@ export class RazorDocumentSynchronizer {
170
169
}
171
},
172
dispose: () => {
173
- while (rejectionsForCancel.length > 0) {
174
- rejectionsForCancel.pop();
175
- }
+ rejectionsForCancel.length = 0;
+ clearTimeout(context.timeoutId);
176
177
projectedDocumentSynchronized,
178
onProjectedDocumentSynchronized,
0 commit comments