parent
e4f3ab555b
commit
1a22372358
2 changed files with 13 additions and 1 deletions
12
package.json
12
package.json
|
@ -298,6 +298,12 @@
|
||||||
"double"
|
"double"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"typescript.preferences.useAliasesForRenames": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true,
|
||||||
|
"description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
|
||||||
|
"scope": "resource"
|
||||||
|
},
|
||||||
"typescript.suggestionActions.enabled": {
|
"typescript.suggestionActions.enabled": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
|
@ -466,6 +472,12 @@
|
||||||
"double"
|
"double"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"javascript.preferences.useAliasesForRenames": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true,
|
||||||
|
"description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
|
||||||
|
"scope": "resource"
|
||||||
|
},
|
||||||
"javascript.validate.enable": {
|
"javascript.validate.enable": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
|
|
|
@ -154,7 +154,7 @@ export default class FileConfigurationManager {
|
||||||
importModuleSpecifierEnding: getImportModuleSpecifierEndingPreference(config),
|
importModuleSpecifierEnding: getImportModuleSpecifierEndingPreference(config),
|
||||||
allowTextChangesInNewFiles: uri.startsWith('file:'),
|
allowTextChangesInNewFiles: uri.startsWith('file:'),
|
||||||
allowRenameOfImportPath: true,
|
allowRenameOfImportPath: true,
|
||||||
providePrefixAndSuffixTextForRename: true,
|
providePrefixAndSuffixTextForRename: config.get<boolean>('renameShorthandProperties', true) === false ? false : config.get<boolean>('useAliasesForRenames', true),
|
||||||
}
|
}
|
||||||
return preferences
|
return preferences
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue