Skip to content

Commit

Permalink
fix: show price alongside the resources
Browse files Browse the repository at this point in the history
Update the converter of files to projects so that it uses the absolute
path in the files to projects map. This is required when the document
URI is used to get the latest changes and add the decorations to the
resource.
  • Loading branch information
owenrumney committed Jun 17, 2024
1 parent d5fbf21 commit 92b53b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default class Workspace {
const formatted = new Project(name, projectPath, this.currency, this.blockTemplate);
for (const resource of project.breakdown.resources) {
for (const call of resource.metadata.calls) {
const filename = cleanFilename(call.filename);
const filename = path.resolve(cleanFilename(call.filename));
logger.debug(`adding file: ${filename} to project: ${projectPath}`);

formatted.setBlock(filename, call.blockName, call.startLine).resources.push(resource);
Expand Down

0 comments on commit 92b53b1

Please sign in to comment.