Skip to content

Commit 2a34a70

Browse files
committed
Run test with Skippable fact and ignore null/whitespace mappings
1 parent b1aa091 commit 2a34a70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ internal bool TryGetMappedLocalPath(string remotePath, out string localPath)
612612
{
613613
foreach (PathMapping mapping in _pathMappings)
614614
{
615-
if (mapping.LocalRoot is null || mapping.RemoteRoot is null)
615+
if (string.IsNullOrWhiteSpace(mapping.LocalRoot) || string.IsNullOrWhiteSpace(mapping.RemoteRoot))
616616
{
617617
// If either path mapping is null, we can't map the path.
618618
continue;
@@ -636,7 +636,7 @@ internal bool TryGetMappedRemotePath(string localPath, out string remotePath)
636636
{
637637
foreach (PathMapping mapping in _pathMappings)
638638
{
639-
if (mapping.LocalRoot is null || mapping.RemoteRoot is null)
639+
if (string.IsNullOrWhiteSpace(mapping.LocalRoot) || string.IsNullOrWhiteSpace(mapping.RemoteRoot))
640640
{
641641
// If either path mapping is null, we can't map the path.
642642
continue;

test/PowerShellEditorServices.Test.E2E/DebugAdapterProtocolMessageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ public async Task CanRunPesterTestFile()
524524
Assert.Equal("pester", await ReadScriptLogLineAsync());
525525
}
526526

527-
[Fact]
527+
[SkippableFact]
528528
public async Task CanAttachScriptWithPathMappings()
529529
{
530530
Skip.If(PsesStdioLanguageServerProcessHost.RunningInConstrainedLanguageMode,

0 commit comments

Comments
 (0)