angular / vscode-ng-language-service

Angular extension for Visual Studio Code
MIT License
773 stars 116 forks source link

Template fold variable break #2010

Open 0-don opened 6 months ago

0-don commented 6 months ago

🐞 bug report

Description

This bug is caused by a variable inside template string section. The folding breaks and you cant minimize the elements

Reproduction

image

ohadf2015 commented 5 months ago

is this related to the following Error that cause the service to crash?

Request textDocument/foldingRange failed with message: Maximum call stack size exceeded: Error: Request textDocument/foldingRange failed with message: Maximum call stack size exceeded
    at handleResponse (/Users/ohad/.vscode/extensions/angular.ng-template-17.3.1/node_modules/vscode-jsonrpc/lib/common/connection.js:477:48)
    at processMessageQueue (/Users/ohad/.vscode/extensions/angular.ng-template-17.3.1/node_modules/vscode-jsonrpc/lib/common/connection.js:292:17)
    at Immediate.<anonymous> (/Users/ohad/.vscode/extensions/angular.ng-template-17.3.1/node_modules/vscode-jsonrpc/lib/common/connection.js:276:13)
    at processImmediate (node:internal/timers:476:21)