Skip to content

Allow ParseFileInProject be called from outside Reactor #3107

@vasily-kirichenko

Description

@vasily-kirichenko

Currently (very fast) parsing jobs have to wait in Reactor queue for (slow) type check jobs. This results with a situation when you open a file in project and it's started to check (and all files above it, if it's the first time a file in the project is touched), blocking any ParseFileInProject until it's finished. It means no structure guidelines, no nav bar for long time (I know Rider guys are also struggling with it). As I understand, parsing is performed under reactor because it gets IncrementalBulider for project to get TcConfig, project source file list and dependency list from it, see https://github.com/Microsoft/visualfsharp/blob/master/src/fsharp/vs/service.fs#L2278-L2285

Is it possible allow parsing outside Reactor?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions