Skip to content

Commit 5f178e1

Browse files
committed
fix: file dir path on windows #18
1 parent 3b614a7 commit 5f178e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getCodeAndMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function getCodeAndMap(): Promise<{ code: string; map: string } | u
1212
if (!code)
1313
return
1414

15-
const file = document.fileName
15+
const file = document.uri.path
1616
const dir = file.replace(/\/[^\/]+$/, '')
1717
const readTextFile = async (relativePath: string) => {
1818
try {

0 commit comments

Comments
 (0)