Skip to content
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

Fix squiggle in a user's settings json file #29

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

MatthewTh0
Copy link
Contributor

@MatthewTh0 MatthewTh0 commented Feb 1, 2022

I looked at: https://code.visualstudio.com/api/references/contribution-points#contributes.configuration and found the reason for the error squiggle was simply fixed. All you needed to do is allow for the type to be null here. I've already tested it on my computer by changing it on the extension (in %USERPROFILE%.vscode\extensions\redvanworkshop.explorer-exclude-vscode-extension-1.2.0 since I'm currently using Windows) and the error squiggle immediately disappeared. No need to make it an empty object or anything.

What's this PR do?

Fixes the error squiggle in a user's settings file (workspace.code-workspace or settings.json) by allowing the type to be null.

Where should the reviewer start?

(https://code.visualstudio.com/api/references/contribution-points#contributes.configuration)

How should this be manually tested?

Change it in the extension (which I found here): https://code.visualstudio.com/docs/editor/extension-marketplace#_where-are-extensions-installed

Any background context you want to provide?

I was really annoyed at that squiggle and after trying to mess with JSON schemas for a while, decided to see if I could fix it here. I eventually searched for something like "vscode settings null" and found several configuration options have null as a default. I then searched "vscode extension configuration" and figured out the issue.

What are the relevant github issue?

While it was closed, I found a quick fix for the issue. (#24)

What gif best describes this PR or how it makes you feel?

giphy
(I was messing with schemas for hours, on and off, and was having some OCD-like tendencies about the squiggle).

Definition of Done:

  • You have actually run this locally and can verify it works
  • You have verified that npm test passes without issue (have no idea where this is, couldn't find it after seeing it's supposed to be in, I think, the package.json under the "script" section)

I looked at: https://code.visualstudio.com/api/references/contribution-points#contributes.configuration and found the reason for the error squiggle was simply fixed. All you needed to do is allow for the type to be null here. I've already tested it on my computer by changing it on the extension (in %USERPROFILE%\.vscode\extensions\redvanworkshop.explorer-exclude-vscode-extension-1.2.0 ) and the error squiggle immediately disappeared. No need to make it an empty object or anything.
@MatthewTh0 MatthewTh0 changed the title Fix squiggle in a user's settings json file Fix squiggle in a user's settings json file Fixes #24 Feb 1, 2022
@MatthewTh0 MatthewTh0 changed the title Fix squiggle in a user's settings json file Fixes #24 Fix squiggle in a user's settings json file Feb 1, 2022
@MatthewTh0 MatthewTh0 closed this Feb 1, 2022
@MatthewTh0 MatthewTh0 deleted the patch-1 branch February 1, 2022 08:38
@MatthewTh0 MatthewTh0 restored the patch-1 branch February 1, 2022 08:39
@MatthewTh0 MatthewTh0 reopened this Feb 1, 2022
@MatthewTh0
Copy link
Contributor Author

Sorry, wasn't sure that renaming the branch would mess up the pull request or not. Also, my bad on changing the title unnecessarily.

@manifestinteractive manifestinteractive merged commit b97c505 into sfccdevops:master Jul 31, 2022
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.

2 participants