Skip to content

Commit 1d54f35

Browse files
committed
Fix comment
1 parent d7de752 commit 1d54f35

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/server/protocol.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,7 +3545,7 @@ export interface UserPreferences {
35453545
*
35463546
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
35473547
*
3548-
* Default: `true`
3548+
* Default: `false`
35493549
*/
35503550
readonly organizeImportsNumericCollation?: boolean;
35513551
/**
@@ -3562,7 +3562,10 @@ export interface UserPreferences {
35623562
* Indicates whether upper case or lower case should sort first. When `false`, the default order for the locale
35633563
* specified in {@link organizeImportsCollationLocale} is used.
35643564
*
3565-
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
3565+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`. This preference is also
3566+
* ignored if we are using case-insensitive sorting, which occurs when {@link organizeImportsIgnoreCase} is `true`,
3567+
* or if {@link organizeImportsIgnoreCase} is `"auto"` and the auto-detected case sensitivity is determined to be
3568+
* case-insensitive.
35663569
*
35673570
* Default: `false`
35683571
*/

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,7 +2830,7 @@ declare namespace ts {
28302830
*
28312831
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
28322832
*
2833-
* Default: `true`
2833+
* Default: `false`
28342834
*/
28352835
readonly organizeImportsNumericCollation?: boolean;
28362836
/**
@@ -2847,7 +2847,10 @@ declare namespace ts {
28472847
* Indicates whether upper case or lower case should sort first. When `false`, the default order for the locale
28482848
* specified in {@link organizeImportsCollationLocale} is used.
28492849
*
2850-
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
2850+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`. This preference is also
2851+
* ignored if we are using case-insensitive sorting, which occurs when {@link organizeImportsIgnoreCase} is `true`,
2852+
* or if {@link organizeImportsIgnoreCase} is `"auto"` and the auto-detected case sensitivity is determined to be
2853+
* case-insensitive.
28512854
*
28522855
* Default: `false`
28532856
*/

0 commit comments

Comments
 (0)