fix(fold): Occasional NPE in LSP4IntellIJ
This commit is contained in:
parent
e9b69646f2
commit
d18ca32b9b
2 changed files with 10 additions and 1 deletions
|
@ -7,7 +7,10 @@
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
#### Highlighting
|
#### Highlighting
|
||||||
Last token in file not getting highlighted
|
- Last token in file not getting highlighted
|
||||||
|
|
||||||
|
#### Folding
|
||||||
|
- Occasional NPE in LSP4IntellIJ
|
||||||
|
|
||||||
## [0.2.0]
|
## [0.2.0]
|
||||||
|
|
||||||
|
|
|
@ -93,4 +93,10 @@ public class ZLSRequestManager extends DefaultRequestManager {
|
||||||
LOG.warn(e);
|
LOG.warn(e);
|
||||||
getWrapper().crashed(e);
|
getWrapper().crashed(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CompletableFuture<List<FoldingRange>> foldingRange(FoldingRangeRequestParams params) {
|
||||||
|
var future = super.foldingRange(params);
|
||||||
|
return future == null ? null : future.thenApply((range) -> range == null ? Collections.emptyList() : range);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue