@@ -18,13 +18,13 @@ import * as fs from 'fs';
1818import * as os from 'os' ;
1919import { spawn } from 'child_process' ;
2020
21- import { workspace , commands , Disposable , ExtensionContext , window , WorkspaceConfiguration , TextDocumentChangeEvent , TextDocumentContentChangeEvent , Range , Position , Uri , TextDocumentShowOptions , ViewColumn , extensions } from 'vscode' ;
21+ import { workspace , commands , Disposable , ExtensionContext , OutputChannel , window , WorkspaceConfiguration , TextDocumentChangeEvent , TextDocumentContentChangeEvent , Range , Position , Uri , TextDocumentShowOptions , ViewColumn , extensions } from 'vscode' ;
2222import { LanguageClient , LanguageClientOptions , SettingMonitor , ServerOptions , TransportKind , NotificationType , Code2ProtocolConverter , DidChangeTextDocumentParams } from 'vscode-languageclient' ;
2323
2424let client : LanguageClient = null ;
2525
2626export function activate ( context : ExtensionContext ) {
27- // console.log('CLIENT activate!!!');
27+ // console.log('CLIENT activate!!!');
2828
2929 const disposable3 = workspace . onDidChangeConfiguration ( ( params ) => {
3030 // console.log(`CLIENT onDidChangeConfiguration ${JSON.stringify(params)}`); //debug
@@ -33,7 +33,8 @@ export function activate(context: ExtensionContext) {
3333 context . subscriptions . push ( disposable3 ) ;
3434
3535 // The server is implemented in node
36- const serverModule = context . asAbsolutePath ( path . join ( 'server' , 'server.js' ) ) ;
36+ const serverModule = context . asAbsolutePath ( path . join ( 'server/src' , 'server.js' ) ) ;
37+ const outputChannel : OutputChannel = window . createOutputChannel ( 'Hyperledger Composer' ) ;
3738
3839 // The debug options for the server
3940 const debugOptions = { execArgv : [ '--nolazy' , '--inspect=6009' ] } ;
@@ -54,7 +55,8 @@ export function activate(context: ExtensionContext) {
5455 configurationSection : 'composer' ,
5556 // Notify the server about file changes to '.clientrc files contain in the workspace
5657 // fileEvents: workspace.createFileSystemWatcher('**/.clientrc')
57- }
58+ } ,
59+ outputChannel : outputChannel
5860 } ;
5961
6062 // Create the language client and start the client.
0 commit comments