Skip to content

Commit

Permalink
fix: Fix path for symlinked tools in .vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Nov 16, 2024
1 parent 452c402 commit 816a2a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const CONFIGURATION_FLAGS = {
profile: "mise.profile",
configureExtensionsAutomatically: "mise.configureExtensionsAutomatically",
configureExtensionsUseShims: "mise.configureExtensionsUseShims",
configureExtensionsUseSymLinks: "mise.configureExtensionsUseSymLinks",
};

export const isMiseExtensionEnabled = (): boolean => {
Expand Down
7 changes: 6 additions & 1 deletion src/utils/configureExtensionUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export async function createMiseToolSymlink(binName: string, binPath: string) {

await mkdirp(toolsPaths);
const linkPath = path.join(toolsPaths, binName);
const configuredPath = path.join("${workspaceFolder}", toolsPaths, binName);
const configuredPath = path.join(
"${workspaceFolder}",
".vscode",
"mise-tools",
binName,
);

if (existsSync(linkPath)) {
logger.info(`${await readlink(linkPath)}: ${binPath}`);
Expand Down

0 comments on commit 816a2a3

Please sign in to comment.