-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Add explicit "auto" quotePreference #29785
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
Add explicit "auto" quotePreference #29785
Conversation
…eference Add explicit "auto" quotePreference
switch (preferences.quotePreference) { | ||
case undefined: | ||
switch (quotePreference) { | ||
// TODO use getQuotePreference to infer the actual quote style. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this TODO tracked by a bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it may be a good idea though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably tag the one above with the same ID.
Merged a bit prematurely, still testing, please feel free to keep reviewing |
I would have guessed that this feature had reasonably good test coverage, so it should be straightforward to copy/modify one to cover |
Is VS going to start sending |
@amcasey yes there will be a VS side change incoming to send |
Fixes #29762
Today, VS passes
""
forUserPreferences.quotePreference
to imply "infer from existing imports". This was causing an exception to be thrown fromcreateCompletionEntry
/quote
when wrapping some properties in quotes.This PR accomplishes two things
""
more gracefully so the exception is avoidedauto
option for this preference.@jessetrinity wrote this.
FYI @mjbvz for VS Code
@RyanCavanaugh we'd like to take this into 3.3.2 as a fix for that exception.