Skip to content

Commit

Permalink
Merge pull request #216 from infracost/fix/prices-not-showing-near-re…
Browse files Browse the repository at this point in the history
…sources

fix: show price alongside the resources
  • Loading branch information
owenrumney authored Jun 17, 2024
2 parents d5fbf21 + fabe719 commit 5e28fb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "infracost",
"displayName": "Infracost",
"description": "Cloud cost estimates for Terraform in your editor",
"version": "0.2.26",
"version": "0.2.27",
"publisher": "Infracost",
"license": "Apache-2.0",
"icon": "infracost-logo.png",
Expand Down Expand Up @@ -141,4 +141,4 @@
"handlebars": "^4.7.7",
"js-yaml": "^4.1.0"
}
}
}
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 5e28fb9

Please sign in to comment.