Skip to content

Commit

Permalink
Remove unnecessary handleOpen/handleClosed from DocumentLifeCycleHandler
Browse files Browse the repository at this point in the history
These methods are basically no-ops.

Signed-off-by: Mathias Fussenegger <f.mathias@zignar.net>
  • Loading branch information
mfussenegger committed Nov 10, 2021
1 parent 2602ef6 commit 1e9e904
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
import org.eclipse.jdt.ls.core.internal.managers.InvisibleProjectImporter;
import org.eclipse.jdt.ls.core.internal.managers.ProjectsManager;
import org.eclipse.jdt.ls.core.internal.preferences.PreferenceManager;
import org.eclipse.lsp4j.DidCloseTextDocumentParams;
import org.eclipse.lsp4j.DidOpenTextDocumentParams;

public class DocumentLifeCycleHandler extends BaseDocumentLifeCycleHandler {

Expand Down Expand Up @@ -82,22 +80,4 @@ public ICompilationUnit resolveCompilationUnit(String uri) {

return unit;
}

@Override
public ICompilationUnit handleOpen(DidOpenTextDocumentParams params) {
ICompilationUnit unit = super.handleOpen(params);

if (unit == null || unit.getResource() == null || unit.getResource().isDerived()) {
return unit;
}

return unit;
}

@Override
public ICompilationUnit handleClosed(DidCloseTextDocumentParams params) {
ICompilationUnit unit = super.handleClosed(params);
return unit;
}

}

0 comments on commit 1e9e904

Please sign in to comment.