Skip to content

Commit

Permalink
refactor: Update project.ts to improve project view node label genera…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
felixhaeberle committed Jun 18, 2024
1 parent 9be1c8e commit 5c8ca2e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ export function createProjectViewNodes(args: {

const projectPath = typeof project.projectPath === "string" ? project.projectPath : ""
const projectName = projectPath.split("/").slice(-1).join("/").replace(".inlang", "")
const cleanedPath = projectPath.replace(/\/[^/]*\.inlang/g, "")
const relativePath =
"./" + normalizePath(cleanedPath.replace(args.workspaceFolder.uri.fsPath, "./"))
"./" + normalizePath(projectPath.replace(args.workspaceFolder.uri.fsPath, "./"))

return {
label: projectName,
Expand Down

0 comments on commit 5c8ca2e

Please sign in to comment.