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.

Support highlight for constructor call

See original GitHub issue

The highlighter for Java cannot differ constructor from function call. Hope the syntax file can be edited so we can add colour to constructor call.

In this picture, the left File is highlighted as class, however the constructor call is highlighted as function.

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fbriconcommented, Oct 12, 2021

See constructor customization: Screenshot 2021-10-12 at 09 32 51

1reaction
0dinDcommented, Sep 24, 2021

No problem!

By the way, RedHat formatting file need the abs path of the file, and file:/// prefix. If a path contains space or CJK characters, I think the user may feel confusing that their URL cannot be used (for me, I change my space to %20, and solve the bug. However, if the path is invalid, I think there is no error log output in vscode “log output” page (in the terminal)).

Well, the setting does say it takes a URL, and spaces are not valid characters in URLs (hence the %20 encoding). Although I agree that this may be confusing for new users, and it could be handled by the extension instead (you’d have to open a new issue for that).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Constructors (With Examples) - Programiz
In this tutorial, we will learn about Java constructors, their types, and how to use them with the help of examples. What is...
Read more >
Constructor, operator "new" - The Modern JavaScript Tutorial
This constructor can't be called again, because it is not saved anywhere, just created and called. So this trick aims to encapsulate the...
Read more >
How does Visual Studio syntax-highlight strings in the Regex ...
*I have wrapped the call to AddStyle() into one of my own functions anyway, and the string will be passed as a parameter,...
Read more >
Generate a constructor quick action - Visual Studio (Windows)
Highlight the members you wish to have in your generated constructor: Highlight members ... Add a parameter to an existing constructor call.
Read more >
Java Constructor Basics: What They Are & How to Use Them
Constructors are only called one at the time of object creation. ... braces at the end of the constructor; the code below highlights...
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