[Repo Assist] test: add regression tests for false positive code fix scenarios (issues #1259, #1362) #2922
Annotations
3 errors and 1 warning
|
Run and report tests
Process completed with exit code 1.
|
|
Run and report tests
There should be no applicable code action, but was [|{ Title = "Remove unnecessary parentheses"
Kind = Some "quickfix"
Diagnostics = Some [|{ Range = { Start = { Line = 5u
Character = 24u }
End = { Line = 5u
Character = 29u } }
Severity = Some Hint
Code = Some (C2 "FSAC0004")
CodeDescription = None
Source = Some "FSAC"
Message = "Parentheses can be removed"
Tags = Some [|Unnecessary|]
RelatedInformation = Some [||]
Data = None }|]
IsPreferred = None
Disabled = None
Edit =
Some
{ Changes = None
DocumentChanges =
Some [|C1 { TextDocument = { Uri = "untitled:Untitled-14"
Version = Some 0 }
Edits = [|C1 { Range = { Start = { Line = 5u
Character = 24u }
End = { Line = 5u
Character = 29u } }
NewText = "0.2" }|] }|]
ChangeAnnotations = None }
Command = None
Data = None }|]
at Utils.CursorbasedTests.CodeFix.checkFixAt@77-2.Invoke(String msg)
at Utils.CursorbasedTests.CodeFix.checkFixAt@51-1.Invoke(FSharpOption`1 res) in D:\a\FsAutoComplete\FsAutoComplete\test\FsAutoComplete.Tests.Lsp\Utils\CursorbasedTests.fs:line 77
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\fsharp\src\FSharp.Core\async.fs:line 527
at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.FsAutoComplete-Lsp-IFSharpLspServer-TextDocumentCodeAction@1700-31.Invoke(AsyncActivation`1 ctxt)
at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\fsharp\src\FSharp.Core\async.fs:line 112
|
|
Run and report tests
There should be no applicable code action, but was [|{ Title = "Remove redundant qualifier"
Kind = Some "refactor"
Diagnostics = Some [|{ Range = { Start = { Line = 9u
Character = 5u }
End = { Line = 9u
Character = 13u } }
Severity = Some Hint
Code = Some (C2 "FSAC0002")
CodeDescription = None
Source = Some "FSAC"
Message = "This qualifier is redundant"
Tags = Some [|Unnecessary|]
RelatedInformation = Some [||]
Data = None }|]
IsPreferred = None
Disabled = None
Edit =
Some
{ Changes = None
DocumentChanges =
Some [|C1 { TextDocument = { Uri = "untitled:Untitled-6"
Version = Some 0 }
Edits = [|C1 { Range = { Start = { Line = 9u
Character = 5u }
End = { Line = 9u
Character = 13u } }
NewText = "" }|] }|]
ChangeAnnotations = None }
Command = None
Data = None }|]
at Utils.CursorbasedTests.CodeFix.checkFixAt@77-2.Invoke(String msg)
at Utils.CursorbasedTests.CodeFix.checkFixAt@51-1.Invoke(FSharpOption`1 res) in D:\a\FsAutoComplete\FsAutoComplete\test\FsAutoComplete.Tests.Lsp\Utils\CursorbasedTests.fs:line 77
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\fsharp\src\FSharp.Core\async.fs:line 527
at <StartupCode$fsautocomplete>.$AdaptiveFSharpLspServer.FsAutoComplete-Lsp-IFSharpLspServer-TextDocumentCodeAction@1700-31.Invoke(AsyncActivation`1 ctxt)
at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\fsharp\src\FSharp.Core\async.fs:line 112
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v3, actions/setup-dotnet@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
background
wait
wait-all
cancel
parallel
Loading