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]
|
||||
|
||||
### Added
|
||||
- Separate timeout category for syntax highlighting
|
||||
|
||||
### Security
|
||||
- Updated dependencies
|
||||
- Integrated LSP4IntelliJ directly into ZigBrains
|
||||
|
|
|
@ -21,7 +21,7 @@ package com.falsepattern.zigbrains.lsp.requests;
|
|||
public enum Timeouts {
|
||||
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(
|
||||
5000), SYMBOLS(2000), WILLSAVE(2000), FOLDING(1000);
|
||||
5000), SYMBOLS(2000), WILLSAVE(2000), FOLDING(1000), HIGHLIGHTING(1000);
|
||||
|
||||
private final int defaultTimeout;
|
||||
|
||||
|
|
|
@ -80,8 +80,8 @@ public class ZLSEditorEventManager extends EditorEventManager {
|
|||
}
|
||||
|
||||
try {
|
||||
var res = request.get(getTimeout(Timeouts.CODEACTION), TimeUnit.MILLISECONDS);
|
||||
wrapper.notifySuccess(Timeouts.CODEACTION);
|
||||
var res = request.get(getTimeout(Timeouts.HIGHLIGHTING), TimeUnit.MILLISECONDS);
|
||||
wrapper.notifySuccess(Timeouts.HIGHLIGHTING);
|
||||
if (res == null) {
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue