1- 'use strict' ;
1+ import * as fs from 'fs'
2+ import * as path from 'path'
23
3- import * as fs from 'fs' ;
4- import * as path from 'path' ;
4+ import * as pcp from 'promisify-child-process'
5+ import * as compareVersions from 'compare-versions'
56
6- import * as pcp from 'promisify-child-process' ;
7- import * as compareVersions from 'compare-versions' ;
7+ import { ChildProcess } from "child_process"
88
9- import { ChildProcess } from "child_process" ;
10-
11- import { ExtensionContext } from 'vscode' ;
12- import * as vscode from 'vscode' ;
9+ import { ExtensionContext } from 'vscode'
10+ import * as vscode from 'vscode'
1311import { LanguageClient , LanguageClientOptions , RevealOutputChannelOn ,
14- ServerOptions } from 'vscode-languageclient' ;
12+ ServerOptions } from 'vscode-languageclient'
1513import { enableOldServerWorkaround } from './compat'
1614import * as features from './features'
1715
1816export let client : LanguageClient
1917
2018import * as rpc from 'vscode-jsonrpc'
2119import * as sbtserver from './sbt-server'
22- import { Tracer } from './tracer' ;
20+ import { Tracer } from './tracer'
2321
24- export const extensionName = 'dotty' ;
25- const extensionConfig = vscode . workspace . getConfiguration ( extensionName ) ;
22+ export const extensionName = 'dotty'
23+ const extensionConfig = vscode . workspace . getConfiguration ( extensionName )
2624
2725let extensionContext : ExtensionContext
2826let outputChannel : vscode . OutputChannel
29- let tracer : Tracer ;
27+ let tracer : Tracer
3028
3129/** The sbt process that may have been started by this extension */
3230let sbtProcess : ChildProcess | undefined
@@ -50,14 +48,14 @@ function isConfiguredProject() {
5048
5149export function activate ( context : ExtensionContext ) {
5250 extensionContext = context
53- outputChannel = vscode . window . createOutputChannel ( "Dotty" ) ;
51+ outputChannel = vscode . window . createOutputChannel ( "Dotty" )
5452 tracer = new Tracer ( {
5553 extensionContext,
5654 extensionConfig,
5755 extensionOut : outputChannel ,
5856 } )
5957
60- const coursierPath = path . join ( extensionContext . extensionPath , "out" , "coursier" ) ;
58+ const coursierPath = path . join ( extensionContext . extensionPath , "out" , "coursier" )
6159 const dottyPluginSbtFileSource = path . join ( extensionContext . extensionPath , "out" , "dotty-plugin.sbt" )
6260 const buildSbtFileSource = path . join ( extensionContext . extensionPath , "out" , "build.sbt" )
6361
@@ -308,7 +306,7 @@ function bootstrapSbtProject(buildSbtFileSource: string,
308306
309307function run ( serverOptions : ServerOptions , isOldServer : boolean ) {
310308
311- const { lspOutputChannel } = tracer . run ( ) ;
309+ const { lspOutputChannel } = tracer . run ( )
312310
313311 const clientOptions : LanguageClientOptions = {
314312 documentSelector : [
0 commit comments