mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
Remove git-ui extension
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user