question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Semantic highlighting of parameters

See original GitHub issue

This will make it easier to visually distinguish between the name of a function and its parameters when definining it.

 let somelongname barfoo someotherparam onelast = ....

Here it would be easier to spot that somelongname is the function name, and the rest are parameters.

It will also make it easier to distinguish between local let bindings/values and the parameters from the outside.

Other languages have this distinction (e.g. javascript). Imo it’s even more useful in F# because there’s no symbols ( ) look for.


It would also be useful to have semantic highlight when a function is called. So that when you invoke/call somelongname myparameter yetanotherparameter true, you could easily see that somelongname is being called, and the rest are just passed to it as params.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
En3Thocommented, Dec 16, 2020

@drhumlen I’m glad you like it! We’ve decided to not change any defaults with new highlighting capabilities. I also have an option to highlight parameters differently too, but it’s in my custom fcs build and my PR enabling this feature is basically ignored by dsyme. Can’t help it. Also, values of literals are properly shown in tooltips now 😃

1reaction
En3Thocommented, Jun 5, 2020

I’m actually trying to get this thing done now but I guess it’s kinda hard to do it with parameter as I still can’t really find a “transition” between FSharpValue and FSharpParameter.

Looks kinda like this and I already like it because I can easily spot methods and funcs but it’s still not ideal as I’m quite a fan of having parameters highlited differently too.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Semantic Highlight Guide | Visual Studio Code Extension API
Semantic Highlight Guide. Semantic highlighting is an addition to syntax highlighting as described in the Syntax Highlight guide. Visual Studio Code uses ...
Read more >
Make Sense of Your Variables at a Glance with Semantic ...
PyCharm uses semantic highlighting to assign a different color to each parameter and local variable: the “namespaces” parameter is now a ...
Read more >
Python Semantic Highlighting of Parameters in Function ...
Textmate scopes allow for the differentiation between parameters and parameters in function calls. The first image is the desired parameter ...
Read more >
How to enable semantic highlighting in VS Code
Semantic syntax highlighting makes code easier to read and can be enabled in VS Code easily.
Read more >
Parameters that are also functions - semantic syntax ...
I want to be able to define a new style for types that are both parameters and functions. I can change the parameter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found