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 cc28f41 commit 36a5ce2Copy full SHA for 36a5ce2
src/razor/src/document/razorDocumentManager.ts
@@ -237,6 +237,16 @@ export class RazorDocumentManager implements IRazorDocumentManager {
237
);
238
}
239
240
+ if (updateBufferRequest.changes.length === 0 && !updateBufferRequest.previousWasEmpty) {
241
+ if (this.logger.verboseEnabled) {
242
+ this.logger.logVerbose(
243
+ `Update for '${updateBufferRequest.hostDocumentFilePath}' was empty. This shouldn't happen because it means the language server is doing extra work.`
244
+ );
245
+ }
246
+
247
+ return;
248
249
250
const hostDocumentUri = vscode.Uri.file(updateBufferRequest.hostDocumentFilePath);
251
const document = this._getDocument(hostDocumentUri);
252
const projectedDocument = document.csharpDocument;
0 commit comments