Ionide-vscode-fsharp: Send references to F# Interactive

Created on 17 Oct 2016  路  6Comments  路  Source: ionide/ionide-vscode-fsharp

Would be nice to be able to load on FSI all references from the project current open file belong to.
Similar like VS/plugin can do:
image

I really hope that using Forge you can identify current project and get list of all referenced assemblies,

Use case:

I have F# project developed in VS, that has pretty long list of dependencies (see below)
Right now, I want to update the code using VS Code + Ionide and test that my changes work as expected in FSI.

Would be nice to be able Ctrl+Shift+P type FSI: Send references from project and Alt+Enter my code to FSI

image

Most helpful comment

Released in 2.7.0

All 6 comments

I could try adding this one.

@kirill-gerasimenko: Would be really cool :)

project request to FSAC returns list of files and references in given project file (https://github.com/ionide/FsAutoComplete/blob/master/src/FsAutoComplete.Core/CommandResponse.fs#L81-L88). Currently we ignore it (https://github.com/ionide/ionide-vscode-fsharp/blob/master/src/Core/Project.fs#L76-L78 and https://github.com/ionide/ionide-vscode-fsharp/blob/master/src/Components/Errors.fs#L41-L43) and don't store anywhere in memory - I guess we could just storing project responses and use this info to:

  1. Find project for current file
  2. Get list of references

@Krzysztof-Cieslak thanks for the details! It's really going to give me a better start, since I'm only starting to learn all this stuff!

Released in 2.7.0

Wow! This works! Thank you @kirill-gerasimenko & @Krzysztof-Cieslak !

You are welcome :)

Was this page helpful?
0 / 5 - 0 ratings