This commit is contained in:
Johannes Rieken
2021-12-07 09:22:48 +01:00
parent 5f63d720d5
commit 5c31535ea8

View File

@@ -105,4 +105,28 @@ suite('vscode', function () {
dispo.push(ctrl);
assertNoRpcFromEntry([ctrl, 'NotebookController']);
});
test('no rpc, createTerminal(...)', function () {
const ctrl = vscode.window.createTerminal({ name: 'termi' });
dispo.push(ctrl);
assertNoRpcFromEntry([ctrl, 'Terminal']);
});
test('no rpc, createFileSystemWatcher(...)', function () {
const item = vscode.workspace.createFileSystemWatcher('**/*.ts');
dispo.push(item);
assertNoRpcFromEntry([item, 'FileSystemWatcher']);
});
test('no rpc, createTestController(...)', function () {
const item = vscode.tests.createTestController('iii', 'lll');
dispo.push(item);
assertNoRpcFromEntry([item, 'TestController']);
});
test('no rpc, createLanguageStatusItem(...)', function () {
const item = vscode.languages.createLanguageStatusItem('i', '*');
dispo.push(item);
assertNoRpcFromEntry([item, 'LanguageStatusItem']);
});
});