33 * Licensed under the MIT License. See License.txt in the project root for license information.
44 * ------------------------------------------------------------------------------------------ */
55
6- /* eslint-disable dot-notation */
7-
86import {
97 BaseLanguageClient , MessageTransports , LanguageClientOptions , CloseAction , ErrorAction
108} from 'vscode-languageclient/lib/common/client' ;
@@ -54,14 +52,18 @@ export class MonacoLanguageClient extends BaseLanguageClient {
5452
5553 // Hack because vscode-language client rejects the whole registration block if one capability registration has no associated client feature registered
5654 // Some language servers still send the registration even though the client says it doesn't support it
55+ // eslint-disable-next-line @typescript-eslint/dot-notation
5756 const originalHandleRegistrationRequest : ( params : RegistrationParams ) => Promise < void > = this [ 'handleRegistrationRequest' ] . bind ( this ) ;
57+ // eslint-disable-next-line @typescript-eslint/dot-notation
5858 this [ 'handleRegistrationRequest' ] = ( params : RegistrationParams ) => {
5959 originalHandleRegistrationRequest ( {
6060 ...params ,
6161 registrations : params . registrations . filter ( registration => this . getFeature ( < any > registration . method ) != null )
6262 } ) ;
6363 } ;
64+ // eslint-disable-next-line @typescript-eslint/dot-notation
6465 const originalHandleUnregistrationRequest : ( params : UnregistrationParams ) => Promise < void > = this [ 'handleUnregistrationRequest' ] . bind ( this ) ;
66+ // eslint-disable-next-line @typescript-eslint/dot-notation
6567 this [ 'handleUnregistrationRequest' ] = ( params : UnregistrationParams ) => {
6668 originalHandleUnregistrationRequest ( {
6769 ...params ,
@@ -79,8 +81,10 @@ export class MonacoLanguageClient extends BaseLanguageClient {
7981 }
8082
8183 protected override registerBuiltinFeatures ( ) {
84+ // eslint-disable-next-line @typescript-eslint/dot-notation
8285 this . registerFeature ( new DidOpenTextDocumentFeature ( this , this [ '_syncedDocuments' ] ) ) ;
8386 this . registerFeature ( new DidChangeTextDocumentFeature ( this ) ) ;
87+ // eslint-disable-next-line @typescript-eslint/dot-notation
8488 this . registerFeature ( new DidCloseTextDocumentFeature ( this , this [ '_syncedDocuments' ] ) ) ;
8589 this . registerFeature ( new CompletionItemFeature ( this ) ) ;
8690 this . registerFeature ( new HoverFeature ( this ) ) ;
0 commit comments