Sublime-Babel-VSCode
Sublime-Babel-VSCode copied to clipboard
Optional chaining breaks syntax highlighting
Hello,
When I try to use optional chaining inside my JSX, the syntax highlighting of the following blocks is broken (line 69).
If I remove the optional chaining, everything is fine.
On Sublime Text, it works as expected.
EDIT: This also breaks simple JS syntax highlighting.
Any updates?
This seems to be linked to https://github.com/Microsoft/TypeScript-TmLanguage/issues/522. So we need to wait for the feature to hit stage 3 before Microsoft implements it in their parser.
Are you using optional chaining with ESLint, Babel, babel-eslint and plugin-proposal-optional-chaining? I'm trying to use it in my code, but ESLint keeps throwing an error.
Are you using optional chaining with ESLint, Babel, babel-eslint and plugin-proposal-optional-chaining? I'm trying to use it in my code, but ESLint keeps throwing an error.
I am having the same problem. @brneto did you get a sloution?
@ovac I've decided to switch to Babel JavaScript, because there is a more active developer community.
Now optional chaining moves to stage 3!!!
how can i use this? i am facing same issue with VS code TS ReactNative.
I switched to https://github.com/michaelgmcd/vscode-language-babel also. Colors are a bit different but other than that it works perfectly.
🤷♂
I switched to https://github.com/michaelgmcd/vscode-language-babel also. Colors are a bit different but other than that it works perfectly.
🤷♂
This solution worked perfectly in my VS Code.
I switched to https://github.com/michaelgmcd/vscode-language-babel also. Colors are a bit different but other than that it works perfectly.
This solution works for me! Thanks
I switched to https://github.com/michaelgmcd/vscode-language-babel also. Colors are a bit different but other than that it works perfectly.
🤷♂
Sweet, thanks!