Skip to content

The server crashes multiple times when typing the host property of @Component and it is not restarted #69881

Description

@AndresMunozDeveloper

Is this a bug report or a feature request?

  • Bug Report
  • Feature Request

Please provide the steps to reproduce the issue [Bug Report only]

The extension version is 22.0.1.

I can consistently crash the language server of Angular in VSCode with the following code.

  1. Start with the following code piece:
@Component(
  ...
  host: {
    'class': 'some-class',
    '[style.top]': 'top',
    '[style.right]': 'right',
    '[style.bottom]': 'bottom',
    '[style.left]': 'left'
  }
  ...
)
  1. Then add the following to throw an error in the output.
@Component(
  ...
  host: {
    'class': 'some-class',
    '[style.top]': 'top',
    '[style.right]': 'right',
    '[style.bottom]': 'bottom',
    '[style.left]': 'left',
    'style'
  }
  ...
)

The error states: Request textDocument/foldingRange failed and Style binding must be string

So in the process of typing multiple properties the server crashes multiple times and VSCode notifies that the server will not be restarted because there were too many crashes in the last 3 minutes.

Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

No response

Please provide a screenshot if possible [Bug Report only]

No response

Please provide the exception or error you saw [Bug Report only]


Description [Feature Request only]

No response

Proposed solution [Feature Request only]

No response

Alternatives considered [Feature Request only]

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: language-serviceIssues related to Angular's VS Code language servicegemini-triagedLabel noting that an issue has been triaged by gemini

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions