Skip to content

Commit

Permalink
Avoid assertion failure (#1025)
Browse files Browse the repository at this point in the history
Avoid assertion failure when clicking on different nodes and leafs in the changes tree in the wizard
  • Loading branch information
BoykoAlex authored Jun 6, 2024
1 parent beb9363 commit 51e467d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.lsp4e/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Language Server Protocol client for Eclipse IDE (Incubation)
Bundle-SymbolicName: org.eclipse.lsp4e;singleton:=true
Bundle-Version: 0.18.10.qualifier
Bundle-Version: 0.18.11.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.12.0",
org.eclipse.equinox.common;bundle-version="3.8.0",
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.lsp4e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<artifactId>org.eclipse.lsp4e</artifactId>
<packaging>eclipse-plugin</packaging>
<version>0.18.10-SNAPSHOT</version>
<version>0.18.11-SNAPSHOT</version>

<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected IDocument acquireDocument(IProgressMonitor pm) throws CoreException {
final IDocument document = fBuffer.getDocument();
int offset = 0;
int length = document.getLength();
if (range != null) {
if (range != null && getEdit() == null) {
try {
offset = LSPEclipseUtils.toOffset(range.getStart(), document);
length = LSPEclipseUtils.toOffset(range.getEnd(), document) - offset;
Expand Down

0 comments on commit 51e467d

Please sign in to comment.