Skip to content

Commit

Permalink
Fix prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Nov 8, 2024
1 parent 548c1e5 commit 566446b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,14 @@ export function getConcatenatedModuleName(map: Map<string, string[]>): Map<strin

// Function to convert full path to relative path
export function fullToRelativePath(fullPath: string): string {
// Get the workspace folder
const workspaceFolder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(fullPath));
// Get the workspace folder
const workspaceFolder = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(fullPath));

if (workspaceFolder) {
// Convert to relative path
return path.relative(workspaceFolder.uri.fsPath, fullPath);
}
if (workspaceFolder) {
// Convert to relative path
return path.relative(workspaceFolder.uri.fsPath, fullPath);
}

// If not in a workspace, return the full path
return fullPath;
// If not in a workspace, return the full path
return fullPath;
}

0 comments on commit 566446b

Please sign in to comment.