mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-16 15:25:38 +00:00
Latest proposed LSP 3.16.0
Needs: https://github.com/gluon-lang/lsp-types/pull/183
This commit is contained in:
parent
35ed3d2c00
commit
5cb6fafd36
9 changed files with 39 additions and 24 deletions
|
@ -75,12 +75,11 @@ export async function sendRequestWithRetry<TParam, TRet>(
|
|||
log.warn("LSP request timed out", { method: reqType.method, param, error });
|
||||
throw error;
|
||||
}
|
||||
|
||||
if (error.code === lc.ErrorCodes.RequestCancelled) {
|
||||
if (error.code === lc.LSPErrorCodes.RequestCancelled) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
if (error.code !== lc.ErrorCodes.ContentModified) {
|
||||
if (error.code !== lc.LSPErrorCodes.ContentModified) {
|
||||
log.warn("LSP request failed", { method: reqType.method, param, error });
|
||||
throw error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue