-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't hook up SerilogTraceListener in FantomasDaemon. (#2777)
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module Fantomas.CoreGlobalTool.Tests.ToolLocatorTests | ||
|
||
open Fantomas.Client | ||
open Fantomas.Client.LSPFantomasServiceTypes | ||
open Fantomas.Client.Contracts | ||
open NUnit.Framework | ||
|
||
[<Explicit "This is meant to troubleshoot local problems">] | ||
[<Test>] | ||
let ``locate fantomas tool`` () = | ||
let pwd = @"C:\Users\nojaf\Projects" | ||
let result = FantomasToolLocator.findFantomasTool (Folder pwd) | ||
|
||
match result with | ||
| Error error -> Assert.Fail $"Could not locate tool: %A{error}" | ||
| Ok(FantomasToolFound(FantomasVersion(version), startInfo)) -> | ||
let result = FantomasToolLocator.createFor startInfo | ||
|
||
match result with | ||
| Error error -> Assert.Fail $"Could not start tool: %A{error}" | ||
| Ok runningFantomasTool -> | ||
let version2 = | ||
runningFantomasTool.RpcClient.InvokeAsync<string>(Methods.Version).Result | ||
|
||
Assert.AreEqual(version, $"v{version2}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters