-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(43796): sort deprecated completions lower than others
- Loading branch information
1 parent
71f338b
commit d0e9191
Showing
14 changed files
with
255 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
// @Filename: /foo.ts | ||
/////** @deprecated foo */ | ||
////export const foo = 0; | ||
|
||
// @Filename: /index.ts | ||
/////**/ | ||
|
||
verify.completions({ | ||
marker: "", | ||
includes: [{ | ||
name: "foo", | ||
source: "/foo", | ||
sourceDisplay: "./foo", | ||
hasAction: true, | ||
kind: "const", | ||
kindModifiers: "export,deprecated", | ||
sortText: completion.SortText.DeprecatedAutoImportSuggestions | ||
}], | ||
preferences: { | ||
includeCompletionsForModuleExports: true, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
// @noLib: true | ||
|
||
////f({ | ||
//// a/**/ | ||
//// xyz: ``, | ||
////}); | ||
////declare function f(options: { | ||
//// /** @deprecated abc */ | ||
//// abc?: number, | ||
//// xyz?: string | ||
////}): void; | ||
|
||
verify.completions({ | ||
marker: "", | ||
exact: [{ | ||
name: "abc", | ||
kind: "property", | ||
kindModifiers: "deprecated,declare,optional", | ||
sortText: completion.SortText.DeprecatedOptionalMember | ||
}], | ||
}); |
Oops, something went wrong.