Skip to content

Commit 6b7083d

Browse files
Andrew Hallgithub-actions
authored andcommitted
Update src/razor/src/dynamicFile/dynamicFileInfoHandler.ts
1 parent 53ca75b commit 6b7083d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/razor/src/dynamicFile/dynamicFileInfoHandler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export class DynamicFileInfoHandler {
4040
}
4141
);
4242
this.documentManager.onChange(async (e) => {
43+
// Ignore any updates without text changes. This is important for perf since sending an update to roslyn does
44+
// a round trip for producing nothing new and causes a lot of churn in solution updates.
4345
if (e.kind == RazorDocumentChangeKind.csharpChanged && !e.document.isOpen && e.changes.length > 0) {
4446
const uriString = UriConverter.serialize(e.document.uri);
4547
const identifier = TextDocumentIdentifier.create(uriString);

0 commit comments

Comments
 (0)