You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testcase for the root cause is incremental parser going off the rails:
it("when comment is completed",()=>{constsource="function bug(\r\n test /** */ true = test test 123\r\n) {}";constoldText=ts.ScriptSnapshot.fromString(source);constindex=source.indexOf("/");constnewTextAndChange=withChange(oldText,index,1,"");compareTrees(oldText,newTextAndChange.text,newTextAndChange.textChangeRange,0);});
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
*
twice. (This will automatically extend to/**| */
as JSDoc comments are marked as auto closing pairs)Your code should now look like this:
|
is the cursor position.End
(Windows) orCmd+RightArrow
(Mac) to go to the end of the line.*/
.If anyone can't reproduce it, this is the outcome for me:
The text was updated successfully, but these errors were encountered: