Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into merges/master-to-…
Browse files Browse the repository at this point in the history
…fsharp5
  • Loading branch information
brettfo committed Mar 20, 2019
2 parents 0337cd3 + 2a24ade commit 67ff032
Show file tree
Hide file tree
Showing 47 changed files with 439 additions and 103 deletions.
2 changes: 1 addition & 1 deletion Classification/ClassificationDefinitions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ open Microsoft.VisualStudio.Text.Classification
open Microsoft.VisualStudio.Utilities
open Microsoft.CodeAnalysis.Classification

open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices

[<RequireQualifiedAccess>]
module internal FSharpClassificationTypes =
Expand Down
2 changes: 1 addition & 1 deletion Classification/ClassificationService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ open Microsoft.CodeAnalysis.Text
// IVT, we'll maintain the status quo.
#nowarn "44"

open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices

[<ExportLanguageService(typeof<IEditorClassificationService>, FSharpConstants.FSharpLanguageName)>]
type internal FSharpClassificationService
Expand Down
8 changes: 4 additions & 4 deletions CodeFix/AddOpenCodeFixProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.CodeFixes
open Microsoft.CodeAnalysis.CodeActions

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.AbstractIL.Internal.Library
open FSharp.Compiler
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.AbstractIL.Internal.Library

[<ExportCodeFixProvider(FSharpConstants.FSharpLanguageName, Name = "AddOpen"); Shared>]
type internal FSharpAddOpenCodeFixProvider
Expand Down
6 changes: 3 additions & 3 deletions CodeFix/ImplementInterfaceCodeFixProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.CodeFixes
open Microsoft.CodeAnalysis.CodeActions

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices

[<NoEquality; NoComparison>]
type internal InterfaceState =
Expand Down
2 changes: 1 addition & 1 deletion CodeFix/RemoveUnusedOpens.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.CodeFixes
open Microsoft.CodeAnalysis.CodeActions

open Microsoft.FSharp.Compiler.Range
open FSharp.Compiler.Range

[<ExportCodeFixProvider(FSharpConstants.FSharpLanguageName, Name = "RemoveUnusedOpens"); Shared>]
type internal FSharpRemoveUnusedOpensCodeFixProvider
Expand Down
6 changes: 3 additions & 3 deletions CodeFix/RenameParamToMatchSignature.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.CodeFixes

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.SourceCodeServices
open Microsoft.VisualStudio.FSharp.Editor.SymbolHelpers
open Microsoft.FSharp.Compiler.SourceCodeServices.Keywords
open FSharp.Compiler.SourceCodeServices.Keywords

[<ExportCodeFixProvider(FSharpConstants.FSharpLanguageName, Name = "FSharpRenameParamToMatchSignature"); Shared>]
type internal FSharpRenameParamToMatchSignature
Expand Down
4 changes: 2 additions & 2 deletions CodeFix/RenameUnusedValue.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.CodeFixes
open Microsoft.CodeAnalysis.CodeActions

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.SourceCodeServices

[<ExportCodeFixProvider(FSharpConstants.FSharpLanguageName, Name = "RenameUnusedValue"); Shared>]
type internal FSharpRenameUnusedValueCodeFixProvider
Expand Down
6 changes: 4 additions & 2 deletions CodeFix/ReplaceWithSuggestion.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ open System.Threading.Tasks
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.CodeFixes

open Microsoft.FSharp.Compiler
open FSharp.Compiler
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.Text

[<ExportCodeFixProvider(FSharpConstants.FSharpLanguageName, Name = "ReplaceWithSuggestion"); Shared>]
type internal FSharpReplaceWithSuggestionCodeFixProvider
Expand Down
8 changes: 4 additions & 4 deletions CodeLens/FSharpCodeLensService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ open Microsoft.CodeAnalysis.Editor.Shared.Extensions
open Microsoft.CodeAnalysis.Editor.Shared.Utilities
open Microsoft.CodeAnalysis.Classification

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Ast
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Range
open FSharp.Compiler
open FSharp.Compiler.Ast
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Range

open Microsoft.VisualStudio.FSharp.Editor.Logging

Expand Down
6 changes: 3 additions & 3 deletions Commands/HelpContextService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.Classification
open Microsoft.VisualStudio.LanguageServices.Implementation.F1Help
open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices

[<Shared>]
[<ExportLanguageService(typeof<IHelpContextService>, FSharpConstants.FSharpLanguageName)>]
Expand Down
2 changes: 1 addition & 1 deletion Commands/XmlDocCommandService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open Microsoft.VisualStudio.Text.Editor
open Microsoft.VisualStudio.TextManager.Interop
open Microsoft.VisualStudio.Utilities
open Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices

type internal XmlDocCommandFilter
(
Expand Down
2 changes: 1 addition & 1 deletion Common/CodeAnalysisExtensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module internal Microsoft.VisualStudio.FSharp.Editor.CodeAnalysisExtensions

open Microsoft.CodeAnalysis
open Microsoft.FSharp.Compiler.Range
open FSharp.Compiler.Range
open System.IO

type Project with
Expand Down
5 changes: 2 additions & 3 deletions Common/Extensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ open System.IO
open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.Host
open FSharp.Compiler.Ast
open FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Text
open Microsoft.FSharp.Compiler.Ast
open Microsoft.FSharp.Compiler.SourceCodeServices


type Path with
static member GetFullPathSafe path =
Expand Down
8 changes: 4 additions & 4 deletions Common/RoslynHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ open System.Threading.Tasks
open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.Diagnostics
open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Layout
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Range
open FSharp.Compiler
open FSharp.Compiler.Layout
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Range
open Microsoft.VisualStudio.FSharp.Editor.Logging

[<RequireQualifiedAccess>]
Expand Down
6 changes: 3 additions & 3 deletions Completion/CompletionProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ open Microsoft.CodeAnalysis.Text
open Microsoft.VisualStudio.Shell
open Microsoft.VisualStudio.Shell.Interop

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices
open System.Runtime.Caching
open System.Collections.Concurrent

Expand Down
2 changes: 1 addition & 1 deletion Completion/CompletionUtils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ open Microsoft.CodeAnalysis.Classification
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.Completion
open System.Globalization
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices

module internal CompletionUtils =

Expand Down
6 changes: 3 additions & 3 deletions Completion/SignatureHelp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ open Microsoft.VisualStudio.Text
open Microsoft.VisualStudio.Shell
open Microsoft.VisualStudio.Shell.Interop

open Microsoft.FSharp.Compiler.Layout
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Layout
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices

[<Shared>]
[<ExportSignatureHelpProvider("FSharpSignatureHelpProvider", FSharpConstants.FSharpLanguageName)>]
Expand Down
4 changes: 2 additions & 2 deletions Debugging/BreakpointResolutionService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ open Microsoft.CodeAnalysis.Editor.Implementation.Debugging
open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.CodeAnalysis.Text

open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Range

[<Shared>]
[<ExportLanguageService(typeof<IBreakpointResolutionService>, FSharpConstants.FSharpLanguageName)>]
Expand Down
2 changes: 1 addition & 1 deletion Debugging/LanguageDebugInfoService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open Microsoft.CodeAnalysis.Editor.Implementation.Debugging
open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.CodeAnalysis.Text

open Microsoft.FSharp.Compiler
open FSharp.Compiler

[<Shared>]
[<ExportLanguageService(typeof<ILanguageDebugInfoService>, FSharpConstants.FSharpLanguageName)>]
Expand Down
4 changes: 2 additions & 2 deletions Diagnostics/DocumentDiagnosticAnalyzer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Diagnostics
open Microsoft.CodeAnalysis.Text

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.SourceCodeServices


[<RequireQualifiedAccess>]
Expand Down
6 changes: 3 additions & 3 deletions Diagnostics/ProjectDiagnosticAnalyzer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.SolutionCrawler

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Range
open FSharp.Compiler
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Range

#if PROJECT_ANALYSIS
// Project-wide error analysis. We don't enable this because ParseAndCheckProject checks projects against the versions of the files
Expand Down
6 changes: 3 additions & 3 deletions Diagnostics/SimplifyNameDiagnosticAnalyzer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ open System.Runtime.CompilerServices

open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Diagnostics
open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices
open System.Runtime.Caching

type private TextVersionHash = int
Expand Down
4 changes: 2 additions & 2 deletions Diagnostics/UnusedDeclarationsAnalyzer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ open System.Threading.Tasks

open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Diagnostics
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices

[<DiagnosticAnalyzer(FSharpConstants.FSharpLanguageName)>]
type internal UnusedDeclarationsAnalyzer() =
Expand Down Expand Up @@ -70,7 +70,7 @@ type internal UnusedDeclarationsAnalyzer() =
|> Array.map (fun (m, _) -> m)

//#if DEBUG
//let formatRange (x: Microsoft.FSharp.Compiler.Range.range) = sprintf "(%d, %d) - (%d, %d)" x.StartLine x.StartColumn x.EndLine x.EndColumn
//let formatRange (x: FSharp.Compiler.Range.range) = sprintf "(%d, %d) - (%d, %d)" x.StartLine x.StartColumn x.EndLine x.EndColumn

//symbolsUses
//|> Array.map (fun su -> sprintf "%s, %s, is definition = %b, Symbol (def range = %A)"
Expand Down
8 changes: 4 additions & 4 deletions Diagnostics/UnusedOpensDiagnosticAnalyzer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ open System.Threading.Tasks
open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.Diagnostics
open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Ast
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Ast
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices
open Microsoft.VisualStudio.FSharp.Editor.Symbols

[<DiagnosticAnalyzer(FSharpConstants.FSharpLanguageName)>]
Expand Down
6 changes: 3 additions & 3 deletions DocComments/XMLDocumentation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ open System.Text.RegularExpressions
open Internal.Utilities.Collections
open Microsoft.VisualStudio.Shell
open Microsoft.VisualStudio.Shell.Interop
open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Layout
open Microsoft.FSharp.Compiler.Layout.TaggedTextOps
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Layout
open FSharp.Compiler.Layout.TaggedTextOps

type internal ITaggedTextCollector =
abstract Add: text: TaggedText -> unit
Expand Down
4 changes: 2 additions & 2 deletions DocumentHighlights/DocumentHighlightsService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ open Microsoft.CodeAnalysis.DocumentHighlighting
open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.CodeAnalysis.Text

open Microsoft.FSharp.Compiler.SourceCodeServices
open Microsoft.FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.Range

type internal FSharpHighlightSpan =
{ IsDefinition: bool
Expand Down
2 changes: 1 addition & 1 deletion Formatting/BraceMatchingService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Microsoft.VisualStudio.FSharp.Editor
open System.ComponentModel.Composition
open Microsoft.CodeAnalysis.Text
open Microsoft.CodeAnalysis.Editor
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices
open System.Runtime.InteropServices

[<ExportBraceMatcher(FSharpConstants.FSharpLanguageName)>]
Expand Down
2 changes: 1 addition & 1 deletion Formatting/EditorFormattingService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ open Microsoft.CodeAnalysis.Formatting
open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.CodeAnalysis.Text

open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices
open System.Threading
open System.Windows.Forms

Expand Down
2 changes: 1 addition & 1 deletion Formatting/IndentationService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open Microsoft.CodeAnalysis.Formatting
open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.CodeAnalysis.Text

open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices

[<Shared>]
[<ExportLanguageService(typeof<ISynchronousIndentationService>, FSharpConstants.FSharpLanguageName)>]
Expand Down
6 changes: 3 additions & 3 deletions InlineRename/InlineRenameService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ open Microsoft.CodeAnalysis.Editor
open Microsoft.CodeAnalysis.Host.Mef
open Microsoft.CodeAnalysis.Text

open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Range
open FSharp.Compiler.SourceCodeServices
open Symbols

type internal FailureInlineRenameInfo private () =
Expand Down
2 changes: 1 addition & 1 deletion LanguageService/AssemblyContentProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Microsoft.VisualStudio.FSharp.Editor
open System
open System.ComponentModel.Composition

open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.SourceCodeServices

[<Export(typeof<AssemblyContentProvider>); Composition.Shared>]
type internal AssemblyContentProvider () =
Expand Down
6 changes: 3 additions & 3 deletions LanguageService/FSharpCheckerExtensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ open System
open System.Threading.Tasks
open Microsoft.CodeAnalysis
open Microsoft.CodeAnalysis.Text
open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Ast
open Microsoft.FSharp.Compiler.SourceCodeServices
open FSharp.Compiler
open FSharp.Compiler.Ast
open FSharp.Compiler.SourceCodeServices

type FSharpChecker with
member checker.ParseDocument(document: Document, parsingOptions: FSharpParsingOptions, sourceText: SourceText, userOpName: string) =
Expand Down
Loading

0 comments on commit 67ff032

Please sign in to comment.