Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d32cd commit 7c278f7Copy full SHA for 7c278f7
src/services/workspace/index.ts
@@ -1,7 +1,7 @@
1
import * as vscode from 'vscode'
2
import * as fs from 'fs'
3
import { promisify } from 'util'
4
-import { WORKSPACE_ROOT } from '../../environment'
+import * as env from '../../environment'
5
6
const readDir = promisify(fs.readdir)
7
@@ -13,7 +13,7 @@ export const openWorkspace = () => {
13
export const checkWorkspaceEmpty = async () => {
14
let files
15
try {
16
- files = await readDir(WORKSPACE_ROOT)
+ files = await readDir(env.WORKSPACE_ROOT, { encoding: 'utf8' })
17
} catch (error) {
18
throw new Error('Failed to check workspace')
19
}
0 commit comments