-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Added skipDestructiveCodeActions argument to organize imports server command #43184
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
Changes from 3 commits
1e8ea6b
3a61904
27417f1
394eeb4
1637e1a
49c61c2
4cd6220
dacfd7e
baca715
c38d291
54a544d
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 |
---|---|---|
|
@@ -680,6 +680,7 @@ namespace ts.server.protocol { | |
export type OrganizeImportsScope = GetCombinedCodeFixScope; | ||
|
||
export interface OrganizeImportsRequestArgs { | ||
allowDestructiveCodeActions?: boolean; | ||
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. To confirm, we expect the editor to want to make this decision per-request and that's why it's not a UserPreference? 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. Also i would name this flag as 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.
Yes, the editor would need to specify the option based on whether the command was sent as a part of 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. dacfd7e renames to |
||
scope: OrganizeImportsScope; | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.