diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index b4e9921c..8bf88e09 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +#### 2.5.7 - February 20 2017 + +* Updated FSharp.Compiler.Services, Fantomas and FSharpLint [#1496](https://github.com/fsprojects/VisualFSharpPowerTools/pull/1496) + #### 2.5.6 - February 3 2017 * Updated FsXaml and FSharp.ViewModule to prevent type provider conflicts diff --git a/paket.dependencies b/paket.dependencies index f857393d..185b7c7b 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -1,14 +1,15 @@ source http://nuget.org/api/v2 redirects: on strategy: max - +framework >= net40 nuget Fantomas nuget FSharp.Compiler.Service -nuget FSharp.Core +nuget FSharp.Compiler.Service.ProjectCracker # fslint also depends on it, and conflicted with standalone dependency in Test group which is now removed +nuget FSharp.Core = 4.0.0.1 nuget FSharp.Data nuget FSharp.Management nuget FSharp.ViewModule.Core -nuget FSharpLint.Core +nuget FSharpLint.Core prerelease nuget FsPickler nuget FsXaml.Wpf nuget SourceLink.SymbolStore 0.5.0 @@ -42,18 +43,19 @@ group vssdk group Test source http://nuget.org/api/v2 - + framework >= net40 nuget Foq nuget FsCheck - nuget FSharp.Compiler.Service.ProjectCracker + nuget FSharp.Core = 4.0.0.1 nuget NUnit nuget NUnit.Runners group Build source http://nuget.org/api/v2 - + framework >= net40 nuget canopy nuget FAKE + nuget FSharp.Core = 4.0.0.1 nuget FSharp.Formatting nuget Nuget.CommandLine nuget Selenium.WebDriver.ChromeDriver diff --git a/paket.lock b/paket.lock index 47f44ac0..799392fa 100644 --- a/paket.lock +++ b/paket.lock @@ -1,165 +1,107 @@ REDIRECTS: ON STRATEGY: MAX +FRAMEWORK: >= NET40 NUGET remote: http://www.nuget.org/api/v2 - Fantomas (2.4) - FSharp.Compiler.Service (>= 8.0) + Fantomas (2.5) + FSharp.Compiler.Service (>= 10.0.1) FParsec (1.0.2) - FSharp.Compiler.Service (8.0) + FSharp.Compiler.Service (11.0.4) System.Collections.Immutable (>= 1.2) System.Reflection.Metadata (>= 1.4.1-beta-24227-04) - FSharp.Compiler.Service.ProjectCracker (8.0) + FSharp.Compiler.Service.ProjectCracker (11.0.4) + FSharp.Compiler.Service (>= 11.0.4) - framework: >= net463 + Microsoft.Build (>= 14.3) - framework: >= net463 + Microsoft.Build.Framework (>= 14.3) - framework: >= net463 + Microsoft.Build.Tasks.Core (>= 14.3) - framework: >= net463 + Microsoft.Build.Utilities.Core (>= 14.3) - framework: >= net463 + Microsoft.FSharp.Core.netcore (>= 1.0.0-alpha-161205) - framework: >= net463 + System.Runtime.Serialization.Json (>= 4.0.2) - framework: >= net463 FSharp.Core (4.0.0.1) FSharp.Data (2.3.2) - Zlib.Portable (>= 1.11) - framework: >= netstandard11, portable-net45+sl5+win8, portable-net45+win8, portable-net45+win8+wp8+wpa81 FSharp.Management (0.4.2) FSharp.ViewModule.Core (1.0.5) FSharp.Core - FSharpLint.Core (0.4.10) + FSharpLint.Core (0.7.0-beta) FParsec (>= 1.0.2) - FSharp.Compiler.Service (>= 8.0) - FSharp.Compiler.Service.ProjectCracker (>= 8.0) + FSharp.Compiler.Service (>= 10.0.1) + FSharp.Compiler.Service.ProjectCracker (>= 10.0.1) FsPickler (3.2) FsXaml.Wpf (3.1.2) - Microsoft.NETCore.Platforms (1.0.1) - framework: >= netstandard10 - Microsoft.NETCore.Targets (1.0.1) - framework: >= netstandard10 - runtime.native.System (4.0) - framework: >= netstandard13 - Microsoft.NETCore.Platforms (>= 1.0.1) - Microsoft.NETCore.Targets (>= 1.0.1) - runtime.native.System.IO.Compression (4.1) - framework: >= netstandard13 - Microsoft.NETCore.Platforms (>= 1.0.1) - Microsoft.NETCore.Targets (>= 1.0.1) + Microsoft.Build (14.3) - framework: >= net463 + Microsoft.Build.Framework (14.3) - framework: >= net45 + Microsoft.Build.Framework (14.3) + System.Collections (>= 4.0.11) - framework: >= net46 + System.Runtime (>= 4.1) - framework: >= net46 + System.Runtime.InteropServices (>= 4.1) - framework: >= net46 + Microsoft.Build.Tasks.Core (14.3) - framework: >= net463 + Microsoft.Build.Framework (14.3) - framework: >= net45 + Microsoft.Build.Utilities.Core (14.3) - framework: >= net45 + Microsoft.Build.Utilities.Core (14.3) + Microsoft.Build.Framework (14.3) - framework: >= net45 + Microsoft.FSharp.Core.netcore (1.0.0-rc-170122) - framework: >= net463 + System.Collections (>= 4.0.11) + System.Console (>= 4.0) + System.Diagnostics.Debug (>= 4.0.11) + System.Diagnostics.Tools (>= 4.0.1) + System.Globalization (>= 4.0.11) + System.IO (>= 4.1) + System.Linq (>= 4.1) + System.Linq.Expressions (>= 4.1) + System.Linq.Queryable (>= 4.0.1) + System.Net.Requests (>= 4.0.11) + System.Reflection (>= 4.1) + System.Reflection.Extensions (>= 4.0.1) + System.Resources.ResourceManager (>= 4.0.1) + System.Runtime (>= 4.1) + System.Runtime.Extensions (>= 4.1) + System.Runtime.Numerics (>= 4.0.1) + System.Text.RegularExpressions (>= 4.1) + System.Threading (>= 4.0.11) + System.Threading.Tasks (>= 4.0.11) + System.Threading.Tasks.Parallel (>= 4.0.1) + System.Threading.Thread (>= 4.0) + System.Threading.ThreadPool (>= 4.0.10) + System.Threading.Timer (>= 4.0.1) SourceLink.SymbolStore (0.5) - System.Collections (4.0.11) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard13 + System.Collections (4.3) System.Collections.Immutable (1.2) - System.Collections (>= 4.0.11) - framework: >= netstandard10 - System.Diagnostics.Debug (>= 4.0.11) - framework: >= netstandard10 - System.Globalization (>= 4.0.11) - framework: >= netstandard10 - System.Linq (>= 4.1) - framework: >= netstandard10 - System.Resources.ResourceManager (>= 4.0.1) - framework: >= netstandard10 - System.Runtime (>= 4.1) - framework: >= netstandard10 - System.Runtime.Extensions (>= 4.1) - framework: >= netstandard10 - System.Threading (>= 4.0.11) - framework: >= netstandard10 - System.Diagnostics.Debug (4.0.11) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Globalization (4.0.11) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.IO (4.1) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Text.Encoding (>= 4.0.11) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Threading.Tasks (>= 4.0.11) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.IO.Compression (4.1) - framework: >= netstandard11 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: >= netstandard13 - runtime.native.System (>= 4.0) - framework: >= netstandard13 - runtime.native.System.IO.Compression (>= 4.1) - framework: >= netstandard13 - System.Collections (>= 4.0.11) - framework: >= netstandard13 - System.Diagnostics.Debug (>= 4.0.11) - framework: >= netstandard13 - System.IO (>= 4.1) - framework: dnxcore50, netstandard11, >= netstandard13 - System.Resources.ResourceManager (>= 4.0.1) - framework: >= netstandard13 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard11, >= netstandard13 - System.Runtime.Extensions (>= 4.1) - framework: >= netstandard13 - System.Runtime.Handles (>= 4.0.1) - framework: >= netstandard13 - System.Runtime.InteropServices (>= 4.1) - framework: >= netstandard13 - System.Text.Encoding (>= 4.0.11) - framework: dnxcore50, netstandard11, >= netstandard13 - System.Threading (>= 4.0.11) - framework: >= netstandard13 - System.Threading.Tasks (>= 4.0.11) - framework: dnxcore50, >= netstandard13 - System.Linq (4.1) - framework: >= netstandard10 - System.Collections (>= 4.0.11) - framework: dnxcore50, netstandard10, >= netstandard16 - System.Diagnostics.Debug (>= 4.0.11) - framework: dnxcore50, >= netstandard16 - System.Resources.ResourceManager (>= 4.0.1) - framework: dnxcore50, >= netstandard16 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard16 - System.Runtime.Extensions (>= 4.1) - framework: dnxcore50, >= netstandard16 - System.Reflection (4.1) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.IO (>= 4.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Reflection.Primitives (>= 4.0.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Reflection.Extensions (4.0.1) - framework: >= netstandard11 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, >= netstandard10 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, >= netstandard10 - System.Reflection (>= 4.1) - framework: dnxcore50, >= netstandard10 - System.Runtime (>= 4.1) - framework: dnxcore50, >= netstandard10 + System.Console (4.3) - framework: >= net463 + System.Diagnostics.Debug (4.3) - framework: >= net463 + System.Diagnostics.Tools (4.3) - framework: >= net463 + System.Globalization (4.3) - framework: >= net463 + System.IO (4.3) - framework: >= net463 + System.Linq (4.3) - framework: >= net463 + System.Linq.Expressions (4.3) - framework: >= net463 + System.Linq.Queryable (4.3) - framework: >= net463 + System.Net.Requests (4.3) - framework: >= net463 + System.Reflection (4.3) - framework: >= net463 + System.Reflection.Extensions (4.3) - framework: >= net463 System.Reflection.Metadata (1.4.1-beta-24430-01) - System.Collections (>= 4.0.11) - framework: >= netstandard11 - System.Collections.Immutable (>= 1.1.37) - framework: portable-net45+win8 - System.Collections.Immutable (>= 1.2) - framework: >= net45, >= netstandard11, monoandroid, monotouch, xamarinios, xamarinmac, winv4.5, wpav8.1 - System.Diagnostics.Debug (>= 4.0.11) - framework: >= netstandard11 - System.IO (>= 4.1) - framework: >= netstandard11 - System.IO.Compression (>= 4.1) - framework: >= netstandard11 - System.Linq (>= 4.1) - framework: >= netstandard11 - System.Reflection (>= 4.1) - framework: >= netstandard11 - System.Reflection.Extensions (>= 4.0.1) - framework: >= netstandard11 - System.Reflection.Primitives (>= 4.0.1) - framework: >= netstandard11 - System.Resources.ResourceManager (>= 4.0.1) - framework: >= netstandard11 - System.Runtime (>= 4.1) - framework: >= netstandard11 - System.Runtime.Extensions (>= 4.1) - framework: >= netstandard11 - System.Runtime.InteropServices (>= 4.1) - framework: >= netstandard11 - System.Text.Encoding (>= 4.0.11) - framework: >= netstandard11 - System.Text.Encoding.Extensions (>= 4.0.11) - framework: >= netstandard11 - System.Threading (>= 4.0.11) - framework: >= netstandard11 - System.Reflection.Primitives (4.0.1) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, >= netstandard10 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, >= netstandard10 - System.Runtime (>= 4.1) - framework: dnxcore50, >= netstandard10 - System.Resources.ResourceManager (4.0.1) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, >= netstandard10 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, >= netstandard10 - System.Globalization (>= 4.0.11) - framework: dnxcore50, >= netstandard10 - System.Reflection (>= 4.1) - framework: dnxcore50, >= netstandard10 - System.Runtime (>= 4.1) - framework: dnxcore50, >= netstandard10 - System.Runtime (4.1) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard12, netstandard13, >= netstandard15 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard12, netstandard13, >= netstandard15 - System.Runtime.Extensions (4.1) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, netstandard13, >= netstandard15 - System.Runtime.Handles (4.0.1) - framework: >= netstandard13 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: >= netstandard13 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: >= netstandard13 - System.Runtime (>= 4.1) - framework: >= netstandard13 - System.Runtime.InteropServices (4.1) - framework: >= netstandard11 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard11, netstandard12, netstandard13, >= netstandard15 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard11, netstandard12, netstandard13, >= netstandard15 - System.Reflection (>= 4.1) - framework: dnxcore50, netstandard11, netstandard12, netstandard13, >= netstandard15 - System.Reflection.Primitives (>= 4.0.1) - framework: dnxcore50, netstandard11, netstandard12, netstandard13, >= netstandard15 - System.Runtime (>= 4.1) - framework: >= net462, dnxcore50, netstandard11, netstandard12, netstandard13, >= netstandard15 - System.Runtime.Handles (>= 4.0.1) - framework: dnxcore50, netstandard13, >= netstandard15 - System.Text.Encoding (4.0.11) - framework: >= netstandard10 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Text.Encoding.Extensions (4.0.11) - framework: >= netstandard11 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Text.Encoding (>= 4.0.11) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Threading (4.0.11) - framework: >= netstandard10 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Threading.Tasks (>= 4.0.11) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Threading.Tasks (4.0.11) - framework: netstandard10, >= netstandard13 - Microsoft.NETCore.Platforms (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - Microsoft.NETCore.Targets (>= 1.0.1) - framework: dnxcore50, netstandard10, >= netstandard13 - System.Runtime (>= 4.1) - framework: dnxcore50, netstandard10, >= netstandard13 - Zlib.Portable (1.11) - framework: >= netstandard11, portable-net45+sl5+win8, portable-net45+win8, portable-net45+win8+wp8+wpa81 + System.Collections.Immutable (>= 1.2) - framework: >= net45 + System.Resources.ResourceManager (4.3) - framework: >= net463 + System.Runtime (4.3) + System.Runtime.Extensions (4.3) - framework: >= net463 + System.Runtime.InteropServices (4.3) + System.Runtime (>= 4.3) - framework: >= net462 + System.Runtime.Numerics (4.3) - framework: >= net463 + System.Runtime.Serialization.Json (4.3) - framework: >= net463 + System.Text.RegularExpressions (4.3) - framework: >= net463 + System.Threading (4.3) - framework: >= net463 + System.Threading.Tasks (4.3) - framework: >= net463 + System.Threading.Tasks.Parallel (4.3) - framework: >= net463 + System.Threading.Thread (4.3) - framework: >= net463 + System.Threading.ThreadPool (4.3) - framework: >= net463 + System.Threading.Timer (4.3) - framework: >= net463 GROUP Build +FRAMEWORK: >= NET40 NUGET remote: http://www.nuget.org/api/v2 - canopy (0.9.62) + canopy (1.1.4) FSharp.Core (>= 3.0.2) - Selenium.WebDriver (2.53.1) - FAKE (4.41.8) + Selenium.WebDriver (3.0) + FAKE (4.50.1) FSharp.Compiler.Service (2.0.0.6) FSharp.Core (4.0.0.1) FSharp.Formatting (2.14.4) @@ -167,28 +109,28 @@ NUGET FSharpVSPowerTools.Core (>= 2.3 < 2.4) FSharpVSPowerTools.Core (2.3) FSharp.Compiler.Service (>= 2.0.0.3) - Microsoft.Bcl (1.1.10) - framework: net10, net11, net20, net30, net35, net40, net40-full + Microsoft.Bcl (1.1.10) - framework: net40, net40-full Microsoft.Bcl.Build (>= 1.0.14) - Microsoft.Bcl.Build (1.0.21) - import_targets: false, framework: net10, net11, net20, net30, net35, net40, net40-full - Microsoft.Net.Http (2.2.29) - framework: net10, net11, net20, net30, net35, net40, net40-full + Microsoft.Bcl.Build (1.0.21) - import_targets: false + Microsoft.Net.Http (2.2.29) - framework: net40, net40-full Microsoft.Bcl (>= 1.1.10) Microsoft.Bcl.Build (>= 1.0.14) - NuGet.CommandLine (3.4.3) + NuGet.CommandLine (3.5) Octokit (0.23) - Microsoft.Net.Http - framework: net10, net11, net20, net30, net35, net40, net40-full - Selenium.WebDriver (2.53.1) - Selenium.WebDriver.ChromeDriver (2.24) + Microsoft.Net.Http - framework: net40, net40-full + Selenium.WebDriver (3.0) + Selenium.WebDriver.ChromeDriver (2.27) GITHUB remote: fsharp/FAKE - modules/Octokit/Octokit.fsx (4e4428bfe931a5f720e32f9d69289d25eb16d467) + modules/Octokit/Octokit.fsx (33e702f6c220f3facaf41f20dae03a912eeebf9a) Octokit (>= 0.20) GROUP Test +FRAMEWORK: >= NET40 NUGET remote: http://www.nuget.org/api/v2 Foq (1.7.1) FsCheck (2.6.2) FSharp.Core (>= 3.1.2.5) - FSharp.Compiler.Service.ProjectCracker (8.0) FSharp.Core (4.0.0.1) NUnit (3.5) NUnit.ConsoleRunner (3.5) diff --git a/src/FSharp.Editing.VisualStudio.Tests.v2015/AssemblyInfo.fs b/src/FSharp.Editing.VisualStudio.Tests.v2015/AssemblyInfo.fs index acece3f8..43788198 100644 --- a/src/FSharp.Editing.VisualStudio.Tests.v2015/AssemblyInfo.fs +++ b/src/FSharp.Editing.VisualStudio.Tests.v2015/AssemblyInfo.fs @@ -7,8 +7,8 @@ open System.Runtime.CompilerServices [] [] [] -[] -[] +[] +[] do () module internal AssemblyVersionInformation = @@ -16,5 +16,5 @@ module internal AssemblyVersionInformation = let [] AssemblyTitle = "FSharp.Editing.VisualStudio.v2015" let [] AssemblyProduct = "FSharpVSPowerTools" let [] AssemblyDescription = "A collection of additional commands for F# in Visual Studio" - let [] AssemblyVersion = "2.5.6" - let [] AssemblyFileVersion = "2.5.6" + let [] AssemblyVersion = "2.5.7" + let [] AssemblyFileVersion = "2.5.7" diff --git a/src/FSharp.Editing.VisualStudio.v2015/FSharp.Editing.VisualStudio.v2015.fsproj b/src/FSharp.Editing.VisualStudio.v2015/FSharp.Editing.VisualStudio.v2015.fsproj index 174a8e1b..da1dde89 100644 --- a/src/FSharp.Editing.VisualStudio.v2015/FSharp.Editing.VisualStudio.v2015.fsproj +++ b/src/FSharp.Editing.VisualStudio.v2015/FSharp.Editing.VisualStudio.v2015.fsproj @@ -93,29 +93,20 @@ - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll - True - True - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll True True - - - - - - - - ..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll True True + + @@ -125,54 +116,9 @@ - - - - ..\..\packages\FSharp.Core\lib\portable-net45+monoandroid10+monotouch10+xamarinios10\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll - True - True - - - - + ..\..\packages\FSharp.ViewModule.Core\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\FSharp.ViewModule.dll @@ -185,16 +131,6 @@ - - ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.TypeProvider.dll - True - True - - - ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.dll - True - True - True @@ -210,31 +146,21 @@ True - - - - - - - - ..\..\packages\System.Collections\ref\netstandard1.0\System.Collections.dll - False + + ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.dll + True True - - - - - - ..\..\packages\System.Collections\ref\netstandard1.3\System.Collections.dll - False + + ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.TypeProvider.dll + True True - + ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll @@ -243,167 +169,9 @@ - - - - ..\..\packages\System.Collections.Immutable\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - True - True - - - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.0\System.Diagnostics.Debug.dll - False - True - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.3\System.Diagnostics.Debug.dll - False - True - - - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.0\System.Globalization.dll - False - True - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.3\System.Globalization.dll - False - True - - - - - - - - - ..\..\packages\System.IO\ref\netstandard1.0\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.3\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.5\System.IO.dll - False - True - - - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.1\System.IO.Compression.dll - False - True - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.3\System.IO.Compression.dll - False - True - - - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.0\System.Linq.dll - False - True - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.6\System.Linq.dll - False - True - - - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.0\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.3\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.5\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection.Extensions\ref\netstandard1.0\System.Reflection.Extensions.dll - False - True - - - - - - + ..\..\packages\System.Reflection.Metadata\lib\netstandard1.1\System.Reflection.Metadata.dll @@ -412,233 +180,6 @@ - - - - ..\..\packages\System.Reflection.Metadata\lib\portable-net45+win8\System.Reflection.Metadata.dll - True - True - - - - - - - - - ..\..\packages\System.Reflection.Primitives\ref\netstandard1.0\System.Reflection.Primitives.dll - False - True - - - - - - - - - ..\..\packages\System.Resources.ResourceManager\ref\netstandard1.0\System.Resources.ResourceManager.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.0\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.2\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.3\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.5\System.Runtime.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.0\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.3\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.5\System.Runtime.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Handles\ref\netstandard1.3\System.Runtime.Handles.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.1\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.2\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.3\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.5\System.Runtime.InteropServices.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.0\System.Text.Encoding.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.3\System.Text.Encoding.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.0\System.Text.Encoding.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.3\System.Text.Encoding.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.0\System.Threading.dll - False - True - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.3\System.Threading.dll - False - True - - - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.0\System.Threading.Tasks.dll - False - True - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.3\System.Threading.Tasks.dll - False - True - - - diff --git a/src/FSharp.Editing.VisualStudio/AssemblyInfo.fs b/src/FSharp.Editing.VisualStudio/AssemblyInfo.fs index 5fb9e2ab..b5d28268 100644 --- a/src/FSharp.Editing.VisualStudio/AssemblyInfo.fs +++ b/src/FSharp.Editing.VisualStudio/AssemblyInfo.fs @@ -7,8 +7,8 @@ open System.Runtime.CompilerServices [] [] [] -[] -[] +[] +[] do () module internal AssemblyVersionInformation = @@ -16,5 +16,5 @@ module internal AssemblyVersionInformation = let [] AssemblyTitle = "FSharp.Editing.VisualStudio" let [] AssemblyProduct = "FSharpVSPowerTools" let [] AssemblyDescription = "A collection of additional commands for F# in Visual Studio" - let [] AssemblyVersion = "2.5.6" - let [] AssemblyFileVersion = "2.5.6" + let [] AssemblyVersion = "2.5.7" + let [] AssemblyFileVersion = "2.5.7" diff --git a/src/FSharp.Editing.VisualStudio/Coloring/UnusedSymbolClassifier.fs b/src/FSharp.Editing.VisualStudio/Coloring/UnusedSymbolClassifier.fs index 76ceee33..68412ed1 100644 --- a/src/FSharp.Editing.VisualStudio/Coloring/UnusedSymbolClassifier.fs +++ b/src/FSharp.Editing.VisualStudio/Coloring/UnusedSymbolClassifier.fs @@ -256,7 +256,7 @@ type UnusedSymbolClassifier let projectCheckedSubscription = // project check results needed for Unused Declarations only. if includeUnusedReferences() then - Some (vsLanguageService.RawChecker.ProjectChecked.Subscribe (fun projectFileName -> + Some (vsLanguageService.RawChecker.ProjectChecked.Subscribe (fun (projectFileName, _extraProjectInfo) -> let projects = singleSymbolsProjects.Value let projects = match projects |> List.partition (fun p -> p.Options.ProjectFileName = projectFileName) with diff --git a/src/FSharp.Editing.VisualStudio/FSharp.Editing.VisualStudio.fsproj b/src/FSharp.Editing.VisualStudio/FSharp.Editing.VisualStudio.fsproj index b4f673b6..90eef018 100644 --- a/src/FSharp.Editing.VisualStudio/FSharp.Editing.VisualStudio.fsproj +++ b/src/FSharp.Editing.VisualStudio/FSharp.Editing.VisualStudio.fsproj @@ -68,6 +68,12 @@ + + True + + + True + @@ -183,37 +189,27 @@ --> - - - ..\..\packages\Fantomas\lib\FantomasLib.dll - True - True - - - - ..\..\packages\FParsec\lib\net40-client\FParsec.dll - True - True - - - ..\..\packages\FParsec\lib\net40-client\FParsecCS.dll + + ..\..\packages\Fantomas\lib\FantomasLib.dll True True - + + + - ..\..\packages\FParsec\lib\portable-net45+netcore45+wpa81+wp8\FParsec.dll + ..\..\packages\FParsec\lib\net40-client\FParsec.dll True True - ..\..\packages\FParsec\lib\portable-net45+netcore45+wpa81+wp8\FParsecCS.dll + ..\..\packages\FParsec\lib\net40-client\FParsecCS.dll True True @@ -223,13 +219,13 @@ - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll True True - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll True True @@ -248,15 +244,6 @@ - - - - ..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll - True - True - - - @@ -266,54 +253,9 @@ - - - - ..\..\packages\FSharp.Core\lib\portable-net45+monoandroid10+monotouch10+xamarinios10\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll - True - True - - - - + ..\..\packages\FSharp.ViewModule.Core\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\FSharp.ViewModule.dll @@ -335,65 +277,40 @@ - + - - ..\..\packages\FsPickler\lib\net35\FsPickler.dll - True - True - True True - - - - ..\..\packages\FsPickler\lib\net40\FsPickler.dll True True + + + + True True - - - - ..\..\packages\FsPickler\lib\net45\FsPickler.dll True True - - True - - - True - - - ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.TypeProvider.dll - True - True - - - ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.dll - True - True - True @@ -406,19 +323,13 @@ True - - - - - - - - ..\..\packages\SourceLink.SymbolStore\lib\net45\SourceLink.SymbolStore.CorSym.dll + + ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.dll True True - - ..\..\packages\SourceLink.SymbolStore\lib\net45\SourceLink.SymbolStore.dll + + ..\..\packages\FsXaml.Wpf\lib\net45\FsXaml.Wpf.TypeProvider.dll True True @@ -426,39 +337,21 @@ - - - - ..\..\packages\System.Collections\ref\netstandard1.0\System.Collections.dll - False - True - - - - + - - ..\..\packages\System.Collections\ref\netstandard1.3\System.Collections.dll - False + + ..\..\packages\Microsoft.Build\lib\net45\Microsoft.Build.dll + True True - - - - ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll - True - True - - - - + - - ..\..\packages\System.Collections.Immutable\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll + + ..\..\packages\Microsoft.Build.Framework\lib\net45\Microsoft.Build.Framework.dll True True @@ -466,168 +359,103 @@ - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.0\System.Diagnostics.Debug.dll - False - True - - - - + - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.3\System.Diagnostics.Debug.dll - False + + ..\..\packages\Microsoft.Build.Tasks.Core\lib\net45\Microsoft.Build.Tasks.Core.dll + True True - - - - ..\..\packages\System.Globalization\ref\netstandard1.0\System.Globalization.dll - False - True - - - - + - - ..\..\packages\System.Globalization\ref\netstandard1.3\System.Globalization.dll - False + + ..\..\packages\Microsoft.Build.Utilities.Core\lib\net45\Microsoft.Build.Utilities.Core.dll + True True - - - - ..\..\packages\System.IO\ref\netstandard1.0\System.IO.dll - False - True - - - - + - - ..\..\packages\System.IO\ref\netstandard1.3\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.5\System.IO.dll - False + + ..\..\packages\Microsoft.FSharp.Core.netcore\lib\netstandard1.6\FSharp.Core.dll + True True - + - - ..\..\packages\System.IO.Compression\ref\netstandard1.1\System.IO.Compression.dll - False + + ..\..\packages\SourceLink.SymbolStore\lib\net45\SourceLink.SymbolStore.dll + True True - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.3\System.IO.Compression.dll - False + + ..\..\packages\SourceLink.SymbolStore\lib\net45\SourceLink.SymbolStore.CorSym.dll + True True - - - - ..\..\packages\System.Linq\ref\netstandard1.0\System.Linq.dll - False - True - - - - + - - ..\..\packages\System.Linq\ref\netstandard1.6\System.Linq.dll - False + + ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll + True True - + - - ..\..\packages\System.Reflection\ref\netstandard1.0\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.3\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.5\System.Reflection.dll - False + + ..\..\packages\System.Console\lib\net46\System.Console.dll + True True - + - - ..\..\packages\System.Reflection.Extensions\ref\netstandard1.0\System.Reflection.Extensions.dll - False + + ..\..\packages\System.IO\lib\net462\System.IO.dll + True True - + - - ..\..\packages\System.Reflection.Metadata\lib\netstandard1.1\System.Reflection.Metadata.dll + + ..\..\packages\System.Linq\lib\net463\System.Linq.dll True True - + + + - - ..\..\packages\System.Reflection.Metadata\lib\portable-net45+win8\System.Reflection.Metadata.dll + + ..\..\packages\System.Linq.Expressions\lib\net463\System.Linq.Expressions.dll True True @@ -635,218 +463,97 @@ - + - - ..\..\packages\System.Reflection.Primitives\ref\netstandard1.0\System.Reflection.Primitives.dll - False + + ..\..\packages\System.Reflection\lib\net462\System.Reflection.dll + True True - + - - ..\..\packages\System.Resources.ResourceManager\ref\netstandard1.0\System.Resources.ResourceManager.dll - False + + ..\..\packages\System.Reflection.Metadata\lib\netstandard1.1\System.Reflection.Metadata.dll + True True - - - - ..\..\packages\System.Runtime\ref\netstandard1.0\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.2\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.3\System.Runtime.dll - False - True - - - - + - ..\..\packages\System.Runtime\ref\netstandard1.5\System.Runtime.dll - False + ..\..\packages\System.Runtime\lib\net462\System.Runtime.dll + True True - + - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.0\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.3\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.5\System.Runtime.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Handles\ref\netstandard1.3\System.Runtime.Handles.dll - False + ..\..\packages\System.Runtime.Extensions\lib\net462\System.Runtime.Extensions.dll + True True - + - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.1\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.2\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.3\System.Runtime.InteropServices.dll - False + ..\..\packages\System.Runtime.InteropServices\lib\net462\System.Runtime.InteropServices.dll + True True - + - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.5\System.Runtime.InteropServices.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.0\System.Text.Encoding.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.3\System.Text.Encoding.dll - False + ..\..\packages\System.Runtime.InteropServices\lib\net463\System.Runtime.InteropServices.dll + True True - + - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.0\System.Text.Encoding.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.3\System.Text.Encoding.Extensions.dll - False + + ..\..\packages\System.Text.RegularExpressions\lib\net463\System.Text.RegularExpressions.dll + True True - - - - ..\..\packages\System.Threading\ref\netstandard1.0\System.Threading.dll - False - True - - - - + - - ..\..\packages\System.Threading\ref\netstandard1.3\System.Threading.dll - False + + ..\..\packages\System.Threading.Thread\lib\net46\System.Threading.Thread.dll + True True - + - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.0\System.Threading.Tasks.dll - False - True - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.3\System.Threading.Tasks.dll - False + + ..\..\packages\System.Threading.ThreadPool\lib\net46\System.Threading.ThreadPool.dll + True True diff --git a/src/FSharp.Editing.VisualStudio/Linting/LintUtils.fs b/src/FSharp.Editing.VisualStudio/Linting/LintUtils.fs index 4e9d1955..79269f75 100644 --- a/src/FSharp.Editing.VisualStudio/Linting/LintUtils.fs +++ b/src/FSharp.Editing.VisualStudio/Linting/LintUtils.fs @@ -97,9 +97,8 @@ module LintUtils = let private settingFromObject (settingObj:obj) = match settingObj with - | :? BoolViewModel as x -> + | :? BoolViewModel as x -> match x.Name with - | "IncludeMatchStatements" -> Some(x.Name, IncludeMatchStatements(x.IsChecked)) | "OneSpaceAllowedAfterOperator" -> Some(x.Name, OneSpaceAllowedAfterOperator(x.IsChecked)) | "IgnoreBlankLines" -> Some(x.Name, IgnoreBlankLines(x.IsChecked)) | _ -> None @@ -109,7 +108,6 @@ module LintUtils = | "Depth" -> Some(x.Name, Depth(x.Value)) | "MaxItems" -> Some(x.Name, MaxItems(x.Value)) | "Length" -> Some(x.Name, Length(x.Value)) - | "MaxCyclomaticComplexity" -> Some(x.Name, MaxCyclomaticComplexity(x.Value)) | "NumberOfSpacesAllowed" -> Some(x.Name, NumberOfSpacesAllowed(x.Value)) | _ -> None | :? AccessViewModel as x -> Some(x.Name, Access(x.Value)) @@ -145,8 +143,7 @@ module LintUtils = ("Hints", analyser) let viewModelToConfig (viewModel:OptionsViewModel) = - { UseTypeChecker = None - IgnoreFiles = + { IgnoreFiles = { Update = IgnoreFilesUpdate.Overwrite Files = [] Content = viewModel.IgnoreFiles.IgnoreFiles @@ -168,8 +165,7 @@ module LintUtils = let existingPartial = getPartialConfig loadedConfigs normalisedDir |> Option.getOrTry (fun _ -> - { UseTypeChecker = None - IgnoreFiles = None + { IgnoreFiles = None Analysers = Map.ofList [] }) let updatedPartial = updateConfigMap config existing existingPartial diff --git a/src/FSharp.Editing.VisualStudio/Linting/OptionsViewModel.fs b/src/FSharp.Editing.VisualStudio/Linting/OptionsViewModel.fs index 43fe7314..bf0d897c 100644 --- a/src/FSharp.Editing.VisualStudio/Linting/OptionsViewModel.fs +++ b/src/FSharp.Editing.VisualStudio/Linting/OptionsViewModel.fs @@ -110,6 +110,7 @@ type AccessViewModel(name, initialValue) as this = member __.AccessValues = Enum.GetValues(typeof) |> Seq.cast module SetupViewModels = + let getSettingsViewModelsFromRule (settings:Map<_, _>) = [ for setting in settings do match setting.Value with @@ -121,10 +122,6 @@ module SetupViewModels = yield IntViewModel("MaxItems", value) :> obj | Length(value) -> yield IntViewModel("Length", value) :> obj - | MaxCyclomaticComplexity(value) -> - yield IntViewModel("MaxCyclomaticComplexity", value) :> obj - | IncludeMatchStatements(value) -> - yield BoolViewModel("IncludeMatchStatements", value) :> obj | OneSpaceAllowedAfterOperator(value) -> yield BoolViewModel("OneSpaceAllowedAfterOperator", value) :> obj | NumberOfSpacesAllowed(value) -> @@ -133,8 +130,15 @@ module SetupViewModels = yield BoolViewModel("IgnoreBlankLines", value) :> obj | Access(value) -> yield AccessViewModel("Access", value) :> obj + | Prefix(_) + | Suffix(_) + | Underscores(_) + | Naming(_) | Hints(_) - | Enabled(_) -> () ] + | Enabled(_) -> + // those are unhandled settings + // up-for-grabs + () ] let isRuleEnabled settings = Map.tryFind "Enabled" settings = Some(Enabled(true)) diff --git a/src/FSharp.Editing.VisualStudio/ProjectSystem/VSLanguageService.fs b/src/FSharp.Editing.VisualStudio/ProjectSystem/VSLanguageService.fs index c3ccf980..d0c6ebcc 100644 --- a/src/FSharp.Editing.VisualStudio/ProjectSystem/VSLanguageService.fs +++ b/src/FSharp.Editing.VisualStudio/ProjectSystem/VSLanguageService.fs @@ -63,9 +63,8 @@ type VSLanguageService let statusBar = serviceProvider.GetService() statusBar.SetText Resource.languageServiceErrorMessage |> ignore - do instance.SetCriticalErrorHandler suggestRecoveryAfterFailure - openDocumentsTracker.DocumentChanged.Add instance.OnFileChanged - openDocumentsTracker.DocumentClosed.Add instance.OnFileClosed + do + instance.SetCriticalErrorHandler suggestRecoveryAfterFailure let mutable skipLexCache = false diff --git a/src/FSharp.Editing/AssemblyInfo.fs b/src/FSharp.Editing/AssemblyInfo.fs index f09b39c2..d2fca6dd 100644 --- a/src/FSharp.Editing/AssemblyInfo.fs +++ b/src/FSharp.Editing/AssemblyInfo.fs @@ -7,8 +7,8 @@ open System.Runtime.CompilerServices [] [] [] -[] -[] +[] +[] do () module internal AssemblyVersionInformation = @@ -16,5 +16,5 @@ module internal AssemblyVersionInformation = let [] AssemblyTitle = "FSharp.Editing" let [] AssemblyProduct = "FSharpVSPowerTools" let [] AssemblyDescription = "A collection of additional commands for F# in Visual Studio" - let [] AssemblyVersion = "2.5.6" - let [] AssemblyFileVersion = "2.5.6" + let [] AssemblyVersion = "2.5.7" + let [] AssemblyFileVersion = "2.5.7" diff --git a/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs b/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs index 86b6a7f0..6031abd2 100644 --- a/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs +++ b/src/FSharp.Editing/Coloring/PrintfSpecifiersUsageGetter.fs @@ -22,7 +22,7 @@ let getAll (input: ParseAndCheckResults) (onError: string -> unit): PrintfSpecif let specRangesAndArities = specRangesAndArities |> Array.map (fun (x, ar) -> - (Range.mkRange x.FileName x.Start (Range.mkPos x.EndLine (x.EndColumn + 1))), ar) + (Range.mkRange x.FileName x.Start (Range.mkPos x.EndLine (x.EndColumn))), ar) let printfFunctions = Printf.getAll input.ParseTree diff --git a/src/FSharp.Editing/Common/Lexer.fs b/src/FSharp.Editing/Common/Lexer.fs index 7b1a9efa..a1b96afd 100644 --- a/src/FSharp.Editing/Common/Lexer.fs +++ b/src/FSharp.Editing/Common/Lexer.fs @@ -48,7 +48,7 @@ module Lexer = | Some _, newLexState -> loop lineTokenizer newLexState - let sourceTokenizer = SourceTokenizer(defines, Some "/tmp.fsx") + let sourceTokenizer = FSharpSourceTokenizer(defines, Some "/tmp.fsx") let lines = String.getLines source let lexState = ref 0L for line in lines do @@ -81,7 +81,7 @@ module Lexer = let defines = args |> Seq.choose (fun s -> if s.StartsWith "--define:" then Some s.[9..] else None) |> Seq.toList - let sourceTokenizer = SourceTokenizer(defines, Some "/tmp.fsx") + let sourceTokenizer = FSharpSourceTokenizer(defines, Some "/tmp.fsx") let lineTokenizer = sourceTokenizer.CreateLineTokenizer lineStr let rec loop lexState acc = match lineTokenizer.ScanToken lexState with diff --git a/src/FSharp.Editing/FSharp.Editing.fsproj b/src/FSharp.Editing/FSharp.Editing.fsproj index 19ca5465..c33470b6 100644 --- a/src/FSharp.Editing/FSharp.Editing.fsproj +++ b/src/FSharp.Editing/FSharp.Editing.fsproj @@ -107,29 +107,20 @@ - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll - True - True - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll True True - - - - - - - - ..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll True True + + @@ -139,74 +130,9 @@ - - - - ..\..\packages\FSharp.Core\lib\portable-net45+monoandroid10+monotouch10+xamarinios10\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\System.Collections\ref\netstandard1.0\System.Collections.dll - False - True - - - - - - - ..\..\packages\System.Collections\ref\netstandard1.3\System.Collections.dll - False - True - - - - - - + ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll @@ -215,167 +141,9 @@ - - - - ..\..\packages\System.Collections.Immutable\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - True - True - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.0\System.Diagnostics.Debug.dll - False - True - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.3\System.Diagnostics.Debug.dll - False - True - - - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.0\System.Globalization.dll - False - True - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.3\System.Globalization.dll - False - True - - - - - - - - - ..\..\packages\System.IO\ref\netstandard1.0\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.3\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.5\System.IO.dll - False - True - - - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.1\System.IO.Compression.dll - False - True - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.3\System.IO.Compression.dll - False - True - - - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.0\System.Linq.dll - False - True - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.6\System.Linq.dll - False - True - - - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.0\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.3\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.5\System.Reflection.dll - False - True - - - - - - - - - ..\..\packages\System.Reflection.Extensions\ref\netstandard1.0\System.Reflection.Extensions.dll - False - True - - - - - - + ..\..\packages\System.Reflection.Metadata\lib\netstandard1.1\System.Reflection.Metadata.dll @@ -384,232 +152,5 @@ - - - - ..\..\packages\System.Reflection.Metadata\lib\portable-net45+win8\System.Reflection.Metadata.dll - True - True - - - - - - - - - ..\..\packages\System.Reflection.Primitives\ref\netstandard1.0\System.Reflection.Primitives.dll - False - True - - - - - - - - - ..\..\packages\System.Resources.ResourceManager\ref\netstandard1.0\System.Resources.ResourceManager.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.0\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.2\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.3\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.5\System.Runtime.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.0\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.3\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.5\System.Runtime.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Handles\ref\netstandard1.3\System.Runtime.Handles.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.1\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.2\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.3\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.5\System.Runtime.InteropServices.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.0\System.Text.Encoding.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.3\System.Text.Encoding.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.0\System.Text.Encoding.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.3\System.Text.Encoding.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.0\System.Threading.dll - False - True - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.3\System.Threading.dll - False - True - - - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.0\System.Threading.Tasks.dll - False - True - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.3\System.Threading.Tasks.dll - False - True - - - \ No newline at end of file diff --git a/src/FSharp.Editing/ProjectSystem/LanguageService.fs b/src/FSharp.Editing/ProjectSystem/LanguageService.fs index 93796863..15d4d091 100644 --- a/src/FSharp.Editing/ProjectSystem/LanguageService.fs +++ b/src/FSharp.Editing/ProjectSystem/LanguageService.fs @@ -147,34 +147,19 @@ type LanguageService (?backgroundCompilation: bool, ?projectCacheSize: int, ?fil | _ -> Environment.ExpandEnvironmentVariables "%HOMEDRIVE%%HOMEPATH%" Path.GetFileName path - let files = ConcurrentDictionary() - - let isResultObsolete fileName = - match files.TryGetValue fileName with - | true, Cancelled -> true - | _ -> false - let parseAndCheckFileInProject(filePath, source, options) = async { debug "[LanguageService] ParseAndCheckFileInProject - enter" let fixedFilePath = fixFileName filePath let! res = Async.Catch (checkerAsync <| fun x -> async { - try - // wait until the previous checking completed - while files.ContainsKey filePath && - (not (files.TryUpdate (filePath, BeingChecked, Checked) - || files.TryUpdate (filePath, BeingChecked, NeedChecking))) do - do! Async.Sleep 20 - debug "[LanguageService] Change state for %s to `BeingChecked`" filePath debug "[LanguageService] Parse and typecheck source..." - return! x.ParseAndCheckFileInProject (fixedFilePath, 0, source, options, - IsResultObsolete (fun _ -> isResultObsolete filePath), null) - finally - if files.TryUpdate (filePath, Checked, BeingChecked) then - debug "[LanguageService] %s: BeingChecked => Checked" filePath - elif files.TryUpdate (filePath, Checked, Cancelled) then - debug "[LanguageService] %s: Cancelled => Checked" filePath }) + return! x.ParseAndCheckFileInProject ( + filename = fixedFilePath + , fileversion = 0 + , source = source + , options = options + ) }) debug "[LanguageService]: Parse completed" // Construct new typed parse result if the task succeeded @@ -197,20 +182,6 @@ type LanguageService (?backgroundCompilation: bool, ?projectCacheSize: int, ?fil return results } - member __.OnFileChanged filePath = - files.AddOrUpdate (filePath, NeedChecking, (fun _ oldState -> - match oldState with - | BeingChecked -> Cancelled - | Cancelled -> Cancelled - | NeedChecking -> NeedChecking - | Checked -> NeedChecking)) - |> debug "[LanguageService] %s changed: set status to %A" filePath - - member __.OnFileClosed filePath = - match files.TryRemove filePath with - | true, _ -> debug "[LanguageService] %s was removed from `files` dictionary" filePath - | _ -> () - /// Constructs options for the interactive checker for the given file in the project under the given configuration. member x.GetCheckerOptions(fileName, projFilename, source, files, args, referencedProjects, fscVersion) = let ext = Path.GetExtension(fileName) @@ -276,7 +247,9 @@ type LanguageService (?backgroundCompilation: bool, ?projectCacheSize: int, ?fil UseScriptResolutionRules = false LoadTime = fakeDateTimeRepresentingTimeLoaded projFilename UnresolvedReferences = None - ReferencedProjects = referencedProjects } + ReferencedProjects = referencedProjects + OriginalLoadReferences = List.empty + ExtraProjectInfo = None } debug "GetProjectCheckerOptions: ProjectFileName: %s, ProjectFileNames: %A, FSharpProjectOptions: %A, IsIncompleteTypeCheckEnvironment: %A, UseScriptResolutionRules: %A, ReferencedProjects: %A" opts.ProjectFileName opts.ProjectFileNames opts.OtherOptions opts.IsIncompleteTypeCheckEnvironment opts.UseScriptResolutionRules opts.ReferencedProjects opts diff --git a/src/FSharp.Editing/Symbols/SourceCodeClassifier.fs b/src/FSharp.Editing/Symbols/SourceCodeClassifier.fs index 0a84f0dd..19b5f8e3 100644 --- a/src/FSharp.Editing/Symbols/SourceCodeClassifier.fs +++ b/src/FSharp.Editing/Symbols/SourceCodeClassifier.fs @@ -345,7 +345,7 @@ module SourceCodeClassifier = { SymbolKind = SymbolKind.Other Line = r.StartLine StartCol = r.StartColumn - EndCol = r.EndColumn + 1 }})) + EndCol = r.EndColumn }})) |> Option.getOrElse [||] spansBasedOnSymbolsUses diff --git a/src/FSharp.Editing/TaskListCommentExtractor.fs b/src/FSharp.Editing/TaskListCommentExtractor.fs index c1fae426..bac63d46 100644 --- a/src/FSharp.Editing/TaskListCommentExtractor.fs +++ b/src/FSharp.Editing/TaskListCommentExtractor.fs @@ -29,7 +29,7 @@ module private Utils = member x.Text(lines: string[], lineNumber: int) = lines.[lineNumber].Substring(x.LeftColumn, x.FullMatchedLength) - let sourceTok = SourceTokenizer([], Some "/tmp.fsx") + let sourceTok = FSharpSourceTokenizer([], Some "/tmp.fsx") let createNewLineTokenizer (lines: string[]) (lineNumber: int) = let nextLine = diff --git a/src/FSharpVSPowerTools/FSharpVSPowerTools.csproj b/src/FSharpVSPowerTools/FSharpVSPowerTools.csproj index 18f20cf5..b4fcb694 100644 --- a/src/FSharpVSPowerTools/FSharpVSPowerTools.csproj +++ b/src/FSharpVSPowerTools/FSharpVSPowerTools.csproj @@ -261,23 +261,11 @@ --> - - - ..\..\packages\Fantomas\lib\FantomasLib.dll - True - True - - - + - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll - True - True - - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll + + ..\..\packages\Fantomas\lib\FantomasLib.dll True True @@ -285,64 +273,15 @@ - - - - ..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\net40\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+monoandroid10+monotouch10+xamarinios10\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll - True - True - - - - + - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll True True - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll True True @@ -350,27 +289,18 @@ - - - - ..\..\packages\System.Collections\ref\netstandard1.0\System.Collections.dll - False - True - - - - + - - ..\..\packages\System.Collections\ref\netstandard1.3\System.Collections.dll - False + + ..\..\packages\FSharp.Core\lib\net40\FSharp.Core.dll + True True - + ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll @@ -379,167 +309,9 @@ - - - - ..\..\packages\System.Collections.Immutable\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - True - True - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.0\System.Diagnostics.Debug.dll - False - True - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.3\System.Diagnostics.Debug.dll - False - True - - - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.0\System.Globalization.dll - False - True - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.3\System.Globalization.dll - False - True - - - - - - - - - ..\..\packages\System.IO\ref\netstandard1.0\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.3\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.5\System.IO.dll - False - True - - - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.1\System.IO.Compression.dll - False - True - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.3\System.IO.Compression.dll - False - True - - - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.0\System.Linq.dll - False - True - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.6\System.Linq.dll - False - True - - - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.0\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.3\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.5\System.Reflection.dll - False - True - - - - - - - - - ..\..\packages\System.Reflection.Extensions\ref\netstandard1.0\System.Reflection.Extensions.dll - False - True - - - - - - + ..\..\packages\System.Reflection.Metadata\lib\netstandard1.1\System.Reflection.Metadata.dll @@ -548,233 +320,6 @@ - - - - ..\..\packages\System.Reflection.Metadata\lib\portable-net45+win8\System.Reflection.Metadata.dll - True - True - - - - - - - - - ..\..\packages\System.Reflection.Primitives\ref\netstandard1.0\System.Reflection.Primitives.dll - False - True - - - - - - - - - ..\..\packages\System.Resources.ResourceManager\ref\netstandard1.0\System.Resources.ResourceManager.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.0\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.2\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.3\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.5\System.Runtime.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.0\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.3\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.5\System.Runtime.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Handles\ref\netstandard1.3\System.Runtime.Handles.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.1\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.2\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.3\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.5\System.Runtime.InteropServices.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.0\System.Text.Encoding.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.3\System.Text.Encoding.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.0\System.Text.Encoding.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.3\System.Text.Encoding.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.0\System.Threading.dll - False - True - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.3\System.Threading.dll - False - True - - - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.0\System.Threading.Tasks.dll - False - True - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.3\System.Threading.Tasks.dll - False - True - - - diff --git a/src/FSharpVSPowerTools/Properties/AssemblyInfo.cs b/src/FSharpVSPowerTools/Properties/AssemblyInfo.cs index f6c98bb6..150ba7d7 100644 --- a/src/FSharpVSPowerTools/Properties/AssemblyInfo.cs +++ b/src/FSharpVSPowerTools/Properties/AssemblyInfo.cs @@ -6,15 +6,15 @@ [assembly: AssemblyTitleAttribute("FSharpVSPowerTools")] [assembly: AssemblyProductAttribute("FSharpVSPowerTools")] [assembly: AssemblyDescriptionAttribute("A collection of additional commands for F# in Visual Studio")] -[assembly: AssemblyVersionAttribute("2.5.6")] -[assembly: AssemblyFileVersionAttribute("2.5.6")] +[assembly: AssemblyVersionAttribute("2.5.7")] +[assembly: AssemblyFileVersionAttribute("2.5.7")] namespace System { internal static class AssemblyVersionInformation { internal const System.String InternalsVisibleTo = "FSharp.Editing.VisualStudio.Tests"; internal const System.String AssemblyTitle = "FSharpVSPowerTools"; internal const System.String AssemblyProduct = "FSharpVSPowerTools"; internal const System.String AssemblyDescription = "A collection of additional commands for F# in Visual Studio"; - internal const System.String AssemblyVersion = "2.5.6"; - internal const System.String AssemblyFileVersion = "2.5.6"; + internal const System.String AssemblyVersion = "2.5.7"; + internal const System.String AssemblyFileVersion = "2.5.7"; } } diff --git a/src/FSharpVSPowerTools/source.extension.vsixmanifest b/src/FSharpVSPowerTools/source.extension.vsixmanifest index ad309db0..5884f427 100644 --- a/src/FSharpVSPowerTools/source.extension.vsixmanifest +++ b/src/FSharpVSPowerTools/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + Visual F# Power Tools A collection of additional commands for F# in Visual Studio https://github.com/fsprojects/VisualFSharpPowerTools diff --git a/tests/FSharp.Editing.Tests/FSharp.Editing.Tests.fsproj b/tests/FSharp.Editing.Tests/FSharp.Editing.Tests.fsproj index 572c1c1f..855ed1c2 100644 --- a/tests/FSharp.Editing.Tests/FSharp.Editing.Tests.fsproj +++ b/tests/FSharp.Editing.Tests/FSharp.Editing.Tests.fsproj @@ -114,29 +114,20 @@ - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll - True - True - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll True True - - - - - - - - ..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll True True + + @@ -146,51 +137,6 @@ - - - - ..\..\packages\FSharp.Core\lib\portable-net45+monoandroid10+monotouch10+xamarinios10\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll - True - True - - - @@ -202,39 +148,12 @@ - - - - ..\..\packages\FSharp.Data\lib\portable-net45+netcore45\FSharp.Data.dll - True - True - - - - - - - ..\..\packages\FSharp.Data\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Data.dll - True - True - - - - - - - ..\..\packages\FSharp.Data\lib\portable-net45+sl50+netcore45\FSharp.Data.dll - True - True - - - - - ..\..\packages\FSharp.Management\lib\net40\FSharp.Management.PowerShell.ExternalRuntime.exe + + ..\..\packages\FSharp.Management\lib\net40\FSharp.Management.dll True True @@ -243,8 +162,8 @@ True True - - ..\..\packages\FSharp.Management\lib\net40\FSharp.Management.WMI.DesignTime.dll + + ..\..\packages\FSharp.Management\lib\net40\FSharp.Management.PowerShell.ExternalRuntime.exe True True @@ -253,8 +172,8 @@ True True - - ..\..\packages\FSharp.Management\lib\net40\FSharp.Management.dll + + ..\..\packages\FSharp.Management\lib\net40\FSharp.Management.WMI.DesignTime.dll True True @@ -267,27 +186,7 @@ - - - - ..\..\packages\System.Collections\ref\netstandard1.0\System.Collections.dll - False - True - - - - - - - ..\..\packages\System.Collections\ref\netstandard1.3\System.Collections.dll - False - True - - - - - - + ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll @@ -296,167 +195,9 @@ - - - - ..\..\packages\System.Collections.Immutable\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - True - True - - - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.0\System.Diagnostics.Debug.dll - False - True - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.3\System.Diagnostics.Debug.dll - False - True - - - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.0\System.Globalization.dll - False - True - - - - - - - ..\..\packages\System.Globalization\ref\netstandard1.3\System.Globalization.dll - False - True - - - - - - - - - ..\..\packages\System.IO\ref\netstandard1.0\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.3\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.5\System.IO.dll - False - True - - - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.1\System.IO.Compression.dll - False - True - - - - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.3\System.IO.Compression.dll - False - True - - - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.0\System.Linq.dll - False - True - - - - - - - ..\..\packages\System.Linq\ref\netstandard1.6\System.Linq.dll - False - True - - - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.0\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.3\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.5\System.Reflection.dll - False - True - - - - - - - - - ..\..\packages\System.Reflection.Extensions\ref\netstandard1.0\System.Reflection.Extensions.dll - False - True - - - - + ..\..\packages\System.Reflection.Metadata\lib\netstandard1.1\System.Reflection.Metadata.dll @@ -465,244 +206,6 @@ - - - - ..\..\packages\System.Reflection.Metadata\lib\portable-net45+win8\System.Reflection.Metadata.dll - True - True - - - - - - - - - ..\..\packages\System.Reflection.Primitives\ref\netstandard1.0\System.Reflection.Primitives.dll - False - True - - - - - - - - - ..\..\packages\System.Resources.ResourceManager\ref\netstandard1.0\System.Resources.ResourceManager.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.0\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.2\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.3\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.5\System.Runtime.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.0\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.3\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.5\System.Runtime.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Handles\ref\netstandard1.3\System.Runtime.Handles.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.1\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.2\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.3\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.5\System.Runtime.InteropServices.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.0\System.Text.Encoding.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.3\System.Text.Encoding.dll - False - True - - - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.0\System.Text.Encoding.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.3\System.Text.Encoding.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.0\System.Threading.dll - False - True - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.3\System.Threading.dll - False - True - - - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.0\System.Threading.Tasks.dll - False - True - - - - - - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.3\System.Threading.Tasks.dll - False - True - - - - - - - - - ..\..\packages\Zlib.Portable\lib\portable-net4+sl5+wp8+win8+wpa81+MonoTouch+MonoAndroid\Zlib.Portable.dll - True - True - - - @@ -714,58 +217,8 @@ - - - - ..\..\packages\test\FsCheck\lib\portable-net45+netcore45\FsCheck.dll - True - True - - - - - - - ..\..\packages\test\FsCheck\lib\portable-net45+netcore45+wp8\FsCheck.dll - True - True - - - - - - - ..\..\packages\test\FsCheck\lib\portable-net45+netcore45+wpa81+wp8\FsCheck.dll - True - True - - - - - - - ..\..\packages\test\NUnit\lib\net20\NUnit.System.Linq.dll - True - True - - - ..\..\packages\test\NUnit\lib\net20\nunit.framework.dll - True - True - - - - - - - ..\..\packages\test\NUnit\lib\net35\nunit.framework.dll - True - True - - - @@ -784,14 +237,5 @@ - - - - ..\..\packages\test\NUnit\lib\portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10\nunit.framework.dll - True - True - - - \ No newline at end of file diff --git a/tests/FSharp.Editing.Tests/GoToDefinitionTests.fs b/tests/FSharp.Editing.Tests/GoToDefinitionTests.fs index a2e2a2ae..ff3f2c72 100644 --- a/tests/FSharp.Editing.Tests/GoToDefinitionTests.fs +++ b/tests/FSharp.Editing.Tests/GoToDefinitionTests.fs @@ -107,7 +107,9 @@ let validateSignature source signature = IsIncompleteTypeCheckEnvironment = false UseScriptResolutionRules = true LoadTime = DateTime.UtcNow - UnresolvedReferences = None } + UnresolvedReferences = None + OriginalLoadReferences = List.empty + ExtraProjectInfo = None } let results = languageService.ParseAndCheckFileInProject(opts, signatureFile, signature, AllowStaleResults.No) |> Async.RunSynchronously diff --git a/tests/FSharp.Editing.Tests/TestHelpers.fs b/tests/FSharp.Editing.Tests/TestHelpers.fs index 4acf1df7..9c0f23d0 100644 --- a/tests/FSharp.Editing.Tests/TestHelpers.fs +++ b/tests/FSharp.Editing.Tests/TestHelpers.fs @@ -131,4 +131,6 @@ module LanguageServiceTestHelper = IsIncompleteTypeCheckEnvironment = false UseScriptResolutionRules = true LoadTime = DateTime.UtcNow - UnresolvedReferences = None } + UnresolvedReferences = None + OriginalLoadReferences = List.empty + ExtraProjectInfo = None } diff --git a/tests/FSharp.Editing.VisualStudio.Tests/FSharp.Editing.VisualStudio.Tests.fsproj b/tests/FSharp.Editing.VisualStudio.Tests/FSharp.Editing.VisualStudio.Tests.fsproj index cbd1d4a5..505ecb73 100644 --- a/tests/FSharp.Editing.VisualStudio.Tests/FSharp.Editing.VisualStudio.Tests.fsproj +++ b/tests/FSharp.Editing.VisualStudio.Tests/FSharp.Editing.VisualStudio.Tests.fsproj @@ -77,11 +77,17 @@ --> - - + + + + True + + + True + True @@ -225,31 +231,17 @@ - - - - ..\..\packages\FParsec\lib\portable-net45+netcore45+wpa81+wp8\FParsec.dll - True - True - - - ..\..\packages\FParsec\lib\portable-net45+netcore45+wpa81+wp8\FParsecCS.dll - True - True - - - - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll True True - - ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll + + ..\..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.MSBuild.v12.dll True True @@ -268,15 +260,6 @@ - - - - ..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll - True - True - - - @@ -286,54 +269,9 @@ - - - - ..\..\packages\FSharp.Core\lib\portable-net45+monoandroid10+monotouch10+xamarinios10\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll - True - True - - - - - - - ..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll - True - True - - - - + ..\..\packages\FSharp.ViewModule.Core\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\FSharp.ViewModule.dll @@ -355,39 +293,21 @@ - + - - ..\..\packages\System.Collections\ref\netstandard1.0\System.Collections.dll - False - True - - - - - - - ..\..\packages\System.Collections\ref\netstandard1.3\System.Collections.dll - False + + ..\..\packages\Microsoft.Build.Tasks.Core\lib\net45\Microsoft.Build.Tasks.Core.dll + True True - - - - ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll - True - True - - - - + - - ..\..\packages\System.Collections.Immutable\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll + + ..\..\packages\Microsoft.Build.Utilities.Core\lib\net45\Microsoft.Build.Utilities.Core.dll True True @@ -395,156 +315,84 @@ - + - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.0\System.Diagnostics.Debug.dll - False - True - - - - - - - ..\..\packages\System.Diagnostics.Debug\ref\netstandard1.3\System.Diagnostics.Debug.dll - False + + ..\..\packages\Microsoft.FSharp.Core.netcore\lib\netstandard1.6\FSharp.Core.dll + True True - - - - ..\..\packages\System.Globalization\ref\netstandard1.0\System.Globalization.dll - False - True - - - - + - - ..\..\packages\System.Globalization\ref\netstandard1.3\System.Globalization.dll - False + + ..\..\packages\System.Collections.Immutable\lib\netstandard1.0\System.Collections.Immutable.dll + True True - + - - ..\..\packages\System.IO\ref\netstandard1.0\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.3\System.IO.dll - False - True - - - - - - - ..\..\packages\System.IO\ref\netstandard1.5\System.IO.dll - False + + ..\..\packages\System.Console\lib\net46\System.Console.dll + True True - - - - ..\..\packages\System.IO.Compression\ref\netstandard1.1\System.IO.Compression.dll - False - True - - - - + - - ..\..\packages\System.IO.Compression\ref\netstandard1.3\System.IO.Compression.dll - False + + ..\..\packages\System.IO\lib\net462\System.IO.dll + True True - - - - ..\..\packages\System.Linq\ref\netstandard1.0\System.Linq.dll - False - True - - - - + - ..\..\packages\System.Linq\ref\netstandard1.6\System.Linq.dll - False + ..\..\packages\System.Linq\lib\net463\System.Linq.dll + True True - + - - ..\..\packages\System.Reflection\ref\netstandard1.0\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.3\System.Reflection.dll - False - True - - - - - - - ..\..\packages\System.Reflection\ref\netstandard1.5\System.Reflection.dll - False + + ..\..\packages\System.Linq.Expressions\lib\net463\System.Linq.Expressions.dll + True True - + - - ..\..\packages\System.Reflection.Extensions\ref\netstandard1.0\System.Reflection.Extensions.dll - False + + ..\..\packages\System.Reflection\lib\net462\System.Reflection.dll + True True - + ..\..\packages\System.Reflection.Metadata\lib\netstandard1.1\System.Reflection.Metadata.dll @@ -553,229 +401,95 @@ - - - - ..\..\packages\System.Reflection.Metadata\lib\portable-net45+win8\System.Reflection.Metadata.dll - True - True - - - - - - - - - ..\..\packages\System.Reflection.Primitives\ref\netstandard1.0\System.Reflection.Primitives.dll - False - True - - - - - - - - - ..\..\packages\System.Resources.ResourceManager\ref\netstandard1.0\System.Resources.ResourceManager.dll - False - True - - - - + - ..\..\packages\System.Runtime\ref\netstandard1.0\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.2\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.3\System.Runtime.dll - False - True - - - - - - - ..\..\packages\System.Runtime\ref\netstandard1.5\System.Runtime.dll - False + ..\..\packages\System.Runtime\lib\net462\System.Runtime.dll + True True - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.0\System.Runtime.Extensions.dll - False - True - - - - - - - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.3\System.Runtime.Extensions.dll - False - True - - - - + - ..\..\packages\System.Runtime.Extensions\ref\netstandard1.5\System.Runtime.Extensions.dll - False - True - - - - - - - - - ..\..\packages\System.Runtime.Handles\ref\netstandard1.3\System.Runtime.Handles.dll - False + ..\..\packages\System.Runtime.Extensions\lib\net462\System.Runtime.Extensions.dll + True True - + - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.1\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.2\System.Runtime.InteropServices.dll - False - True - - - - - - - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.3\System.Runtime.InteropServices.dll - False + ..\..\packages\System.Runtime.InteropServices\lib\net462\System.Runtime.InteropServices.dll + True True - + - ..\..\packages\System.Runtime.InteropServices\ref\netstandard1.5\System.Runtime.InteropServices.dll - False + ..\..\packages\System.Runtime.InteropServices\lib\net463\System.Runtime.InteropServices.dll + True True - - - - ..\..\packages\System.Text.Encoding\ref\netstandard1.0\System.Text.Encoding.dll - False - True - - - - + - - ..\..\packages\System.Text.Encoding\ref\netstandard1.3\System.Text.Encoding.dll - False + True - - - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.0\System.Text.Encoding.Extensions.dll - False - True - - - - + - - ..\..\packages\System.Text.Encoding.Extensions\ref\netstandard1.3\System.Text.Encoding.Extensions.dll - False + True - + - - ..\..\packages\System.Threading\ref\netstandard1.0\System.Threading.dll - False - True - - - - - - - ..\..\packages\System.Threading\ref\netstandard1.3\System.Threading.dll - False + + ..\..\packages\System.Text.RegularExpressions\lib\net463\System.Text.RegularExpressions.dll + True True - + - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.0\System.Threading.Tasks.dll - False + + ..\..\packages\System.Threading.Thread\lib\net46\System.Threading.Thread.dll + True True - + + + - - ..\..\packages\System.Threading.Tasks\ref\netstandard1.3\System.Threading.Tasks.dll - False + + ..\..\packages\System.Threading.ThreadPool\lib\net46\System.Threading.ThreadPool.dll + True True @@ -802,29 +516,6 @@ - - - - ..\..\packages\test\NUnit\lib\net20\NUnit.System.Linq.dll - True - True - - - ..\..\packages\test\NUnit\lib\net20\nunit.framework.dll - True - True - - - - - - - ..\..\packages\test\NUnit\lib\net35\nunit.framework.dll - True - True - - - @@ -843,15 +534,6 @@ - - - - ..\..\packages\test\NUnit\lib\portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10\nunit.framework.dll - True - True - - - \ No newline at end of file diff --git a/tests/FSharp.Editing.VisualStudio.Tests/app.config b/tests/FSharp.Editing.VisualStudio.Tests/app.config index fd413fe3..b3f5c3e8 100644 --- a/tests/FSharp.Editing.VisualStudio.Tests/app.config +++ b/tests/FSharp.Editing.VisualStudio.Tests/app.config @@ -50,5 +50,10 @@ + + True + + + diff --git a/tests/FSharp.Editing.VisualStudio.Tests/paket.references b/tests/FSharp.Editing.VisualStudio.Tests/paket.references index b16a1286..e3ab02f2 100644 --- a/tests/FSharp.Editing.VisualStudio.Tests/paket.references +++ b/tests/FSharp.Editing.VisualStudio.Tests/paket.references @@ -1,4 +1,5 @@ FSharp.Compiler.Service +FSharp.Compiler.Service.ProjectCracker FSharp.ViewModule.Core FSharpLint.Core FSharp.Core @@ -7,4 +8,3 @@ group Test Foq NUnit - FSharp.Compiler.Service.ProjectCracker \ No newline at end of file diff --git a/tests/data/NavigateToSource/NavigateToSource.fsproj b/tests/data/NavigateToSource/NavigateToSource.fsproj index 81b5dce7..1d04b7e3 100644 --- a/tests/data/NavigateToSource/NavigateToSource.fsproj +++ b/tests/data/NavigateToSource/NavigateToSource.fsproj @@ -97,6 +97,11 @@ + + ..\..\..\packages\build\Microsoft.Net.Http\lib\net40\System.Net.Http.dll + True + True + ..\..\..\packages\build\Microsoft.Net.Http\lib\net40\System.Net.Http.Extensions.dll True @@ -112,25 +117,20 @@ True True - - ..\..\..\packages\build\Microsoft.Net.Http\lib\net40\System.Net.Http.dll - True - True - + + True + ..\..\..\packages\build\Octokit\lib\net45\Octokit.dll True True - - True - @@ -144,14 +144,14 @@ + + True + ..\..\..\packages\build\Octokit\lib\portable-net45+wp80+win+wpa81\Octokit.dll True True - - True -