-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Issue #93589: Rename 'renameShorthandProperties' setting to 'useAliasesForRenames' #94480
Changes from 1 commit
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 |
---|---|---|
|
@@ -186,7 +186,7 @@ export default class FileConfigurationManager extends Disposable { | |
importModuleSpecifierPreference: getImportModuleSpecifierPreference(config), | ||
importModuleSpecifierEnding: getImportModuleSpecifierEndingPreference(config), | ||
allowTextChangesInNewFiles: document.uri.scheme === fileSchemes.file, | ||
providePrefixAndSuffixTextForRename: config.get<boolean>('renameShorthandProperties', true), | ||
providePrefixAndSuffixTextForRename: config.get<boolean>('useAliasesForRenames', true), | ||
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. This should read both the old and new setting value for migration 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. Thanks you guidance! This was an attempt at my first PR. I'll update this soon and keep this in mind with my future contributions. 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. Until we remove the deprecated setting, we should make sure we respect previous setting value. Something like: config.get<boolean>('renameShorthandProperties', true) === false ? false : config.get<boolean>('useAliasesForRenames', true) 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 apologize. Not sure how I missed this in the previous attempt at fixing my first commit. |
||
allowRenameOfImportPath: true, | ||
}; | ||
|
||
|
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.
Instead of renaming this property, create a copy of it and than mark
renameShorthandProperties
with a deprecated message that points to the new property