Skip to content

Windows run #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 13, 2020
Prev Previous commit
Next Next commit
change the import for Windows
Signed-off-by: argemiront <[email protected]>
  • Loading branch information
argemiront committed Apr 13, 2020
commit 7c278f7b084e108ec39ed7c585409c5dbf6700a4
4 changes: 2 additions & 2 deletions src/services/workspace/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from 'vscode'
import * as fs from 'fs'
import { promisify } from 'util'
import { WORKSPACE_ROOT } from '../../environment'
import * as env from '../../environment'

const readDir = promisify(fs.readdir)

Expand All @@ -13,7 +13,7 @@ export const openWorkspace = () => {
export const checkWorkspaceEmpty = async () => {
let files
try {
files = await readDir(WORKSPACE_ROOT)
files = await readDir(env.WORKSPACE_ROOT, { encoding: 'utf8' })
} catch (error) {
throw new Error('Failed to check workspace')
}
Expand Down