You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
philipp-spiess
changed the title
Do not trigger completions if there is code in the suffix of this line except some known characters (e.g. )}];)
Completions: Do not trigger completions if there is code in the suffix of this line except some known characters (e.g. )}];)
May 30, 2023
…ffix (#52623)
Closes#52582
Another branch that looks at the suffix _for the same line_. That is,
the code that is written in the same line as the cursor but after the
cursor. If this contains any word character (which is a-z, A-Z, 0-9,
including _), we're now bailing out of completions.
If it's only symbols, we still trigger completions so this case where
characters are merged is still working as expected:
<img width="248" alt="Screenshot 2023-05-30 at 17 25 54"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/8b6b47a7-68e5-4396-930c-7b463d5b1be9">
## Test plan
- see unit test
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
…ffix (#52623)
Closes#52582
Another branch that looks at the suffix _for the same line_. That is,
the code that is written in the same line as the cursor but after the
cursor. If this contains any word character (which is a-z, A-Z, 0-9,
including _), we're now bailing out of completions.
If it's only symbols, we still trigger completions so this case where
characters are merged is still working as expected:
<img width="248" alt="Screenshot 2023-05-30 at 17 25 54"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/8b6b47a7-68e5-4396-930c-7b463d5b1be9">
## Test plan
- see unit test
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
No description provided.
The text was updated successfully, but these errors were encountered: