From 0530b85044b240e264cf79c48320d3834771cdf3 Mon Sep 17 00:00:00 2001 From: Taras Novak Date: Mon, 19 Aug 2019 07:11:43 -0500 Subject: [PATCH] patched view data source uri passing and loadView() --- src/data.preview.ts | 3 ++- templates/data.view.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/data.preview.ts b/src/data.preview.ts index 234ca0e..a3845b5 100644 --- a/src/data.preview.ts +++ b/src/data.preview.ts @@ -379,7 +379,8 @@ export class DataPreview { private loadView(viewName: string, url: string): void { const fileUri: Uri = Uri.parse(url); try { - this._logger.debug(`loadView(): loading view... \n ${viewName}`, fileUri.toString(true)); // skip encoding + this._logger.debug(`loadView(): loading view... \n ${viewName}`, url); + //fileUri.toString(true)); // skip encoding if (url.startsWith('http://') || url.startsWith('https://')) { // launch requested remote data view command this._logger.debug(`loadView():executeCommand: \n ${viewName}`, url); diff --git a/templates/data.view.html b/templates/data.view.html index fffbc80..89f21a7 100644 --- a/templates/data.view.html +++ b/templates/data.view.html @@ -5,7 +5,7 @@ @@ -242,7 +242,7 @@ vscode.postMessage({ command: 'loadView', viewName: 'vscode.open', - uri: `file:///${dataUrl}` + uri: `${dataUrl}` }); }