Skip to content

Commit

Permalink
Disable unused opens warnings for type imports
Browse files Browse the repository at this point in the history
An FCS update would allow to enable it back again: dotnet/fsharp#10510
  • Loading branch information
auduchinok committed Nov 23, 2020
1 parent cd9b0b4 commit d534433
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -49,6 +49,9 @@ and UnusedOpensStageProcess(fsFile: IFSharpFile, daemonProcess: IDaemonProcess)
| null -> ()
| openDirective ->

// todo: remove after FCS update, https://github.com/dotnet/fsharp/pull/10510
if isNotNull openDirective.TypeKeyword then () else

let range = openDirective.GetHighlightingRange()
highlightings.Add(HighlightingInfo(range, UnusedOpenWarning(openDirective)))
committer.Invoke(DaemonStageResult(highlightings))

0 comments on commit d534433

Please sign in to comment.