Skip to content

fix(vscode-extension): Support inlay hint in inline templates#69657

Open
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:inlay-hints
Open

fix(vscode-extension): Support inlay hint in inline templates#69657
JeanMeche wants to merge 1 commit into
angular:mainfrom
JeanMeche:inlay-hints

Conversation

@JeanMeche

Copy link
Copy Markdown
Member

We were explicitly not supporting them with an early return.

fixes #69649

@JeanMeche JeanMeche requested a review from atscott July 6, 2026 15:56
@angular-robot angular-robot Bot added the area: vscode-extension Issues related to the Angular Language Service VsCode extension label Jul 6, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jul 6, 2026
@kbrilla

kbrilla commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Thx for the fix @JeanMeche!
I was thinking maybe it would be worth adding a really short e2e test for inlay hints? There are inlay hints tests for lsp server, but an actual VS Code integration test was not added - I regret it now.
Something like:

it('should return an Angular-specific inlay hint for inline template', async () => {
  // 1. open APP_COMPONENT (or a fixture with e.g. an @for loop var)
  // 2. send lsp.InlayHintRequest.type for APP_COMPONENT_URI, full range
  // 3. assert response is non-null/non-empty
  // 4. assert label matches the expected hint
});

it('should return an Angular-specific inlay hint for external template', async () => {
  // same as above but against FOO_TEMPLATE / FOO_TEMPLATE_URI
});

using vscode.executeInlayHintProvider() and following rest of e2e tests.

This should guard before situaltions like the one being fixed here.

@angular-robot angular-robot Bot added the area: language-service Issues related to Angular's VS Code language service label Jul 7, 2026
@JeanMeche JeanMeche force-pushed the inlay-hints branch 2 times, most recently from 48fd812 to a8c88d8 Compare July 7, 2026 14:43
We were explicitly not supporting them with an early return.

fixes angular#69649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: language-service Issues related to Angular's VS Code language service area: vscode-extension Issues related to the Angular Language Service VsCode extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LSP Inlay Hints for inline-templates are not rendered.

2 participants