Merge VS Code 1.23.1 (#1520)

This commit is contained in:
Matt Irvine
2018-06-05 11:24:51 -07:00
committed by GitHub
parent e3baf5c443
commit 0c58f09e59
3651 changed files with 74249 additions and 48599 deletions

View File

@@ -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;
}

View File

@@ -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 () {