From 5cb6fafd366158ac5d9461819dbb0fb7018ad685 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Wed, 21 Oct 2020 14:57:55 -0400 Subject: Latest proposed LSP 3.16.0 Needs: https://github.com/gluon-lang/lsp-types/pull/183 --- editors/code/src/util.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/util.ts b/editors/code/src/util.ts index 08159b43c..53492a445 100644 --- a/editors/code/src/util.ts +++ b/editors/code/src/util.ts @@ -75,12 +75,11 @@ export async function sendRequestWithRetry( 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; } -- cgit v1.2.3