mirror of
https://github.com/godotengine/godot-csharp-vscode.git
synced 2026-01-05 22:10:02 +03:00
Use platform specific path
Retrieves the platform specific path when getting the project path, using the right path separators on each platform.
This commit is contained in:
@@ -13,9 +13,9 @@ export async function findProjectFiles(): Promise<ProjectLocation[]> {
|
|||||||
return projectFiles.map((x) => {
|
return projectFiles.map((x) => {
|
||||||
return {
|
return {
|
||||||
relativeFilePath: vscode.workspace.asRelativePath(x),
|
relativeFilePath: vscode.workspace.asRelativePath(x),
|
||||||
absoluteFilePath: x.path,
|
absoluteFilePath: x.fsPath,
|
||||||
relativeProjectPath: path.dirname(vscode.workspace.asRelativePath(x)),
|
relativeProjectPath: path.dirname(vscode.workspace.asRelativePath(x)),
|
||||||
absoluteProjectPath: path.dirname(x.path),
|
absoluteProjectPath: path.dirname(x.fsPath),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user