File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Original file line number Diff line number Diff line change 1
- import * as fs from 'fs' ;
1
+ import { promises as fs } from 'fs' ;
2
2
import * as path from 'path' ;
3
- import { promisify } from 'util' ;
4
3
import { spawnSync } from 'child_process' ;
5
4
import deepEqual from 'deep-equal' ;
6
5
import WebRequest from 'web-request' ;
@@ -140,7 +139,7 @@ async function startDebug(_: ExtensionContext, config: DebugConfig): Promise<boo
140
139
141
140
let customDebugConfig = { } ;
142
141
try {
143
- const raw = await promisify ( fs . readFile ) ( path . join ( config . sketchPath , 'debug_custom.json' ) , { encoding : 'utf8' } ) ;
142
+ const raw = await fs . readFile ( path . join ( config . sketchPath , 'debug_custom.json' ) , { encoding : 'utf8' } ) ;
144
143
customDebugConfig = JSON . parse ( raw ) ;
145
144
} catch { }
146
145
const mergedDebugConfig = deepmerge ( defaultDebugConfig , customDebugConfig ) ;
@@ -199,7 +198,7 @@ async function buildLanguageClient(config: LanguageServerConfig): Promise<Langua
199
198
let logPath : string | undefined = undefined ;
200
199
if ( typeof log === 'string' ) {
201
200
try {
202
- const stats = await promisify ( fs . stat ) ( log ) ;
201
+ const stats = await fs . stat ( log ) ;
203
202
if ( stats . isDirectory ( ) ) {
204
203
logPath = log ;
205
204
}
You can’t perform that action at this time.
0 commit comments