From 13cf99e2da50d9fce33b6c299fe0fb881527fd6a Mon Sep 17 00:00:00 2001 From: Kevin Cunnane Date: Fri, 3 Feb 2017 11:00:51 -0800 Subject: [PATCH] Merge master to Dev (#673) * Switch publisher in telemetry test to ms-mssql (#556) * Switch publisher in telemetry test to ms-mssql * Update a couple more hard-coded publisher references. * Fix Results Panel not Refreshing Automatically (#670) - 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 - Updated release version --- CHANGELOG.md | 10 +++++++++- README.md | 3 +++ package.json | 2 +- src/models/SqlOutputContentProvider.ts | 6 +++++- src/views/htmlcontent/src/docs/index.html | 10 ++++++++++ 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index caad7c356f..0f7d1ef9ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## Version 0.2.1 +* Release date: February 2, 2016 +* Release status: Public Preview + +## What's new in this version +* HotFix for issue [#669] "Results Panel not Refreshing Automatically". This issue impacts users on VSCode 1.9.0 or greater. + ## Version 0.2.0 * Release date: December, 2016 * Release status: Public Preview @@ -70,4 +77,5 @@ Report issues to [Github Issue Tracker] and provide your feedback. [manage connection profiles]:https://github.com/Microsoft/vscode-mssql/wiki/manage-connection-profiles [OpenSSL requirement on macOS]:https://github.com/Microsoft/vscode-mssql/wiki/OpenSSL-Configuration [Windows 10 Universal C Runtime requirement]:https://github.com/Microsoft/vscode-mssql/wiki/windows10-universal-c-runtime-requirement -[Operating Systems]:https://github.com/Microsoft/vscode-mssql/wiki/operating-systems \ No newline at end of file +[Operating Systems]:https://github.com/Microsoft/vscode-mssql/wiki/operating-systems +[#669]:https://github.com/Microsoft/vscode-mssql/issues/669 \ No newline at end of file diff --git a/README.md b/README.md index 208caee2c6..4781f2b29a 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ See [the SQL developer tutorial] to develop an app with C#, Java, Node.js, PHP, demo +## What's new in 0.2.1 +* HotFix for issue [#669] "Results Panel not Refreshing Automatically". This issue impacts users on VSCode 1.9.0 or greater. ## What's new in 0.2.0 * Peek Definition and Go To Definition support for Tables, Views and Stored Procedures. @@ -147,4 +149,5 @@ This extension is [licensed under the MIT License]. Please see the [third-party [Microsoft Open Source Code of Conduct]:https://opensource.microsoft.com/codeofconduct/ [Code of Conduct FAQ]:https://opensource.microsoft.com/codeofconduct/faq/ [opencode@microsoft.com]:mailto:opencode@microsoft.com +[#669]:https://github.com/Microsoft/vscode-mssql/issues/669 diff --git a/package.json b/package.json index b74222ae92..db97ef1240 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mssql", "displayName": "mssql", - "version": "0.2.0", + "version": "0.2.1", "description": "Develop Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse everywhere", "publisher": "ms-mssql", "preview": true, diff --git a/src/models/SqlOutputContentProvider.ts b/src/models/SqlOutputContentProvider.ts index 51781d4e56..6464d74fb4 100644 --- a/src/models/SqlOutputContentProvider.ts +++ b/src/models/SqlOutputContentProvider.ts @@ -419,12 +419,16 @@ export class SqlOutputContentProvider implements vscode.TextDocumentContentProvi let encodedUri = encodeURIComponent(uri.toString()); console.log(`${LocalWebService.getEndpointUri(Interfaces.ContentType.Root)}?uri=${encodedUri}`); - // return dummy html content that redirects to 'http://localhost:' after the page loads + // Fix for issue #669 "Results Panel not Refreshing Automatically" - always include a unique time + // so that the content returned is different. Otherwise VSCode will not refresh the document since it + // thinks that there is nothing to be updated. + let timeNow = new Date().getTime(); return `