mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-29 08:10:29 -04:00
Merge VS Code 1.31.1 (#4283)
This commit is contained in:
@@ -94,7 +94,7 @@ class TargetOptional {
|
||||
constructor(@IService1 service1: IService1, @optional(IService2) service2: IService2) {
|
||||
assert.ok(service1);
|
||||
assert.equal(service1.c, 1);
|
||||
assert.ok(service2 === void 0);
|
||||
assert.ok(service2 === undefined);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ suite('Instantiation Service', () => {
|
||||
|
||||
test('service collection, cannot overwrite', function () {
|
||||
let collection = new ServiceCollection();
|
||||
let result = collection.set(IService1, null);
|
||||
let result = collection.set(IService1, null!);
|
||||
assert.equal(result, undefined);
|
||||
result = collection.set(IService1, new Service1());
|
||||
assert.equal(result, null);
|
||||
@@ -145,10 +145,10 @@ suite('Instantiation Service', () => {
|
||||
|
||||
test('service collection, add/has', function () {
|
||||
let collection = new ServiceCollection();
|
||||
collection.set(IService1, null);
|
||||
collection.set(IService1, null!);
|
||||
assert.ok(collection.has(IService1));
|
||||
|
||||
collection.set(IService2, null);
|
||||
collection.set(IService2, null!);
|
||||
assert.ok(collection.has(IService1));
|
||||
assert.ok(collection.has(IService2));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user