microsoft / vs-ng-language-service

Visual Studio extension for the Angular Language Service
MIT License
43 stars 15 forks source link

Can't add new line in html tags #56

Closed awdorrin closed 1 year ago

awdorrin commented 1 year ago

Given html content such as the following:

1:  <ng-container matColumnDef="recommendationComment">
2:    <mat-header-cell *matHeaderCellDef mat-sort-header>Recommendation Comment </mat-header-cell>
3:    <mat-cell *matCellDef="let row"
4:              matTooltip="Click to Edit"
5:              (click)="recommendationCommentHandler(row)"
6:              [disabled]="disableCommentEdit(row)">
7:      {{row.recommendationComment}}
8:    </mat-cell>
9:  </ng-container>

When I navigate to the end of lines 3, 4, or 5, and press Enter, a new line is added then quickly removed. The only way for me to add an attribute on a new line is to press space, start typing, move the cursor back in front of what I just started to type, then press 'enter' again.

I assume this is due to the auto-formatting/auto-completion logic - but I don't see any configuration options for this extension to change that behavior.

MariaSolOs commented 1 year ago

I cannot reproduce the issue. For us to further investigate, please provide the following information:

MariaSolOs commented 1 year ago

Closing because I couldn't reproduce the issue and we never heard back from the user.