Giter Site home page Giter Site logo

Comments (4)

tsvetan-ganev avatar tsvetan-ganev commented on July 22, 2024

The ability to toggle lenses on/off will be great. Personally, I hate every distraction inside my code while I'm editing it. I would like to see the complexity of functions, analyse the results and then hide the information while I'm actually writing code.

from codemetrics.

kisstkondoros avatar kisstkondoros commented on July 22, 2024

Commands for both of your needs are on the way.

@jrieken any idea how to invalidate the CodeLens cache?
smth. like

commands.executeCommand<vscode.CodeLens[]>('vscode.executeCodeLensProvider', vscode.window.activeTextEditor.document.uri)

should do it, but this fails for me with a warning message (Cannot read property 'id' of undefined) and I have no idea what causes it (I have wrong source maps I guess)

I will provide a fix which does the cache invalidation the hard way - by using edit operations... doh
CodeLensContribution onModelChange is triggered this way

from codemetrics.

kisstkondoros avatar kisstkondoros commented on July 22, 2024

Published the new version to the market.
I'm waiting for Your feedback :)

from codemetrics.

jrieken avatar jrieken commented on July 22, 2024

any idea how to invalidate the CodeLens cache?

I am afraid to say that you cannot do that today...

from codemetrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.