@@ -124,7 +124,6 @@ suite('Extension Test Suite', () => {
124
124
await vscode . workspace . fs . writeFile ( getWorkspaceFile ( 'Main.hs' ) , contents ) ;
125
125
126
126
const pred = ( uri : vscode . Uri ) => ! [ 'download' , 'gz' , 'zip' ] . includes ( path . extname ( uri . fsPath ) ) ;
127
- // const exeExt = os.platform.toString() === 'win32' ? '.exe' : '';
128
127
// Setting up watchers before actual tests start, to ensure we will got the created event
129
128
filesCreated . set ( 'wrapper' , existsWorkspaceFile ( `${ ghcupBaseDir } /bin/haskell-language-server-wrapper*` , pred ) ) ;
130
129
filesCreated . set ( 'server' , existsWorkspaceFile ( `${ ghcupBaseDir } /bin/haskell-language-server-[1-9]*` , pred ) ) ;
@@ -147,7 +146,6 @@ suite('Extension Test Suite', () => {
147
146
} ) ;
148
147
149
148
test ( 'HLS executables should be downloaded' , async ( ) => {
150
- await delay ( 30 ) ;
151
149
await vscode . workspace . openTextDocument ( getWorkspaceFile ( 'Main.hs' ) ) ;
152
150
console . log ( 'Testing wrapper' ) ;
153
151
assert . ok (
@@ -178,8 +176,6 @@ suite('Extension Test Suite', () => {
178
176
} ) ;
179
177
180
178
suiteTeardown ( async ( ) => {
181
- const binDir = await vscode . workspace . fs . readDirectory ( joinUri ( getWorkspaceRoot ( ) . uri , 'bin' , process . platform === 'win32' ? 'ghcup' : '.ghcup' , 'bin' ) ) ;
182
- console . log ( `bin dir before deleting: ${ binDir } ` ) ;
183
179
console . log ( 'Disposing all resources' ) ;
184
180
disposables . forEach ( ( d ) => d . dispose ( ) ) ;
185
181
console . log ( 'Stopping the lsp server' ) ;
0 commit comments