Skip to content

Commit 44b4883

Browse files
committed
Fix formatting in outgoingTests to improve readability of path checks
1 parent 0a3e831 commit 44b4883

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/FsAutoComplete.Tests.Lsp/CallHierarchyTests.fs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ let outgoingTests createServer =
855855
// 1. The file exists locally (SourceLink success or local workspace file)
856856
// 2. OR the path contains build artifact indicators (SourceLink unavailable - acceptable in CI)
857857
let fileExists = File.Exists localPath
858+
858859
let isExternalBuildPath =
859860
uriStr.Contains("/_work/")
860861
|| uriStr.Contains("%2F_work%2F")
@@ -885,7 +886,11 @@ let outgoingTests createServer =
885886
// Check if this is a workspace file (not external)
886887
let isWorkspaceFile =
887888
localPath.Contains("TestCases")
888-
|| localPath.Contains(Path.DirectorySeparatorChar.ToString() + "test" + Path.DirectorySeparatorChar.ToString())
889+
|| localPath.Contains(
890+
Path.DirectorySeparatorChar.ToString()
891+
+ "test"
892+
+ Path.DirectorySeparatorChar.ToString()
893+
)
889894

890895
// Workspace files must exist
891896
if isWorkspaceFile then

0 commit comments

Comments
 (0)