From a95a2687936dcf3ae42cc1721413aadddbbba088 Mon Sep 17 00:00:00 2001 From: kcunnane Date: Thu, 2 Feb 2017 17:07:43 -0800 Subject: [PATCH] Fix Results Panel not Refreshing Automatically - Fixes #669 - Ensures that TextDocumentContentProvider.provideTextDocumentContent always provides an updated string when being refreshed. In VSCode 1.9.0, it's vital to do this as there is a diff on the provided content and the document is only refreshed if this is different --- src/models/SqlOutputContentProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/SqlOutputContentProvider.ts b/src/models/SqlOutputContentProvider.ts index 5a046b0da8..e147276faa 100644 --- a/src/models/SqlOutputContentProvider.ts +++ b/src/models/SqlOutputContentProvider.ts @@ -411,13 +411,13 @@ export class SqlOutputContentProvider implements vscode.TextDocumentContentProvi public provideTextDocumentContent(uri: vscode.Uri): string { // URI needs to be encoded as a component for proper inclusion in a url let encodedUri = encodeURIComponent(uri.toString()); - - // return dummy html content that redirects to 'http://localhost:' after the page loads + let timeNow = new Date().getTime(); return `