Add option for organize imports case sensitivity (#51733)

* Add ignore case option to organizeImports

* Adopt in auto-imports, use same case-insensitive comparison as eslint

* Fix build/lint

* Mark functions internal

* Update affected auto import test

* Update API baseline

* Update protocol

* Update API baseline

* Short-circuit comparisons that have already failed
This commit is contained in:
Andrew Branch authored and GitHub committed 2022-12-13 14:37:29 -08:00
1 parent a5dde88dce
commit 4076ff8fd6
19 files changed
+430 -109

No files matched your search

+1
View File
@@ -3516,6 +3516,7 @@ export interface UserPreferences {
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
readonly includeInlayEnumMemberValueHints?: boolean;
readonly autoImportFileExcludePatterns?: string[];
readonly organizeImportsIgnoreCase?: "auto" | boolean;
/**
* Indicates whether {@link ReferencesResponseItem.lineText} is supported.