'use strict' ; import * as VSCode from 'vscode' ; import { LanguageClient } from 'vscode-languageclient/node' ; import { ServerMode } from './java' ; import { RulesResponse } from './rules' ; import { code2ProtocolConverter } from './uri' ; export class SonarLintExtendedLanguageClient extends LanguageClient { listAllRules ( ) { return this . sendRequest ( 'sonarlint/listAllRules' ) ; } didClasspathUpdate ( projectRoot ) { this . sendNotification ( 'sonarlint/didClasspathUpdate' , code2ProtocolConverter ( projectRoot ) ) ; } didJavaServerModeChange ( serverMode ) { this . sendNotification ( 'sonarlint/didJavaServerModeChange' , serverMode ) ; } didLocalBranchNameChange ( folderRoot , branchName ? ) { const folderUri = code2ProtocolConverter ( folderRoot ) ; this . sendNotification ( 'sonarlint/didLocalBranchNameChange' , { folderUri , branchName } ) ; } }