Skip to content

Commit

Permalink
allow rollforwards, and unify proj-info versions since they'd drifted (
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel authored Jul 25, 2021
1 parent 0d3c341 commit 94ad926
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 26 deletions.
20 changes: 7 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,17 @@
"lsp.Ionide WorkspaceLoader.codefix tests.remove unused binding"
]
},
{
"name": ".NET Core mode stdio (debug)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_debug_netcore",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/net5.0/fsautocomplete.dll",
"args": ["--mode", "stdio", "-v"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
"processId": "${command:pickProcess}",
"sourceLinkOptions": {
"*": {
"enabled": true
}
},
"justMyCode": false
}
]
}
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "5.0.301",
"rollForward": "feature"
"rollForward": "major"
}
}
6 changes: 3 additions & 3 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ github TheAngryByrd/FsLibLog:f81cba440bf0476bb4e2262b57a067a0d6ab78a7 src/FsLibL
nuget Argu ~> 5.2.0
nuget Fantomas.Extras ~> 4.5
nuget FSharp.Compiler.Service ~> 39
nuget Ionide.ProjInfo
nuget Ionide.ProjInfo.FCS
nuget Ionide.ProjInfo.ProjectSystem
nuget Ionide.ProjInfo 0.52
nuget Ionide.ProjInfo.FCS 0.52
nuget Ionide.ProjInfo.ProjectSystem 0.52
nuget Microsoft.Build copy_local:false
nuget Microsoft.Build.Framework copy_local:false
nuget Microsoft.Build.Utilities.Core copy_local:false
Expand Down
12 changes: 6 additions & 6 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ NUGET
Ionide.ProjInfo.Sln (>= 0.52) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
Microsoft.Build (>= 16.8) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
Microsoft.Build.Locator (>= 1.4.1) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
Ionide.ProjInfo.FCS (0.51)
Ionide.ProjInfo.FCS (0.52)
FSharp.Compiler.Service (>= 39.0) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
FSharp.Core (>= 5.0.1) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo (>= 0.51) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo.ProjectSystem (0.51)
Ionide.ProjInfo (>= 0.52) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo.ProjectSystem (0.52)
FSharp.Compiler.Service (>= 39.0) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
FSharp.Control.Reactive (>= 4.5) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
FSharp.Core (>= 5.0.1) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo (>= 0.51) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo.FCS (>= 0.51) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo.Sln (>= 0.51) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo (>= 0.52) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo.FCS (>= 0.52) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo.Sln (>= 0.52) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Newtonsoft.Json (>= 12.0.3) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= net5.0))
Ionide.ProjInfo.Sln (0.52) - restriction: || (== net5.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
MAB.DotIgnore (3.0.2)
Expand Down
3 changes: 2 additions & 1 deletion src/FsAutoComplete.Core/Commands.fs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ type Commands (checker: FSharpCompilerServiceChecker, state: State, backgroundSe
do disposables.Add <| state.ProjectController.Notifications.Subscribe (fun ev ->
match ev with
| ProjectResponse.Project (p, isFromCache) ->
let opts = state.ProjectController.GetProjectOptionsForFsproj p.ProjectFileName
let controller = state.ProjectController
let opts = controller.GetProjectOptionsForFsproj p.ProjectFileName
opts |> Option.iter (fun opts -> backgroundService.UpdateProject(p.ProjectFileName, opts))

if not isFromCache then
Expand Down
4 changes: 3 additions & 1 deletion src/FsAutoComplete/FsAutoComplete.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
<AssemblyName>dotnet-fsautocomplete</AssemblyName>
<PackageId>fsautocomplete</PackageId>
<PackageType>DotnetTool</PackageType>

<!-- This rollforward enables us to actually run on the .net 6 runtime without
retargeting the whole app, minimizing packaged binary size. -->
<RollForward>Major</RollForward>
<!-- workaround for not being able to have p2p dependencies in tool output dir https://github.com/nuget/home/issues/3891#issuecomment-377319939 -->
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/FsAutoComplete/runtimeconfig.template.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"rollForwardOnNoCandidateFx": 2
"rollForward": "major"
}

0 comments on commit 94ad926

Please sign in to comment.