-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter Hints shown inline all the time (like IntelliJ) #16221
Comments
inline parameters hints aka the args names prefixed on each value passed into a function invocation swift / objective c style. I think its a great idea to bring this to other languages, and its a perfect feature for an ide to take care of instead of actually introducing it to the language. |
@nbransby can you show me a screenshot? This is what we do today and I'm not seeing how what you are suggesting (args names prefixed on each value passed into a function invocation) is different: |
Ok interesting. Thank you for clarifying. |
For the record, here is child issue in vscode-python that I think depends on this one: microsoft/vscode-python#53 |
Note that this is already possible using decorations: Adapting this sample: vscode.window.createTextEditorDecorationType({
before: {
contentText: "myParam:",
border: "1px solid gray",
backgroundColor: "#333",
margin: "1px",
textDecoration: "test",
}
}); I'm not sure how to get information from the running typescript language server though... |
Looks like this is not possible. Other plugins that manipulate typescript either use regexes (typescript importer), a separate Typescript parser (Typescript Hero) or load the files into the typescript compiler themselves (Move TS). None of these methods really seem viable for this problem... |
Please make this a simple to install extension! |
So I've wanted this feature in VS Code as well and I ended up making it myself. I currently support JS files at the moment but am interested in adding support for other languages in the future. Here's a example of it being used in an example JS file: Here's the extension: https://marketplace.visualstudio.com/items?itemName=lannonbr.vscode-js-annotations |
Looking for such an extension for Golang |
This feature looks really useful - has it been considered for the language server protocol? Using @phiresky's example, this could be done through the semantic highlighting api - see microsoft/language-server-protocol#18, microsoft/language-server-protocol#513, etc. for the proposals. However, in my opinion CC. @dbaeumer, who appears to manage the language-server-protocol repo. A tracking/discussion issue there would probably be useful too, with your blessing. As a further note rust-lang/rfcs#323 (comment) discusses a further use for this to supercede keyword args in Rust. |
Commit: 519638efac9604318bcbd4643e0fed4b2b5955da
Commit: 8ef8933a1af8bc3613dcc375d7483c2fd6da6add
…soft/vscode#16221 (comment) Commit: d4dde3aa066c1da8ab10a73091cc66845c13c7e2
…21 (comment) Commit: 3fb542d6e9080818cc3b27862843f3cede4ebaf5
…221 (comment) Commit: 08a0f239267941699472d6662cdbd685c69bcd26
…d append command to context menu, add more jsdoc for API, remove dead code, #16221 (comment)
…ation and append command to context menu, add more jsdoc for API, remove dead code, microsoft/vscode#16221 (comment) Commit: a24000a9a35f0f9badd9d2be4634be5316f3f1c2
The API has been finalised, the feature is implemented. All further work is tracked with the |
To verify ensure that registerInlayHintsProvider is in latest |
Would be useful for typescript: https://youtu.be/ZfYOddEmaRw
The text was updated successfully, but these errors were encountered: