Remove git-ui extension

This commit is contained in:
Christof Marti
2021-04-13 21:38:53 +02:00
parent a3444b1212
commit 40a6563f9b
14 changed files with 5 additions and 170 deletions

View File

@@ -32,19 +32,18 @@ suite('vscode API - env', () => {
test('env.remoteName', function () {
const remoteName = env.remoteName;
const knownWorkspaceExtension = extensions.getExtension('vscode.git');
const knownUiExtension = extensions.getExtension('vscode.git-ui');
const knownUiAndWorkspaceExtension = extensions.getExtension('vscode.image-preview');
if (typeof remoteName === 'undefined') {
// not running in remote, so we expect both extensions
assert.ok(knownWorkspaceExtension);
assert.ok(knownUiExtension);
assert.equal(ExtensionKind.UI, knownUiExtension!.extensionKind);
assert.ok(knownUiAndWorkspaceExtension);
assert.equal(ExtensionKind.UI, knownUiAndWorkspaceExtension!.extensionKind);
} else if (typeof remoteName === 'string') {
// running in remote, so we only expect workspace extensions
assert.ok(knownWorkspaceExtension);
if (env.uiKind === UIKind.Desktop) {
assert.ok(!knownUiExtension); // we currently can only access extensions that run on same host
}
assert.ok(knownUiAndWorkspaceExtension);
assert.equal(ExtensionKind.Workspace, knownWorkspaceExtension!.extensionKind);
assert.equal(ExtensionKind.Workspace, knownUiAndWorkspaceExtension!.extensionKind);
} else {
assert.fail();
}