mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Replace label computer ctor in test
This commit is contained in:
parent
a8bd1338de
commit
68e5b46311
|
@ -286,7 +286,7 @@ suite('Workbench - TerminalInstance', () => {
|
||||||
strictEqual(terminalLabelComputer.title, 'process');
|
strictEqual(terminalLabelComputer.title, 'process');
|
||||||
strictEqual(terminalLabelComputer.description, '');
|
strictEqual(terminalLabelComputer.description, '');
|
||||||
if (!isWindows) {
|
if (!isWindows) {
|
||||||
terminalLabelComputer = store.add(new TerminalLabelComputer(new TestFileService(), terminalConfigService, mockContextService));
|
terminalLabelComputer = createLabelComputer({ terminal: { integrated: { tabs: { separator: ' ~ ', title: '${process}${separator}${cwdFolder}', description: '${cwdFolder}' } } } });
|
||||||
terminalLabelComputer.refreshLabel(createInstance({ capabilities, processName: 'process', workspaceFolder: { uri: URI.from({ scheme: Schemas.file, path: ROOT_1 }) } as IWorkspaceFolder, cwd: ROOT_2 }));
|
terminalLabelComputer.refreshLabel(createInstance({ capabilities, processName: 'process', workspaceFolder: { uri: URI.from({ scheme: Schemas.file, path: ROOT_1 }) } as IWorkspaceFolder, cwd: ROOT_2 }));
|
||||||
strictEqual(terminalLabelComputer.title, 'process ~ root2');
|
strictEqual(terminalLabelComputer.title, 'process ~ root2');
|
||||||
strictEqual(terminalLabelComputer.description, 'root2');
|
strictEqual(terminalLabelComputer.description, 'root2');
|
||||||
|
|
Loading…
Reference in a new issue