Skip to content

[Settings Editor] Fix add button visibility in object settings #101810

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
merged 1 commit into from
Jul 6, 2020

Conversation

9at8
Copy link
Member

@9at8 9at8 commented Jul 6, 2020

Fixes #101354

Only hide the add button if and only if additionalProperties is false and all known properties are present.

@9at8 9at8 requested a review from roblourens July 6, 2020 17:08
@9at8 9at8 changed the title Hide button iff additionalProperties is false [Settings Editor] Fix add button visibility in object settings Jul 6, 2020
@9at8 9at8 force-pushed the adi/add-button-visibility branch from a22dfa9 to 493cc54 Compare July 6, 2020 23:28
@9at8 9at8 merged commit b17c0ec into master Jul 6, 2020
@9at8 9at8 deleted the adi/add-button-visibility branch July 6, 2020 23:38
gjsjohnmurray pushed a commit to gjsjohnmurray/vscode that referenced this pull request Jul 8, 2020
gjsjohnmurray pushed a commit to gjsjohnmurray/vscode that referenced this pull request Jul 9, 2020
gopherbot pushed a commit to golang/vscode-go that referenced this pull request Jul 15, 2020
When I'm working on making simple non-nested object type settings editable from the settings GUI in vscode (microsoft/vscode#99635), and I think that setting `additionalProperties` to `false` for the objects that don't expect more properties would be great!

As per microsoft/vscode#101810, vscode (v1.48) will hide the "Add item" button if and only if `additionalProperties` is `false` and all known properties are present.

Change-Id: I92380610b24f7cd6ee790f2e020b9c689c3ff25b
GitHub-Last-Rev: 695aa78
GitHub-Pull-Request: #284
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/240907
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editing object settings: Only limit entries when additionalProperties: false is defined
2 participants