Skip to content

Commit d7de752

Browse files
committed
Fix comments
1 parent 12cca65 commit d7de752

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

src/server/protocol.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3527,16 +3527,14 @@ export interface UserPreferences {
35273527
* [Unicode Collation Algorithm](https://unicode.org/reports/tr10/#Scope)) using rules associated with the locale
35283528
* specified in {@link organizeImportsCollationLocale}.
35293529
*
3530-
* NOTE: When comparing paths `"ordinal"` collation is always used.
3531-
*
35323530
* Default: `"ordinal"`.
35333531
*/
35343532
readonly organizeImportsCollation?: "ordinal" | "unicode";
35353533
/**
3536-
* Indicates the locale to use for "natural" collation. If not specified, the locale `"en"` is used as an invariant
3534+
* Indicates the locale to use for "unicode" collation. If not specified, the locale `"en"` is used as an invariant
35373535
* for the sake of consistent sorting. Use `"auto"` to use the detected UI locale.
35383536
*
3539-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
3537+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
35403538
*
35413539
* Default: `"en"`
35423540
*/
@@ -3545,7 +3543,7 @@ export interface UserPreferences {
35453543
* Indicates whether numeric collation should be used for digit sequences in strings. When `true`, will collate
35463544
* strings such that `a1z < a2z < a100z`. When `false`, will collate strings such that `a1z < a100z < a2z`.
35473545
*
3548-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
3546+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
35493547
*
35503548
* Default: `true`
35513549
*/
@@ -3555,7 +3553,7 @@ export interface UserPreferences {
35553553
* `true`, characters with accents and other diacritics will be collated in the order defined by the locale specified
35563554
* in {@link organizeImportsCollationLocale}.
35573555
*
3558-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
3556+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
35593557
*
35603558
* Default: `true`
35613559
*/
@@ -3564,7 +3562,7 @@ export interface UserPreferences {
35643562
* Indicates whether upper case or lower case should sort first. When `false`, the default order for the locale
35653563
* specified in {@link organizeImportsCollationLocale} is used.
35663564
*
3567-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
3565+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
35683566
*
35693567
* Default: `false`
35703568
*/

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,16 +2812,14 @@ declare namespace ts {
28122812
* [Unicode Collation Algorithm](https://unicode.org/reports/tr10/#Scope)) using rules associated with the locale
28132813
* specified in {@link organizeImportsCollationLocale}.
28142814
*
2815-
* NOTE: When comparing paths `"ordinal"` collation is always used.
2816-
*
28172815
* Default: `"ordinal"`.
28182816
*/
28192817
readonly organizeImportsCollation?: "ordinal" | "unicode";
28202818
/**
2821-
* Indicates the locale to use for "natural" collation. If not specified, the locale `"en"` is used as an invariant
2819+
* Indicates the locale to use for "unicode" collation. If not specified, the locale `"en"` is used as an invariant
28222820
* for the sake of consistent sorting. Use `"auto"` to use the detected UI locale.
28232821
*
2824-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
2822+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
28252823
*
28262824
* Default: `"en"`
28272825
*/
@@ -2830,7 +2828,7 @@ declare namespace ts {
28302828
* Indicates whether numeric collation should be used for digit sequences in strings. When `true`, will collate
28312829
* strings such that `a1z < a2z < a100z`. When `false`, will collate strings such that `a1z < a100z < a2z`.
28322830
*
2833-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
2831+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
28342832
*
28352833
* Default: `true`
28362834
*/
@@ -2840,7 +2838,7 @@ declare namespace ts {
28402838
* `true`, characters with accents and other diacritics will be collated in the order defined by the locale specified
28412839
* in {@link organizeImportsCollationLocale}.
28422840
*
2843-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
2841+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
28442842
*
28452843
* Default: `true`
28462844
*/
@@ -2849,7 +2847,7 @@ declare namespace ts {
28492847
* Indicates whether upper case or lower case should sort first. When `false`, the default order for the locale
28502848
* specified in {@link organizeImportsCollationLocale} is used.
28512849
*
2852-
* This preference is ignored if {@link organizeImportsCollation} is not `"natural"`.
2850+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
28532851
*
28542852
* Default: `false`
28552853
*/

0 commit comments

Comments
 (0)