imliam / vscode-inline-parameters

An extension for Visual Studio Code that adds inline parameter annotations when calling a function.
https://marketplace.visualstudio.com/items?itemName=liamhammett.inline-parameters
MIT License
197 stars 21 forks source link

Trouble getting this to work at all (React) #52

Open shelbourn opened 3 years ago

shelbourn commented 3 years ago

I recently found this extension and am super excited about it, but cannot seem to get it to work. I have installed the extension without modifying any settings and I do not see any inline parameter hints at all. I'm working on a React project. Is there something I'm missing? Thanks in advance!

Sayvai commented 3 years ago

Same. I am also working on a React project. I've just installed this extension without any additional config setup / changes, and restarted VS Code too, to no avail.

I had even manually added a settings JSON config entry "inline-parameters.enabled": true, but that also did not work either.


Update: I've just noticed Inline Parameters displayed within my JavaScript Cypress (functional / e2e) tests only.

Strange. I wonder what the specific circumstances are to get inline params to show across the whole of project which includes main source code and unit tests? Proper TS config / definitions? 🤔

FlahDev commented 1 year ago

We don't need this extension anymore, vscode has own support to inlay hints

"editor.inlayHints.enabled": "on",
"typescript.inlayHints.parameterNames.enabled": "all",
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.inlayHints.variableTypes.enabled": true,
"typescript.inlayHints.propertyDeclarationTypes.enabled": true,
"typescript.inlayHints.enumMemberValues.enabled": true,