-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Support services settings #22236
Support services settings #22236
Changes from 1 commit
a40fab8
590faf0
4d592ee
327d688
700b7e7
85b8abc
c0e2d52
e8033dc
940979a
ca0beaf
b06b0d8
6e1adaf
abc1000
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1232,6 +1232,8 @@ namespace ts.server.protocol { | |
*/ | ||
formatOptions?: FormatCodeSettings; | ||
|
||
servicesOptions?: ServicesSettings; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. consider renaming this to just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the type be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah. |
||
|
||
/** | ||
* The host's additional supported .js file extensions | ||
*/ | ||
|
@@ -2588,6 +2590,10 @@ namespace ts.server.protocol { | |
insertSpaceBeforeTypeAnnotation?: boolean; | ||
} | ||
|
||
export interface ServicesSettings { | ||
quote: '"' | "'"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would say create an enum for this, or even a literal union type that is not the quote. e.g. |
||
} | ||
|
||
export interface CompilerOptions { | ||
allowJs?: boolean; | ||
allowSyntheticDefaultImports?: boolean; | ||
|
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.
Do we have a pattern we follow when choosing between "options" and settings"?