22
33import * as fs from 'fs' ;
44import * as path from 'path' ;
5- import { spawn } from 'child_process' ;
65
76import * as cpp from 'child-process-promise' ;
87
9- import { commands , workspace , Disposable , ExtensionContext , Uri } from 'vscode' ;
10- import { Executable , LanguageClient , LanguageClientOptions , SettingMonitor , ServerOptions , TransportKind } from 'vscode-languageclient' ;
11- import * as lc from 'vscode-languageclient' ;
8+ import { ExtensionContext } from 'vscode' ;
129import * as vscode from 'vscode' ;
10+ import { LanguageClient , LanguageClientOptions , ServerOptions } from 'vscode-languageclient' ;
1311
1412let extensionContext : ExtensionContext
1513let outputChannel : vscode . OutputChannel
@@ -45,7 +43,7 @@ export function activate(context: ExtensionContext) {
4543 } )
4644}
4745
48- function fetchAndRun ( artifact : String ) {
46+ function fetchAndRun ( artifact : string ) {
4947 const coursierPath = path . join ( extensionContext . extensionPath , './out/coursier' ) ;
5048
5149 vscode . window . withProgress ( {
@@ -64,15 +62,15 @@ function fetchAndRun(artifact: String) {
6462
6563 let classPath = ""
6664
67- coursierProc . stdout . on ( 'data' , ( data ) => {
65+ coursierProc . stdout . on ( 'data' , ( data : Buffer ) => {
6866 classPath += data . toString ( ) . trim ( )
6967 } )
70- coursierProc . stderr . on ( 'data' , ( data ) => {
68+ coursierProc . stderr . on ( 'data' , ( data : Buffer ) => {
7169 let msg = data . toString ( )
7270 outputChannel . append ( msg )
7371 } )
7472
75- coursierProc . on ( 'close' , ( code ) => {
73+ coursierProc . on ( 'close' , ( code : number ) => {
7674 if ( code != 0 ) {
7775 let msg = "Fetching the language server failed."
7876 outputChannel . append ( msg )
0 commit comments