mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
Remove a few deprecated settings for js/ts
These settings have been marked deprecated for a while
This commit is contained in:
@@ -278,26 +278,12 @@
|
||||
],
|
||||
"scope": "window"
|
||||
},
|
||||
"javascript.implicitProjectConfig.checkJs": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%configuration.implicitProjectConfig.checkJs%",
|
||||
"markdownDeprecationMessage": "%configuration.javascript.checkJs.checkJs.deprecation%",
|
||||
"scope": "window"
|
||||
},
|
||||
"js/ts.implicitProjectConfig.checkJs": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%configuration.implicitProjectConfig.checkJs%",
|
||||
"scope": "window"
|
||||
},
|
||||
"javascript.implicitProjectConfig.experimentalDecorators": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%configuration.implicitProjectConfig.experimentalDecorators%",
|
||||
"markdownDeprecationMessage": "%configuration.javascript.checkJs.experimentalDecorators.deprecation%",
|
||||
"scope": "window"
|
||||
},
|
||||
"js/ts.implicitProjectConfig.experimentalDecorators": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
@@ -817,20 +803,6 @@
|
||||
"markdownDescription": "%typescript.preferences.preferTypeOnlyAutoImports%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"javascript.preferences.renameShorthandProperties": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%typescript.preferences.useAliasesForRenames%",
|
||||
"deprecationMessage": "%typescript.preferences.renameShorthandProperties.deprecationMessage%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"typescript.preferences.renameShorthandProperties": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%typescript.preferences.useAliasesForRenames%",
|
||||
"deprecationMessage": "%typescript.preferences.renameShorthandProperties.deprecationMessage%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"javascript.preferences.useAliasesForRenames": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
@@ -1418,13 +1390,6 @@
|
||||
"description": "%configuration.tsserver.web.typeAcquisition.enabled%",
|
||||
"scope": "window"
|
||||
},
|
||||
"typescript.tsserver.useSeparateSyntaxServer": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%configuration.tsserver.useSeparateSyntaxServer%",
|
||||
"markdownDeprecationMessage": "%configuration.tsserver.useSeparateSyntaxServer.deprecation%",
|
||||
"scope": "window"
|
||||
},
|
||||
"typescript.tsserver.useSyntaxServer": {
|
||||
"type": "string",
|
||||
"scope": "window",
|
||||
@@ -1456,12 +1421,6 @@
|
||||
"experimental"
|
||||
]
|
||||
},
|
||||
"typescript.tsserver.experimental.useVsCodeWatcher": {
|
||||
"type": "boolean",
|
||||
"description": "%configuration.tsserver.useVsCodeWatcher%",
|
||||
"deprecationMessage": "%configuration.tsserver.useVsCodeWatcher.deprecation%",
|
||||
"default": true
|
||||
},
|
||||
"typescript.tsserver.watchOptions": {
|
||||
"description": "%configuration.tsserver.watchOptions%",
|
||||
"scope": "window",
|
||||
|
||||
@@ -72,7 +72,6 @@
|
||||
"typescript.problemMatchers.tscWatch.label": "TypeScript problems (watch mode)",
|
||||
"configuration.suggest.paths": "Enable/disable suggestions for paths in import statements and require calls.",
|
||||
"configuration.tsserver.useSeparateSyntaxServer": "Enable/disable spawning a separate TypeScript server that can more quickly respond to syntax related operations, such as calculating folding or computing document symbols.",
|
||||
"configuration.tsserver.useSeparateSyntaxServer.deprecation": "This setting has been deprecated in favor of `typescript.tsserver.useSyntaxServer`.",
|
||||
"configuration.tsserver.useSyntaxServer": "Controls if TypeScript launches a dedicated server to more quickly handle syntax related operations, such as computing code folding.",
|
||||
"configuration.tsserver.useSyntaxServer.always": "Use a lighter weight syntax server to handle all IntelliSense operations. This syntax server can only provide IntelliSense for opened files.",
|
||||
"configuration.tsserver.useSyntaxServer.never": "Don't use a dedicated syntax server. Use a single server to handle all IntelliSense operations.",
|
||||
@@ -84,9 +83,7 @@
|
||||
"configuration.implicitProjectConfig.module": "Sets the module system for the program. See more: https://www.typescriptlang.org/tsconfig#module.",
|
||||
"configuration.implicitProjectConfig.target": "Set target JavaScript language version for emitted JavaScript and include library declarations. See more: https://www.typescriptlang.org/tsconfig#target.",
|
||||
"configuration.implicitProjectConfig.checkJs": "Enable/disable semantic checking of JavaScript files. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
|
||||
"configuration.javascript.checkJs.checkJs.deprecation": "This setting has been deprecated in favor of `js/ts.implicitProjectConfig.checkJs`.",
|
||||
"configuration.implicitProjectConfig.experimentalDecorators": "Enable/disable `experimentalDecorators` in JavaScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
|
||||
"configuration.javascript.checkJs.experimentalDecorators.deprecation": "This setting has been deprecated in favor of `js/ts.implicitProjectConfig.experimentalDecorators`.",
|
||||
"configuration.implicitProjectConfig.strictNullChecks": "Enable/disable [strict null checks](https://www.typescriptlang.org/tsconfig#strictNullChecks) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
|
||||
"configuration.implicitProjectConfig.strictFunctionTypes": "Enable/disable [strict function types](https://www.typescriptlang.org/tsconfig#strictFunctionTypes) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
|
||||
"configuration.suggest.jsdoc.generateReturns": "Enable/disable generating `@returns` annotations for JSDoc templates.",
|
||||
@@ -172,7 +169,6 @@
|
||||
"typescript.suggest.enabled": "Enable/disable autocomplete suggestions.",
|
||||
"configuration.suggest.completeJSDocs": "Enable/disable suggestion to complete JSDoc comments.",
|
||||
"configuration.tsserver.useVsCodeWatcher": "Use VS Code's file watchers instead of TypeScript's. Requires using TypeScript 5.4+ in the workspace.",
|
||||
"configuration.tsserver.useVsCodeWatcher.deprecation": "Please use the `#typescript.tsserver.watchOptions#` setting instead.",
|
||||
"configuration.tsserver.watchOptions": "Configure which watching strategies should be used to keep track of files and directories.",
|
||||
"configuration.tsserver.watchOptions.vscode": "Use VS Code's file watchers instead of TypeScript's. Requires using TypeScript 5.4+ in the workspace.",
|
||||
"configuration.tsserver.watchOptions.watchFile": "Strategy for how individual files are watched.",
|
||||
@@ -192,7 +188,6 @@
|
||||
"configuration.tsserver.watchOptions.fallbackPolling.priorityPollingInterval": "Check every file for changes several times a second, but use heuristics to check certain types of files less frequently than others.",
|
||||
"configuration.tsserver.watchOptions.fallbackPolling.dynamicPriorityPolling ": "Use a dynamic queue where less-frequently modified files will be checked less often.",
|
||||
"configuration.tsserver.watchOptions.synchronousWatchDirectory": "Disable deferred watching on directories. Deferred watching is useful when lots of file changes might occur at once (e.g. a change in node_modules from running npm install), but you might want to disable it with this flag for some less-common setups.",
|
||||
"typescript.preferences.renameShorthandProperties.deprecationMessage": "The setting 'typescript.preferences.renameShorthandProperties' has been deprecated in favor of 'typescript.preferences.useAliasesForRenames'",
|
||||
"typescript.preferences.useAliasesForRenames": "Enable/disable introducing aliases for object shorthand properties during renames.",
|
||||
"typescript.preferences.renameMatchingJsxTags": "When on a JSX tag, try to rename the matching tag instead of renaming the symbol. Requires using TypeScript 5.1+ in the workspace.",
|
||||
"typescript.preferences.organizeImports": "Advanced preferences that control how imports are ordered.",
|
||||
|
||||
@@ -82,13 +82,11 @@ export class ImplicitProjectConfiguration {
|
||||
}
|
||||
|
||||
private static readCheckJs(configuration: vscode.WorkspaceConfiguration): boolean {
|
||||
return configuration.get<boolean>('js/ts.implicitProjectConfig.checkJs')
|
||||
?? configuration.get<boolean>('javascript.implicitProjectConfig.checkJs', false);
|
||||
return configuration.get<boolean>('js/ts.implicitProjectConfig.checkJs', false);
|
||||
}
|
||||
|
||||
private static readExperimentalDecorators(configuration: vscode.WorkspaceConfiguration): boolean {
|
||||
return configuration.get<boolean>('js/ts.implicitProjectConfig.experimentalDecorators')
|
||||
?? configuration.get<boolean>('javascript.implicitProjectConfig.experimentalDecorators', false);
|
||||
return configuration.get<boolean>('js/ts.implicitProjectConfig.experimentalDecorators', false);
|
||||
}
|
||||
|
||||
private static readImplicitStrictNullChecks(configuration: vscode.WorkspaceConfiguration): boolean {
|
||||
|
||||
@@ -188,7 +188,7 @@ export default class FileConfigurationManager extends Disposable {
|
||||
importModuleSpecifierEnding: getImportModuleSpecifierEndingPreference(preferencesConfig),
|
||||
jsxAttributeCompletionStyle: getJsxAttributeCompletionStyle(preferencesConfig),
|
||||
allowTextChangesInNewFiles: document.uri.scheme === fileSchemes.file,
|
||||
providePrefixAndSuffixTextForRename: preferencesConfig.get<boolean>('renameShorthandProperties', true) === false ? false : preferencesConfig.get<boolean>('useAliasesForRenames', true),
|
||||
providePrefixAndSuffixTextForRename: preferencesConfig.get<boolean>('useAliasesForRenames', true),
|
||||
allowRenameOfImportPath: true,
|
||||
includeAutomaticOptionalChainCompletions: config.get<boolean>('suggest.includeAutomaticOptionalChainCompletions', true),
|
||||
provideRefactorNotApplicableReason: true,
|
||||
|
||||
Reference in New Issue
Block a user