Closed lrholmes closed 6 years ago
To recreate:
const checkPermissions = async ( ctx, nodeId, nodeType ) => { const userId = getUserId(ctx) if (nodeType === 'account') { // correctly highlighted } if (nodeType === 'user') { // incorrectly highlighted } }
Image:
Something to also note is that adding a semi-colon to the first line (userId) will break the first if statement's highlighting as well.
userId
Syntax highlighting goes back to normal if removing the async keyword or by moving all function params onto one line.
async
I believe this has been fixed in the latest version. Please update and let me know if it's still an issue.
Indeed it is fixed - thank you!
To recreate:
Image:
Something to also note is that adding a semi-colon to the first line (
userId
) will break the first if statement's highlighting as well.Syntax highlighting goes back to normal if removing the
async
keyword or by moving all function params onto one line.