Giter VIP home page Giter VIP logo

Comments (12)

jonaprieto avatar jonaprieto commented on August 15, 2024

I need to investigate this. However, I had this issue and didn't find a solution.

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

Maybe one solution would be for the highlighter to highlight all it can even if there is a syntax error? But this probably requires significant changes in the Juvix highlighter.

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

But this is a bug. It's very annoying to use the VSCode extension because of this. It should be fixed one way or another.

But somehow it didn't happen with an earlier version, so something changed.

from vscode-juvix.

jonaprieto avatar jonaprieto commented on August 15, 2024

Can you please track the version where it's supposed to be working?

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

Well, it doesn't seem to be working with any of the extension versions. Maybe the VSCode version changed or something changed in the juvix binary. Or I just misremembered this.

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

In any case, I would say this is the most serious issue with the VSCode extension as of now.

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

A solution might be not to update the highlighting if there is an error, but use the old highlighting if there is one?

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

My take on this is that if we can't easily have non-disappearing semantic highlighting, then it's better to have dumb highlighting like we currently have with JuvixCore and JuvixAsm.

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

This is partly solved in 0.1.39. Semantic highlighting still disappears while I'm typing after the position where I'm typing. If I make an error, depending on the kind of error, all semantic highlighting in the entire file may disappear, plus basic highlighting after the error point.

Ultimately, highlighting shouldn't disappear. It should behave more-or-less the way the Haskell extension behaves, where I guess the extension remembers things that were highlighted - at least that's how it looks from the user perspective.

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024
image

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024
image

from vscode-juvix.

lukaszcz avatar lukaszcz commented on August 15, 2024

Original state before editing:
image

from vscode-juvix.

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.