'use strict' ; import * as path from 'path' ; import * as vscode from 'vscode' ; import { LanguageClient , LanguageClientOptions , RequestType , ServerOptions , TransportKind , NotificationType } from 'vscode-languageclient' ; export function activate ( context ) { let serverModule = context . asAbsolutePath ( path . join ( 'out' , 'server' , 'tomlServerMain.js' ) ) ; let debugOptions = { execArgv : [ "--nolazy" , "--debug=6004" ] } ; let serverOptions = { run : { module : serverModule , transport : TransportKind . ipc } , debug : { module : serverModule , transport : TransportKind . ipc , options : debugOptions } } ; let clientOptions = { documentSelector : [ 'toml' ] , synchronize : { configurationSection : [ 'toml.schemas' , 'http.proxy' , 'http.proxyStrictSSL' ] , fileEvents : vscode . workspace . createFileSystemWatcher ( '**/*.toml' ) } } ; let disposable = new LanguageClient ( 'TOML Language Server' , serverOptions , clientOptions ) . start ( ) ; context . subscriptions . push ( disposable ) ; } export function deactivate ( ) { }