Skip to content

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jul 16, 2021

Implement CodeCompletionStringPrinter to print override completion item to CodeCompletionResultBuilder with appropriate ChunkKind. Added various group ChunkKind for differentiating description, name, and sourcetext.

  • "description" for override completion is now annotatable
  • "description" don't include attributes and decl introducer, but it includes generic parameters, effects specifiers, result type clause, and where clauses
  • "name" now only include the name and the parameter clause
  • "sourcetext" should be unchanged

rdar://63835352

@rintaro
Copy link
Member Author

rintaro commented Jul 16, 2021

@swift-ci Please smoke test

1 similar comment
@rintaro
Copy link
Member Author

rintaro commented Jul 16, 2021

@swift-ci Please smoke test

@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch 2 times, most recently from 94df989 to e8dc2f5 Compare July 19, 2021 22:31
@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch from e8dc2f5 to 6c5b3f2 Compare July 20, 2021 17:40
@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch from 6c5b3f2 to fd8156b Compare July 30, 2021 22:16
@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch 2 times, most recently from 318ef74 to c7f1958 Compare August 9, 2021 21:27
@rintaro
Copy link
Member Author

rintaro commented Aug 9, 2021

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Aug 9, 2021

@benlangmuir This is still WIP (need to add test cases, cosmetic changes) but could you take a look and give me some initial feedback? 🙏

@rintaro rintaro requested a review from benlangmuir August 9, 2021 21:42
Copy link
Contributor

@benlangmuir benlangmuir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM; a few suggestions and questions.

@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch from c7f1958 to 2499c98 Compare August 12, 2021 23:43
@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch from 8b914e7 to 0ca9440 Compare August 13, 2021 18:41
@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch from 0ca9440 to 1ce4f12 Compare September 2, 2021 18:46
* "description" for override completion is now annotatable
* "description" doesn't include attributes and decl introducer, but it
  includes generic paramters, effects specifiers, result type clause,
  and generic where clauses
* "name" now only include the name and the parameter names
* "sourcetext" should be the same

rdar://63835352
@rintaro rintaro force-pushed the ide-completion-overrideannotation-rdarrdar62617558 branch from 1ce4f12 to 7e7b2c3 Compare September 2, 2021 19:12
@rintaro
Copy link
Member Author

rintaro commented Sep 2, 2021

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Sep 2, 2021

@swift-ci Please test Linux

@rintaro rintaro changed the title [WIP][CodeCompletion] Annotate override completions [CodeCompletion] Annotate override completions Sep 2, 2021
@rintaro rintaro marked this pull request as ready for review September 2, 2021 21:05
@rintaro rintaro merged commit bd5b301 into swiftlang:main Sep 2, 2021
@rintaro rintaro deleted the ide-completion-overrideannotation-rdarrdar62617558 branch September 2, 2021 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants