Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Feb 23, 2024
1 parent efa3620 commit 03568e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ function asRelativeWorkspacePath(target: vscode.Uri): string {
// `workspace.asRelativePath` seems to have issues with symlinks on MacOS, so we do it manually.
const normalizedTarget = path.normalize(target.fsPath);
const normalizedWorkspace = path.normalize(workspacePath());
return path.relative(normalizedWorkspace, normalizedTarget).replace(/\\/g, '/');
const relative = path.relative(normalizedWorkspace, normalizedTarget).split(path.sep).join("/");
// Debugging
console.log(`Target path: ${normalizedTarget}`);
console.log(`Workspace path: ${normalizedWorkspace}`);
console.log(`Relative path: ${relative}`);
return relative;
}

/**
Expand Down

0 comments on commit 03568e7

Please sign in to comment.