Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix for "whiteSpace" typo: Parameter name and word is one command word spelled "whitespace". #77758
When browsing the vscode source, I noticed there is a misspelling of the word "whitespace", where the variable/property names were "whiteSpace". I noticed that this could have huge consequences, as the property "renderWhitespace" has no capital s, but in the commonEditorConfig, the property name has a capital s. As a result, I replaced "whiteSpace" variable names to "whitespace".
I did this by searching and replacing all instances of "whiteSpace" and "WhiteSpace" to "whitespace" and "Whitespace" respectively. There was one comment that was an incomplete sentence regarding one of the whitespace functions, so I fixed that as well.
Finally, I was able to reduce the code in PathCompletion regarding whitespace handling. The code has the same behavior, and passed the automated and smoke tests.
I hope this proves useful in the long run!