ionide / ionide-vscode-mechanic

Mechanic plugin for VS Code
https://github.com/fsprojects/Mechanic
MIT License
17 stars 4 forks source link

Filter the list of projects in Mechanic.fs to the ones that contain the currently opended file #9

Closed forki closed 6 years ago

forki commented 6 years ago

/cc @Krzysztof-Cieslak

forki commented 6 years ago

we also need to deduplicate

image

/cc @MangelMaxime

MangelMaxime commented 6 years ago

Yes, and to do that we need to change the state structure

https://github.com/ionide/ionide-vscode-mechanic/pull/10#discussion_r174152717

Krzysztof-Cieslak commented 6 years ago

Getting project to which file belongs should be fairly simple - Project object contains list of files, getting current path is window.activeTextEditor.document.filename

MangelMaxime commented 6 years ago

I already have this implemented, I just don't know which data structure to use for state ? Is it Dictionnary ? @Krzysztof-Cieslak

Krzysztof-Cieslak commented 6 years ago

Yes, Dictionary sounds good, I'm using it in couple of places in Ionide

MangelMaxime commented 6 years ago

Ok, I will work on this issue and change the structure then