diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2019-09-18 10:55:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 10:55:46 +0300 |
commit | 60c61c6d96365a14440ad84cc28970445fb3ffb6 (patch) | |
tree | 76ea7e594907d04b75cca81f4b525ee9cbe94a66 /main/external/fsharpbinding | |
parent | 3fa695b264c4b362c7e86e633152c65bb0ee0bdd (diff) | |
parent | c435b54914cf081b0399e24bef1dc6d9b1fcf076 (diff) |
Merge pull request #8754 from mono/fix-984697
Fix InvalidCastException by removing unneeded cast
Diffstat (limited to 'main/external/fsharpbinding')
-rw-r--r-- | main/external/fsharpbinding/MonoDevelop.FSharpBinding/FSharpSyntaxMode.fs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/external/fsharpbinding/MonoDevelop.FSharpBinding/FSharpSyntaxMode.fs b/main/external/fsharpbinding/MonoDevelop.FSharpBinding/FSharpSyntaxMode.fs index 25315857c5..fbe15f6aa6 100644 --- a/main/external/fsharpbinding/MonoDevelop.FSharpBinding/FSharpSyntaxMode.fs +++ b/main/external/fsharpbinding/MonoDevelop.FSharpBinding/FSharpSyntaxMode.fs @@ -357,10 +357,9 @@ module Patterns = type FSharpSyntaxMode(editor, context: DocumentContext) = inherit SemanticHighlighting(editor, context) let tokenssymbolscolours = ref None - let roslynContext = context :?> RoslynDocumentContext override x.DocumentParsed() = - if MonoDevelop.isDocumentVisible roslynContext.FileName then + if MonoDevelop.isDocumentVisible editor.FileName then SyntaxMode.tryGetTokensSymbolsAndColours context |> Option.iter (fun tsc -> tokenssymbolscolours := Some tsc Application.Invoke(fun _ _ -> x.NotifySemanticHighlightingUpdate())) |