Skip to content

Commit

Permalink
fix: wsl file path #58
Browse files Browse the repository at this point in the history
  • Loading branch information
King-of-Infinite-Space committed Aug 5, 2023
1 parent b69d0c5 commit 831b798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openInExternalApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { extname } from 'node:path';
import type { Uri } from 'vscode';
import vscode from 'vscode';
import { localize } from 'vscode-nls-i18n';
import { windowsToWslSync } from 'wsl-path';
import { wslToWindows } from 'wsl-path';

import getExtensionConfig from './config';
import { logger } from './utils/logger';
Expand Down Expand Up @@ -106,7 +106,7 @@ export default async function openInExternalApp(
const { fsPath } = uri;
const filePath =
vscode.env.remoteName === 'wsl'
? windowsToWslSync(fsPath, {
? await wslToWindows(fsPath, {
wslCommand: 'wsl.exe',
})
: fsPath;
Expand Down

0 comments on commit 831b798

Please sign in to comment.