Skip to content

Commit 7fcb7af

Browse files
committed
feat: Add short pathSeparator alias
Visual Studio Code has a predefined variable ${pathSeparator} that represents the path separator on the current platform. It has a shorter alias ${/}. This commit adds support for the short alias to the extension path handler.
1 parent bbf1076 commit 7fcb7af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/variable.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export async function parseVariables(strList: string[], activeFile?: Uri) {
1616
> = new Map([
1717
['${userHome}', homedir()],
1818
['${pathSeparator}', path.sep],
19+
['${/}', path.sep],
1920
]);
2021

2122
const { workspaceFolders } = vscode.workspace;

0 commit comments

Comments
 (0)