Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Results Panel not Refreshing Automatically #670

Merged
merged 4 commits into from
Feb 3, 2017

Conversation

kevcunnane
Copy link
Contributor

  • Fixes Results Panel not Refreshing Automatically #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

- 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
@mention-bot
Copy link

@kevcunnane, thanks for your PR! By analyzing the history of the files in this pull request, we identified @anthonydresser, @sharonravindran and @kburtram to be potential reviewers.

@msftclas
Copy link

msftclas commented Feb 3, 2017

Hi @kevcunnane, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Kevin Cunnane). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Copy link
Contributor

@Raymondd Raymondd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! :shipit:

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 60.27% when pulling a95a268 on hotfix/refreshResults into 8d2e0df on master.

@@ -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:<port>' after the page loads
let timeNow = new Date().getTime();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to add a comment referencing a github issue to know why this was done in the future when everyone has forgotten about this problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - updated in latest commit

@kevcunnane kevcunnane merged commit 0d7c26a into master Feb 3, 2017
@kevcunnane kevcunnane deleted the hotfix/refreshResults branch February 3, 2017 01:25
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 60.27% when pulling b52ee87 on hotfix/refreshResults into 8d2e0df on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 60.27% when pulling b52ee87 on hotfix/refreshResults into 8d2e0df on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 60.27% when pulling b52ee87 on hotfix/refreshResults into 8d2e0df on master.

kevcunnane added a commit that referenced this pull request Feb 3, 2017
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants