-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(language-service): Autocomplete block keywords in more cases #52198
Conversation
93d3897
to
f945cc6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@dylhunn this should be a fix instead of feat in my opinion |
f945cc6
to
b6d67bf
Compare
@atscott This parser change actually causes some breakage, let's try to sort it out soon. It might require changes to the migration. |
@crisbeto The migration has already run in g3, right? Does it depend on the parser, e.g. would running it again cause the remaining |
Yeah, I've run an LSC to migrate all existing usages. Re-running the migration would pick up any new usages since the parser in the migration is set up not to parse blocks, although I'm not sure how many that would be since any new usages would've resulted in compiler errors. |
Ack. To summarize:
|
Running a TGP to find all failures: https://test.corp.google.com/OCL:574331077:BASE:574331065:1697596661631:17c836dd |
Failures in g3 have been cleaned up. |
Previously, autocompletions were not available in two main cases. We correct them. 1. Autocompletions immediately after `@` were usually not working, for example `foo @|`. We fix this by causing the lexer to not consider the `@` part of the text node. 2. Autocompletions such as `@\nfoo`, where a newline follows a bare `@`, were not working because the language service visitor considered us inside the subsequent text node. We fix this by adding a block name span for the block keyword, and special-case whether we are completing inside the name span. If we are, we don't continue to the following text node.
b6d67bf
to
f32eb86
Compare
Reruns are passing! Ready to merge |
This PR was merged into the repository by commit e6affef. |
) Previously, autocompletions were not available in two main cases. We correct them. 1. Autocompletions immediately after `@` were usually not working, for example `foo @|`. We fix this by causing the lexer to not consider the `@` part of the text node. 2. Autocompletions such as `@\nfoo`, where a newline follows a bare `@`, were not working because the language service visitor considered us inside the subsequent text node. We fix this by adding a block name span for the block keyword, and special-case whether we are completing inside the name span. If we are, we don't continue to the following text node. PR Close #52198
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…ular#52198) Previously, autocompletions were not available in two main cases. We correct them. 1. Autocompletions immediately after `@` were usually not working, for example `foo @|`. We fix this by causing the lexer to not consider the `@` part of the text node. 2. Autocompletions such as `@\nfoo`, where a newline follows a bare `@`, were not working because the language service visitor considered us inside the subsequent text node. We fix this by adding a block name span for the block keyword, and special-case whether we are completing inside the name span. If we are, we don't continue to the following text node. PR Close angular#52198
…ular#52198) Previously, autocompletions were not available in two main cases. We correct them. 1. Autocompletions immediately after `@` were usually not working, for example `foo @|`. We fix this by causing the lexer to not consider the `@` part of the text node. 2. Autocompletions such as `@\nfoo`, where a newline follows a bare `@`, were not working because the language service visitor considered us inside the subsequent text node. We fix this by adding a block name span for the block keyword, and special-case whether we are completing inside the name span. If we are, we don't continue to the following text node. PR Close angular#52198
Previously, autocompletions were not available in two main cases. We correct them.
@
were usually not working, for examplefoo @|
. We fix this by causing the lexer to not consider the@
part of the text node.@\nfoo
, where a newline follows a bare@
, were not working because the language service visitor considered us inside the subsequent text node. We fix this by adding a block name span for the block keyword, and special-case whether we are completing inside the name span. If we are, we don't continue to the following text node.