Skip to content

Commit

Permalink
try using uri.file instead of parse for preview lcov report (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanluker authored Jul 18, 2017
1 parent c764baf commit c6b3e2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gutters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Gutters {
}

if (!pickedReport) { throw new Error("Could not show Lcov Report file!"); }
const reportUri = Uri.parse(`file:///${pickedReport}`);
const reportUri = Uri.file(pickedReport.toString());
await commands.executeCommand(
"vscode.previewHtml",
reportUri,
Expand Down
2 changes: 1 addition & 1 deletion src/lcov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Lcov {
public findReports(): Promise<string[]> {
return new Promise<string[]>((resolve, reject) => {
this.glob.find(
`**/coverage/**/*.html`,
`**/coverage/**/index.html`,
{ ignore: "**/node_modules/**", cwd: this.vscode.getRootPath(), realpath: true },
(err, files) => {
if (!files || !files.length) { return reject("Could not find a Lcov Report file!"); }
Expand Down

0 comments on commit c6b3e2e

Please sign in to comment.