mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-15 19:11:38 -04:00
Merge VS Code 1.23.1 (#1520)
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import Types = require('vs/base/common/types');
|
||||
import Assert = require('vs/base/common/assert');
|
||||
import * as Types from 'vs/base/common/types';
|
||||
import * as Assert from 'vs/base/common/assert';
|
||||
|
||||
export interface IRegistry {
|
||||
|
||||
@@ -27,7 +27,6 @@ export interface IRegistry {
|
||||
* Returns the extension functions and properties defined by the specified key or null.
|
||||
* @param id an extension identifier
|
||||
*/
|
||||
as(id: string): any;
|
||||
as<T>(id: string): T;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import assert = require('assert');
|
||||
import Platform = require('vs/platform/registry/common/platform');
|
||||
import Types = require('vs/base/common/types');
|
||||
import * as assert from 'assert';
|
||||
import * as Platform from 'vs/platform/registry/common/platform';
|
||||
import * as Types from 'vs/base/common/types';
|
||||
|
||||
suite('Platform / Registry', () => {
|
||||
|
||||
@@ -21,8 +21,8 @@ suite('Platform / Registry', () => {
|
||||
Platform.Registry.add('foo', { bar: true });
|
||||
|
||||
assert.ok(Platform.Registry.knows('foo'));
|
||||
assert.ok(Platform.Registry.as('foo').bar);
|
||||
assert.equal(Platform.Registry.as('foo').bar, true);
|
||||
assert.ok(Platform.Registry.as<any>('foo').bar);
|
||||
assert.equal(Platform.Registry.as<any>('foo').bar, true);
|
||||
});
|
||||
|
||||
test('registry - knows, as', function () {
|
||||
|
||||
Reference in New Issue
Block a user