Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ghentschke committed Feb 8, 2025
1 parent f6c978c commit ff6ea9f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ public void partOpened(IWorkbenchPart part) {
if (part instanceof ExtensionBasedTextEditor editor && LspUtils.checkForCContentType(editor.getEditorInput())) {
Optional.ofNullable(LSPEclipseUtils.toUri(editor.getEditorInput())).ifPresent(uri -> {
var data = cache.get(uri);
if (data != null && !data.restored) {
if (data != null) {
data.enable = true;
++data.opened;
if (!data.restored) {
++data.opened;
}
data.restored = false;
} else if (data == null) {
cache.put(uri, new Data(true, 1));
}
if (data != null) {
data.restored = false;
}
});
}
}
Expand Down

0 comments on commit ff6ea9f

Please sign in to comment.