From a7e3ce923dc9261a5dfa69a048ef92936fc9ddb7 Mon Sep 17 00:00:00 2001 From: atti <18576384+at6ue@users.noreply.github.com> Date: Wed, 22 Sep 2021 11:12:23 +0900 Subject: [PATCH] Fix file path handling for reports on Windows (#742) * The report path should be a file path Signed-off-by: Atsuo INOUE * Bumped to 0.0.23 Signed-off-by: Atsuo INOUE Co-authored-by: Srikanth --- package.json | 2 +- src/execution/gaugeExecutor.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 38a23e2e..e224e27b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "description": "Gauge support for VScode.", "author": "ThoughtWorks", "license": "MIT", - "version": "0.0.22", + "version": "0.0.23", "publisher": "getgauge", "engines": { "vscode": "^1.60.0" diff --git a/src/execution/gaugeExecutor.ts b/src/execution/gaugeExecutor.ts index 964f2bc7..862b3d1c 100644 --- a/src/execution/gaugeExecutor.ts +++ b/src/execution/gaugeExecutor.ts @@ -347,10 +347,10 @@ export class GaugeExecutor extends Disposable { } private openReport() { - return env.openExternal(Uri.parse(this.gaugeWorkspace.getReportPath())).then( - () => { }, (err) => { - window.showErrorMessage("Can't open html report. " + err); - }); + return env.openExternal(Uri.file(this.gaugeWorkspace.getReportPath())).then( + () => { }, (err) => { + window.showErrorMessage("Can't open html report. " + err); + }); } private registerStopExecution() {