Skip to content

Commit

Permalink
Assert different tidle detail depending on OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Feb 8, 2025
1 parent 0f649c0 commit 130a443
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ function assertPartialCompletionsExist(actual: ITerminalCompletion[] | undefined
}
}

const standardTidleItem = Object.freeze({ label: '~', detail: isWindows ? 'Home directory' : '$HOME' });

suite('TerminalCompletionService', () => {
const store = ensureNoDisposablesAreLeakedInTestSuite();
let instantiationService: TestInstantiationService;
Expand Down Expand Up @@ -156,7 +158,7 @@ suite('TerminalCompletionService', () => {
{ label: '.', detail: '/test/' },
{ label: './folder1/', detail: '/test/folder1/' },
{ label: '../', detail: '/' },
{ label: '~', detail: 'Home directory' },
standardTidleItem,
], { replacementIndex: 1, replacementLength: 0 });
});

Expand Down Expand Up @@ -439,7 +441,7 @@ suite('TerminalCompletionService', () => {
{ label: './folder1/', detail: '/test/folder1/' },
{ label: './folder2/', detail: '/test/folder2/' },
{ label: '../', detail: '/' },
{ label: '~', detail: 'Home directory' }
standardTidleItem,
], { replacementIndex: 0, replacementLength: 0 });
});

Expand Down

0 comments on commit 130a443

Please sign in to comment.