typelens | VSCode plugin which adds reference counter code lenses
kandi X-RAY | typelens Summary
kandi X-RAY | typelens Summary
A VSCode plugin which adds reference counter code lenses to typescript, javascript, scss and less files. Do You need support for some other language? No problem, contact the author of the extension You are using for that language and ask politely for Symbol and Reference providers. This extension picks up references and symbols provided by those extensions, so if it is not working properly I can't do anything about it (probably).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of typelens
typelens Key Features
typelens Examples and Code Snippets
Community Discussions
Trending Discussions on typelens
QUESTION
i'm trying to solve the following issue with VS Code and the C/C++ Extension from Microsoft.
The mentioned Extension adds a reference count above every function/object definition in the source code. That's a helpful feature so far, but for me it doesn't work as intended I think.
In my example I started implementing a thread-safe linked list to practice (please ignore the code, thats not what this topic is about). The whole class is greyed out although I import the header-file and instantiate an object of that class in the main.cpp file in the main-function. Also, the whole main function is greyed out because no references to the main-function are found. That makes no sense to me, why would I ever reference the main-function in my code? It's the entry point to the program and shouldn't be referenced in my project source code afaik.
When I disable the C/C++ Extension, the reference counts are gone and the source code is highlighted again. But I would really like to keep the reference count and only get rid of the greyed out code (or make it work properly so that main function and definitions I reference in my code are not greyed out).
Also by disabling the extension, code auto completion is gone. So that's not a good trade. I spent hours of reading the configuration and searching the web for solutions, but I couldn't find anything helpful. The only thing slightly realted to the greying out of code I found is the option "Dim inactive regions" found in the C/C++ Extension's setting. But it didn' solve my problem.
Thank you in advance for reading/trying to help!
Example of greyed out code and reference count:
greyed out main function because of 0 references to main:
Dim inactive code option:
Update: So it turned out that the reference counter not only disappears when I disable the C/C++ extension but also when I disable the TypeLens extension. That does not solve my problem but at least I can get rid of the greyed out code by disabling TypeLens and still use the auto completion the C++ extension provides.
...ANSWER
Answered 2020-Nov-23 at 15:29Possibly you should declare your main function with
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install typelens
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page