Skip to content

Extra quotes in settings json editor of non-current profile #156290

Closed

Description

@alexr00

Testing #155899

  1. Create 2 profiles, A and B.
  2. Switch to A. Open the settings.json file for the profile. Keep this file open.
  3. Switch to B.
  4. Use suggest to modify the value of a setting in A's json file.
  5. An extra quote will appear.

Recording 2022-07-26 at 14 23 19

Activity

  1. sandy081 commented on Jul 27, 2022

    @sandy081
    Member

    I cannot reproduce it. Anyway this comes from JSON language server.

    CC Martin Aeschlimann (@aeschli)

  2. aeschli commented on Jul 27, 2022

    @aeschli
    Contributor

    I'm also not able to reproduce
    Did you press shift when selecting the completion (insert mode)?

  3. alexr00 commented on Jul 27, 2022

    @alexr00
    MemberAuthor

    No, I just hit enter.

  4. aeschli commented on Jul 27, 2022

    @aeschli
    Contributor

    Can you open the settings and see what editor.suggest.insertMode is configured?
    It's default setting is insert but json and jsonc overwrite the default to replace. I wonder if there's some problem with the configuration store.

  5. alexr00 commented on Jul 28, 2022

    @alexr00
    MemberAuthor

    It started as an empty profile, so theme is the only thing I have set. Value of editor.suggest.insertMode:
    image

  6. aeschli commented on Jul 28, 2022

    @aeschli
    Contributor

    JSON and JSONC should also be in that list.
    I just tested again, switching to a Test profile and I even get even fewer entries:
    image

    Looks like there's something off.

  7. sandy081 commented on Jul 28, 2022

    @sandy081
    Member

    Martin Aeschlimann (@aeschli) Do you think it is related to profiles? If so can you please share any insights on what would have caused it?

  8. aeschli commented on Jul 28, 2022

    @aeschli
    Contributor

    Not clear if it's the settings UI that shows incomplete information, but after switching a profile, not all default language overwrites are shown. If the JSONC language overwrite for editor.suggest.insertMode is not loaded, that would explain what Alex is seeing.

  9. rzhao271 commented on Jul 28, 2022

    @rzhao271
    Collaborator

    I am able to repro the issue and my settings look like #156290 (comment)

  10. added
    bug
    config
    settings-editor
    on Jul 29, 2022
  11. rzhao271 commented on Aug 8, 2022

    @rzhao271
    Collaborator

    I'm unable to repro the issue now. I notice when I switch profiles and hover again over the label that it changes the list of languages depending on the extensions installed, but I always manage to have JSON and JSONC in the list.

    Alex Ross (@alexr00) are you able to repro the issue in the latest Insiders?

  12. added
    info-needed
    on Aug 8, 2022
  13. alexr00 commented on Aug 9, 2022

    @alexr00
    MemberAuthor

    I cannot repro with the latest insiders, though I could still repro with an insiders from some time last week. Looks like it's fixed.

  14. removed
    info-needed
    on Aug 11, 2022
  15. added
    verified
    on Aug 24, 2022
  16. locked and limited conversation to collaborators on Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugconfigsettings-editorverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions