-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable method signature completion for object literals (#48168)
* skeleton of new feature * working prototype * refactor print and format code into its own function * minor changes; don't support overloads * have two completion entries * get rid of accessor support * add snippet support * add formatting * add trailing comma * add sourcedisplay * support auto-imports via completion details * add user preference option and fix ordering of entries * cleanup * don't return code actions for no import fixes * make sortText lower priority for snippets * get rid of flag * use optional member sort text * update baselines * don't collect method symbols if insert text is not supported * remove comment * return undefined if type is not function type * only slice if needed * use union reduction; more test cases * WIP: modify sort text system * Improve new sort text system * add signature and union type check * re-add flag * fix tests * rename sort text helper * fix test and code for union case * add new flag to protocol type * fix spaces * CR: minor fixes * CR: more fixes * CR: restructure main flow * minor fix
- Loading branch information
Showing
31 changed files
with
928 additions
and
243 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
Oops, something went wrong.