Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
offers two code actions even in JSON file #48
Comments
|
Hmmm. interesting. Should be an easy fix. Care for a PR? I can point you in the right direction :) |
|
for the JSON fix shoud be easy, but currently it suggests these two actions everywhere. Ideally it would only suggested them if a JSX code block is selected. |
|
@capaj As far as i can remember, it relies on babel to check if its a JSX string. |
|
I think this will always succeed: vscode-glean/src/modules/jsx.ts Line 16 in da53019 JSX doesn't really impose any restrictions as to what can be inserted inside |
These two code actions should not be offered outside js/jsx/tsx:
