Skip to content

Fix migration of codeFormatting.addWhitespaceAroundPipe setting #2863

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

Merged

Conversation

TylerLeonhardt
Copy link
Member

PR Summary

Fixes #2842

This will properly migrate codeFormatting.whitespaceAroundPipe to codeFormatting.addWhitespaceAroundPipe.

Also, the saving of file triggered the this.languageClient to cause a warning to show because PSES wasn't finished initializing so I've just swapped the conditional now. Later I could do something different (like a this.isLanguageClientConnected but I'll defer that)

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@TylerLeonhardt TylerLeonhardt merged commit 6331e1d into PowerShell:master Aug 5, 2020
@TylerLeonhardt TylerLeonhardt deleted the fix-migration-of-setting branch August 5, 2020 16:07
Copy link
Contributor

@bergmeister bergmeister left a comment

Choose a reason for hiding this comment

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

Sorry, I was quite busy the last days, thanks for fixing it. You're right with this PR, I should've used the ConfigurationTarget of the old setting as a target for the new one. When I was testing it, the debug instance of VS-Code did not have a workspace open with .vscode folder, hence why I did not notice this when testing.

@TylerLeonhardt
Copy link
Member Author

No worries!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The extension insists on adding the addWhitespaceAroundPipe setting to my workspace settings file
3 participants