Fix preferTypeOnlyAutoImports preference getter (#201376)

This commit is contained in:
Andrew Branch 2024-01-03 12:55:21 -06:00 committed by GitHub
parent 0a08e6fdcd
commit a1cfe91f9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,7 +192,7 @@ export default class FileConfigurationManager extends Disposable {
includeCompletionsWithObjectLiteralMethodSnippets: config.get<boolean>('suggest.objectLiteralMethodSnippets.enabled', true),
autoImportFileExcludePatterns: this.getAutoImportFileExcludePatternsPreference(preferencesConfig, vscode.workspace.getWorkspaceFolder(document.uri)?.uri),
// @ts-expect-error until 5.3 #56090
preferTypeOnlyAutoImports: config.get<boolean>('preferTypeOnlyAutoImports', false),
preferTypeOnlyAutoImports: preferencesConfig.get<boolean>('preferTypeOnlyAutoImports', false),
useLabelDetailsInCompletionEntries: true,
allowIncompleteCompletions: true,
displayPartsForJSDoc: true,