From 93dda26036aed95e3abb0f0b3ed68c2711a0e9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Sun, 14 Aug 2022 03:06:50 +0200 Subject: [PATCH] Remove useless code --- packages/client/src/monaco-language-client.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/client/src/monaco-language-client.ts b/packages/client/src/monaco-language-client.ts index f25e2f5d..b6abe1b5 100644 --- a/packages/client/src/monaco-language-client.ts +++ b/packages/client/src/monaco-language-client.ts @@ -6,7 +6,6 @@ import { BaseLanguageClient, MessageTransports, LanguageClientOptions, CloseAction, ErrorAction } from 'vscode-languageclient/lib/common/client'; -import type * as vscode from 'vscode'; import { ConfigurationFeature, SyncConfigurationFeature } from 'vscode-languageclient/lib/common/configuration'; import { DidChangeTextDocumentFeature, DidCloseTextDocumentFeature, DidOpenTextDocumentFeature, DidSaveTextDocumentFeature, WillSaveFeature, WillSaveWaitUntilFeature } from 'vscode-languageclient/lib/common/textSynchronization'; import { CompletionItemFeature } from 'vscode-languageclient/lib/common/completion'; @@ -42,8 +41,6 @@ export interface IConnectionProvider { get(encoding: string): Promise; } export class MonacoLanguageClient extends BaseLanguageClient { - static bypassConversion = (result: any, token?: vscode.CancellationToken) => token != null ? Promise.resolve(result || undefined) : (result || undefined); - protected readonly connectionProvider: IConnectionProvider; constructor ({ id, name, clientOptions, connectionProvider }: MonacoLanguageClient.Options) {