FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Actually fix user settings for `jediEnabled`. by MikhailArkhipov · Pull Request #12433 · microsoft/vscode-python · GitHub

Actually fix user settings for jediEnabled. - #12433

Merged
Mikhail Arkhipov (MikhailArkhipov) merged 10 commits into
microsoft:masterfrom
MikhailArkhipov:master
Jun 19, 2020
Merged

Actually fix user settings for jediEnabled.#12433
Mikhail Arkhipov (MikhailArkhipov) merged 10 commits into
microsoft:masterfrom
MikhailArkhipov:master

Conversation

Copy link
Copy Markdown

For #12429
Add jediEnabled to the search inside content of settings files.

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.

- [ ] Has telemetry for enhancements.

  • Unit tests & system/integration tests are added/updated.

- [ ] Test plan is updated as appropriate.
- [ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).
- [ ] The wiki is updated with any design decisions/details.

Copy link
Copy Markdown
Member

LGTM but a core member may want to look.

Copy link
Copy Markdown
Member

Noticed one thing now that this code is actually running. If you have a bunch of comments in a run-up to the old jediEnabled setting, they get removed on edit. E.g., have:

    // Some
    // Comments
    // To keep
    "python.jediEnabled": false,

Will be removed entirely.

Copy link
Copy Markdown
Member

Hmm, I guess it's a known issue with the JSONC parser: microsoft/node-jsonc-parser#10

VS Code doesn't use this lib anymore as far as I know (in favor of some internal settings management), so it's difficult to do this sort of change here with files (rather than setting things via VS Code's APIs).

Jake Bailey (jakebailey) left a comment
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Per discussion with Karthik, I think we should remove the block of code that removes jediEnabled. Leaving jediEnabled isn't harmful as the setting is no longer read, and we won't unexpectedly modify a user's settings.json file. In a future release, we can clean up the jediEnabled setting if need be.

Mikhail Arkhipov (@MikhailArkhipov) could you remove that block?

Copy link
Copy Markdown
Author

Sure, although opener of #12429 wanted it removed I think.

Copy link
Copy Markdown
Member

I think the main problem was that none of this code was active, so the effect was to not actually move people over to the languageServer setting. Whether or not the old setting is left behind I don't think changes that picture.

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

0 Bugs
0 Vulnerabilities (and 0 Security Hotspots to review)
0 Code Smells

No Coverage information
No Duplication information

Mikhail Arkhipov (MikhailArkhipov) merged commit b7a1822 into microsoft:master Jun 19, 2020
Karthik Nadig (karthiknadig) pushed a commit to karthiknadig/vscode-python that referenced this pull request Jun 19, 2020
* Fix path

* Actually fix settings

* Add news

* Add test

* Format

* Suppress 'jediEnabled' removal
Karthik Nadig (karthiknadig) added a commit that referenced this pull request Jun 19, 2020
* Actually fix user settings for `jediEnabled`. (#12433)

* Fix path

* Actually fix settings

* Add news

* Add test

* Format

* Suppress 'jediEnabled' removal

* Prapare for point release

Co-authored-by: Mikhail Arkhipov <mikhaila@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL