我有项目在F#
, 我正在尝试VisualStudio2017
。我尝试重构代码并使用内联,但此菜单项不可用。另外当我点击Rename什么都没发生。
- 为什么不可用?
- 如何强制refactor操作才能工作?
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
这是 Visual Studio 2017 中的一个已知问题。
它将在更新 2 中修复。
此事已得到证实GitHub问题 https://github.com/Microsoft/visualfsharp/issues/2833.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)