Latest proposed LSP 3.16.0

Needs: https://github.com/gluon-lang/lsp-types/pull/183
This commit is contained in:
kjeremy 2020-10-21 14:57:55 -04:00
parent 35ed3d2c00
commit 5cb6fafd36
9 changed files with 39 additions and 24 deletions

View file

@ -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;
}