Skip to content

Commit

Permalink
Небольшой комментарий на будущее
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Dec 27, 2024
1 parent 2393a2b commit 3ae01fd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public void handleDocumentContextChange(DocumentContextContentChangedEvent event
}

private void findAndRegisterAnnotation(DocumentContext documentContext) {
// In normal case this method may be called twice per each document context:
// 1. When the document context is created during the server context population or document opening
// 2. When server context is fully populated.
// This can lead to the situation when annotations registered from opened documents are cleared after populateContext step.
// Due to limitation of mechanism to only OS files, we can leave it as is for now, but it should be refactored in the future.
if (documentContext.getFileType() != FileType.OS) {
return;
}
Expand Down

0 comments on commit 3ae01fd

Please sign in to comment.