Skip to content

Too many compilation triggers showing progress that isn't useful #6099

@ckipp01

Description

@ckipp01

Describe the bug

When using the new progress support added in this pr, which is great btw, you start to notice that there is a lot of compilation requests sent at times that we either don't need to, or really shouldn't be shown to the user. For example in the video below you see me just navigating to a definition in a java file and when I come back to the Scala file a bunch of progress notifications about compiling different modules start coming. If I do the same thing again, it happens again. When navigating around this can become very distracting as a ton of these can be sent for your codebase.

Screen.Recording.2024-02-07.at.15.00.19.mov

Expected behavior

I'd expect this to be a bit more restricted. The user obviously wants to know when compilations are happening and maybe that is blocking something from working as expected or as quickly as they want. However, in scenarios like this where all the user is doing is navigating back and forth from sources that have already been fully compiled, they probably don't want to see this.

Operating system

macOS

Editor/Extension

Nvim (nvim-metals)

Version of Metals

1.2.0+123-450514c7-SNAPSHOT

Extra context or search terms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-upstreamTag a ticket with this when a fix upstream has been completed and we can now address the ticketimprovementNot a bug or a feature, but something general we can improve

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions