Skip to content

Commit

Permalink
Merge master to Dev (#673)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kevcunnane committed Feb 3, 2017
1 parent 27c004d commit 13cf99e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
[Operating Systems]:https://github.com/Microsoft/vscode-mssql/wiki/operating-systems
[#669]:https://github.com/Microsoft/vscode-mssql/issues/669
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ See [the SQL developer tutorial] to develop an app with C#, Java, Node.js, PHP,

<img src="https://github.com/Microsoft/vscode-mssql/raw/master/images/mssql-demo.gif" alt="demo" style="width:480px;"/>

## 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.
Expand Down Expand Up @@ -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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 5 additions & 1 deletion src/models/SqlOutputContentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:<port>' 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 `
<html>
<head>
<script type="text/javascript">
window.onload = function(event) {
console.log('reloaded results window at time ${timeNow}ms');
var doc = document.documentElement;
var styles = window.getComputedStyle(doc);
var backgroundcolor = styles.getPropertyValue('--background-color');
Expand Down
10 changes: 10 additions & 0 deletions src/views/htmlcontent/src/docs/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<html><head></head>
<body><div id="markdown-container"><h1 id="0">Change Log</h1>

<h2 id="7">Version 0.2.1</h2>
<ul>
<li>Release date: February 2, 2016</li>
<li>Release status: Public Preview</li>
</ul>
<h2 id="8">What's new in this version</h2>
<ul>
<li>HotFix for issue #669 "Results Panel not Refreshing Automatically". This issue impacts users on VSCode 1.9.0 or greater.</li>
</ul>

<h2 id="7">Version 0.2.0</h2>
<ul>
<li>Release date: December, 2016</li>
Expand Down

0 comments on commit 13cf99e

Please sign in to comment.