Commit Graph

6 Commits

Author SHA1 Message Date
Alex Hoppen
32eff21977 [IDE] Remove "Begin completions" and "End completions" from test cases
These test lines weren't actually providing any value and were annoying to write. Let's jut remove them.
2023-03-22 09:07:17 -07:00
Rintaro Ishizaki
18dc9c1c27 [CodeCompletion] Remove CodeComletionString::getName()
`CodeCompletioString::getName()` was used only as the sorting keys in
`CodeCompletionContext::sortCompletionResults()` which is effectively
deprecated. There's no reason to check them in `swift-ide-test`. Instead,
check `printCodeCompletionResultFilterName()` that is actually used for
filtering.
2021-07-16 13:24:19 -07:00
Rintaro Ishizaki
619fbe1a16 [CodeCompletion] Don't perform completion at declaration name position
If there's expected signature after the code completion.

For example:
  func <HERE>(arg: Int) {}

This is clearly modifying the function name. We should not perform any
completion including override completion.

rdar://problem/58378950
2020-04-23 23:12:44 -07:00
fischertony
86d9d7a6b5 Fix override completions when a valid introducer is present but the override keyword is not. 2019-02-16 16:02:22 +03:00
Rintaro Ishizaki
70fba3f38d [CodeCompletion] Don't suggest keywords after decl introducer
If any decl introducers (e.g. 'func', 'let', 'typealias', etc.) are
included in parsed keywords, don't emit any keywords in completion.
2018-08-17 19:54:31 +09:00
Rintaro Ishizaki
7c4aaef4f5 [CodeCompletion] Disable completion for declaration name position (#16898)
Code completion should not suggest anything when declaring a new name.

rdar://problem/29392238
2018-05-30 12:29:58 -07:00