feat(lsp): Separate timeout category for highlighting
This commit is contained in:
parent
81513b2ff3
commit
0744b36e41
3 changed files with 6 additions and 3 deletions
|
@ -18,6 +18,9 @@ Changelog structure reference:
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Separate timeout category for syntax highlighting
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
- Updated dependencies
|
- Updated dependencies
|
||||||
- Integrated LSP4IntelliJ directly into ZigBrains
|
- Integrated LSP4IntelliJ directly into ZigBrains
|
||||||
|
|
|
@ -21,7 +21,7 @@ package com.falsepattern.zigbrains.lsp.requests;
|
||||||
public enum Timeouts {
|
public enum Timeouts {
|
||||||
CODEACTION(2000), CODELENS(2000), COMPLETION(1000), DEFINITION(2000), DOC_HIGHLIGHT(1000), EXECUTE_COMMAND(
|
CODEACTION(2000), CODELENS(2000), COMPLETION(1000), DEFINITION(2000), DOC_HIGHLIGHT(1000), EXECUTE_COMMAND(
|
||||||
2000), FORMATTING(2000), HOVER(2000), INIT(10000), REFERENCES(2000), SIGNATURE(1000), SHUTDOWN(
|
2000), FORMATTING(2000), HOVER(2000), INIT(10000), REFERENCES(2000), SIGNATURE(1000), SHUTDOWN(
|
||||||
5000), SYMBOLS(2000), WILLSAVE(2000), FOLDING(1000);
|
5000), SYMBOLS(2000), WILLSAVE(2000), FOLDING(1000), HIGHLIGHTING(1000);
|
||||||
|
|
||||||
private final int defaultTimeout;
|
private final int defaultTimeout;
|
||||||
|
|
||||||
|
|
|
@ -80,8 +80,8 @@ public class ZLSEditorEventManager extends EditorEventManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var res = request.get(getTimeout(Timeouts.CODEACTION), TimeUnit.MILLISECONDS);
|
var res = request.get(getTimeout(Timeouts.HIGHLIGHTING), TimeUnit.MILLISECONDS);
|
||||||
wrapper.notifySuccess(Timeouts.CODEACTION);
|
wrapper.notifySuccess(Timeouts.HIGHLIGHTING);
|
||||||
if (res == null) {
|
if (res == null) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue