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
This is a bit of a strange one. In the screenshot below, a class with two methods is declared. The first returns a number and has correct syntax highlighting. The second has an almost identical body but returns an endsWithDigit1 (a type alias for number), which breaks highlighting for the method body.
(On a more practical level, I discovered this while trying write a method that returned a Matrix4x4, so it's definitely something that might happen in day-to-day use!)
VSCode Version: 1.1.1
OS Version: Ubuntu 14.04
Steps to Reproduce:
The repro code in the screenshot above is as follows:
typeendsWithDigit1=numberclassRepro{normalMember() : number{constsomeDeclaration : (name : string)=>string=(name)=>'hello there '+nameconstmyString=someDeclaration('human')letcoolNumber=myString.length+20varanotherCoolThing={pigs: 6,rabbits: 29,horseName: 'Johnny'}console.log('this is how the syntax highlighting should look!')return1}badHighlightingMember() : endsWithDigit1{constsomeDeclaration : (name : string)=>string=(name)=>'hello there '+nameconstmyString=someDeclaration('human')letcoolNumber=myString.length+20varanotherCoolThing={pigs: 6,rabbits: 29,horseName: 'Johnny'}console.log('this has some highlighting but the colors are wrong')return1}}
From @lostfictions on June 3, 2016 7:45
This is a bit of a strange one. In the screenshot below, a class with two methods is declared. The first returns a
number
and has correct syntax highlighting. The second has an almost identical body but returns anendsWithDigit1
(a type alias fornumber
), which breaks highlighting for the method body.(On a more practical level, I discovered this while trying write a method that returned a
Matrix4x4
, so it's definitely something that might happen in day-to-day use!)Steps to Reproduce:
The repro code in the screenshot above is as follows:
Copied from original issue: microsoft/vscode#7170
The text was updated successfully, but these errors were encountered: