Skip to content

Commit

Permalink
Merge pull request #37 from wdhongtw/fix-project-folder-path
Browse files Browse the repository at this point in the history
Use fsPath for better compatibility
  • Loading branch information
wdhongtw authored Jun 12, 2022
2 parents f4d9899 + b9e1ab1 commit cf856eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as process from './indicator/process';
import { Logger } from './indicator/logger';

function toFolders(folders: readonly vscode.WorkspaceFolder[]): string[] {
return folders.map((folder: vscode.WorkspaceFolder) => folder.uri.path);
return folders.map((folder: vscode.WorkspaceFolder) => folder.uri.fsPath);
}

export function activate(context: vscode.ExtensionContext) {
Expand Down Expand Up @@ -67,7 +67,7 @@ export function activate(context: vscode.ExtensionContext) {
if (!folder) {
return;
}
await keyStatusManager.changeActivateFolder(folder.uri.path);
await keyStatusManager.changeActivateFolder(folder.uri.fsPath);
}));
context.subscriptions.push(vscode.workspace.onDidChangeWorkspaceFolders(async (event) => {
if (vscode.workspace.workspaceFolders === undefined) {
Expand Down

0 comments on commit cf856eb

Please sign in to comment.