Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Aug 4, 2020

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 reacted with thumbs up emoji
Copy link
Member Author

No worries!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
2 more reviewers

@bergmeister bergmeister bergmeister left review comments

@rjmholt rjmholt rjmholt approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

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

AltStyle によって変換されたページ (->オリジナル) /