VisualStudio 2017 Reactor not working for F #

I have a project in F#, I'm working on VisualStudio2017. I tried to refactor the code and use inline, but this menu item is not available. Also, when I click Rename, nothing happened.

  • Why is it unavailable?
  • How to make refactoring work?

enter image description here

let blobToBlobWithInfo (b:IListBlobItem ) = 
    try
        let blobUri = b.Uri.ToString()
        let blobUriParts = blobUri.Split '/'
        let t = Array.length blobUriParts
        let integrationName =  blobUriParts.[t-2]
        if(integrationName <> "LogsToBlobService") then
            let logTime = new System.DateTime( System.Int32.Parse <| blobUriParts.[t-1].Substring(0,4), System.Int32.Parse <|blobUriParts.[t-1].Substring(4,2), System.Int32.Parse <|blobUriParts.[t-1].Substring(6,2))
            Some((b,integrationName,logTime))
        else
            None
    with
        | :? System.ArgumentException -> None
        | _ -> None
+2
source share
2 answers

This is a known issue in Visual Studio 2017.

It will be fixed in update 2.

This is confirmed in the GitHub issue .

+3
source

Source: https://habr.com/ru/post/1675004/


All Articles