license import * as vscode from 'vscode' ; import { AngularLanguageClient } from './client' ; import { registerCommands } from './commands' ; export function activate ( context ) { const client = new AngularLanguageClient ( context ) ; registerCommands ( client , context ) ; const disposable = vscode . workspace . onDidChangeConfiguration ( async ( e ) => { if ( ! e . affectsConfiguration ( 'angular' ) ) { return ; } await client . stop ( ) ; await client . start ( ) ; } ) ; context . subscriptions . push ( client , disposable ) ; client . start ( ) ; }