import * as path from 'path' ; import * as vscode from 'vscode' ; import * as client from 'vscode-languageclient/node' ; export function activate ( context ) { let serverModule = path . join ( __dirname , 'server.js' ) ; let serverOptions = { run : { module : serverModule , transport : client . TransportKind . ipc } , debug : { module : serverModule , transport : client . TransportKind . ipc } , } ; let clientOptions = { documentSelector : [ 'glslx' ] , synchronize : { fileEvents : vscode . workspace . createFileSystemWatcher ( '**/*.glslx' ) , } , } ; let server = new client . LanguageClient ( 'GLSLX' , serverOptions , clientOptions ) ; context . subscriptions . push ( server . start ( ) ) ; }