Skip to content

Commit 82be8c8

Browse files
authored
Build with TS 2.7 (microsoft#45348)
* Pick up TS 2.7 * Fix formatter in build script * Fix build error for ts 2.7 * Pick up new ts format and tslint versions * Update lock * use 2.7.2 for build * Formatting
1 parent 54d1d53 commit 82be8c8

55 files changed

Lines changed: 3925 additions & 3925 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/monaco/api.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ function format(text) {
171171
function getRuleProvider(options) {
172172
// Share this between multiple formatters using the same options.
173173
// This represents the bulk of the space the formatter uses.
174-
var ruleProvider = new ts.formatting.RulesProvider();
175-
ruleProvider.ensureUpToDate(options);
176-
return ruleProvider;
174+
return ts.formatting.getFormatContext(options);
177175
}
178176
function applyEdits(text, edits) {
179177
// Apply edits in reverse on the existing text

build/monaco/api.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ function format(text: string): string {
196196
function getRuleProvider(options: ts.FormatCodeSettings) {
197197
// Share this between multiple formatters using the same options.
198198
// This represents the bulk of the space the formatter uses.
199-
let ruleProvider = new (<any>ts).formatting.RulesProvider();
200-
ruleProvider.ensureUpToDate(options);
201-
return ruleProvider;
199+
return (ts as any).formatting.getFormatContext(options);
202200
}
203201

204202
function applyEdits(text: string, edits: ts.TextChange[]): string {

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"documentdb": "1.13.0",
1414
"mime": "^1.3.4",
1515
"minimist": "^1.2.0",
16-
"typescript": "2.6.1",
16+
"typescript": "2.7.2",
1717
"xml2js": "^0.4.17"
1818
},
1919
"scripts": {

build/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
427427
version "0.14.5"
428428
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
429429

430-
typescript@2.6.1:
431-
version "2.6.1"
432-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.1.tgz#ef39cdea27abac0b500242d6726ab90e0c846631"
430+
typescript@2.7.2:
431+
version "2.7.2"
432+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"
433433

434434
underscore@1.8.3, underscore@~1.8.3:
435435
version "1.8.3"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
"sinon": "^1.17.2",
112112
"source-map": "^0.4.4",
113113
"tslint": "^5.9.1",
114-
"typescript": "2.6.1",
115-
"typescript-formatter": "4.0.1",
114+
"typescript": "2.7.2",
115+
"typescript-formatter": "7.1.0",
116116
"uglify-es": "^3.0.18",
117117
"underscore": "^1.8.2",
118118
"vinyl": "^0.4.5",

src/typings/gc-signals.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare module 'gc-signals' {
66
* value is stored for later consumption.
77
*/
88
export const GCSignal: {
9-
new (id: number): GCSignal;
9+
new(id: number): GCSignal;
1010
};
1111
/**
1212
* Consume ids of garbage collected signals.

src/typings/keytar.d.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,44 @@
55

66
declare module 'keytar' {
77

8-
/**
9-
* Get the stored password for the service and account.
10-
*
11-
* @param service The string service name.
12-
* @param account The string account name.
13-
*
14-
* @returns A promise for the password string.
15-
*/
16-
export function getPassword(service: string, account: string): Promise<string | null>;
8+
/**
9+
* Get the stored password for the service and account.
10+
*
11+
* @param service The string service name.
12+
* @param account The string account name.
13+
*
14+
* @returns A promise for the password string.
15+
*/
16+
export function getPassword(service: string, account: string): Promise<string | null>;
1717

18-
/**
19-
* Add the password for the service and account to the keychain.
20-
*
21-
* @param service The string service name.
22-
* @param account The string account name.
23-
* @param password The string password.
24-
*
25-
* @returns A promise for the set password completion.
26-
*/
27-
export function setPassword(service: string, account: string, password: string): Promise<void>;
18+
/**
19+
* Add the password for the service and account to the keychain.
20+
*
21+
* @param service The string service name.
22+
* @param account The string account name.
23+
* @param password The string password.
24+
*
25+
* @returns A promise for the set password completion.
26+
*/
27+
export function setPassword(service: string, account: string, password: string): Promise<void>;
2828

29-
/**
30-
* Delete the stored password for the service and account.
31-
*
32-
* @param service The string service name.
33-
* @param account The string account name.
34-
*
35-
* @returns A promise for the deletion status. True on success.
36-
*/
37-
export function deletePassword(service: string, account: string): Promise<boolean>;
29+
/**
30+
* Delete the stored password for the service and account.
31+
*
32+
* @param service The string service name.
33+
* @param account The string account name.
34+
*
35+
* @returns A promise for the deletion status. True on success.
36+
*/
37+
export function deletePassword(service: string, account: string): Promise<boolean>;
3838

39-
/**
40-
* Find a password for the service in the keychain.
41-
*
42-
* @param service The string service name.
43-
*
44-
* @returns A promise for the password string.
45-
*/
46-
export function findPassword(service: string): Promise<string | null>;
39+
/**
40+
* Find a password for the service in the keychain.
41+
*
42+
* @param service The string service name.
43+
*
44+
* @returns A promise for the password string.
45+
*/
46+
export function findPassword(service: string): Promise<string | null>;
4747

4848
}

src/typings/lib.ie11_safe_es6.d.ts

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -7,72 +7,72 @@
77
// CHECK WITH http://kangax.github.io/compat-table/es6/#ie11
88

99
interface Map<K, V> {
10-
clear(): void;
11-
delete(key: K): boolean;
12-
forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
13-
get(key: K): V;
14-
has(key: K): boolean;
15-
set(key: K, value?: V): Map<K, V>;
16-
readonly size: number;
17-
18-
// not supported on IE11:
19-
// entries(): IterableIterator<[K, V]>;
20-
// keys(): IterableIterator<K>;
21-
// values(): IterableIterator<V>;
22-
// [Symbol.iterator]():IterableIterator<[K,V]>;
23-
// [Symbol.toStringTag]: string;
10+
clear(): void;
11+
delete(key: K): boolean;
12+
forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
13+
get(key: K): V;
14+
has(key: K): boolean;
15+
set(key: K, value?: V): Map<K, V>;
16+
readonly size: number;
17+
18+
// not supported on IE11:
19+
// entries(): IterableIterator<[K, V]>;
20+
// keys(): IterableIterator<K>;
21+
// values(): IterableIterator<V>;
22+
// [Symbol.iterator]():IterableIterator<[K,V]>;
23+
// [Symbol.toStringTag]: string;
2424
}
2525

2626
interface MapConstructor {
27-
new <K, V>(): Map<K, V>;
28-
prototype: Map<any, any>;
27+
new <K, V>(): Map<K, V>;
28+
prototype: Map<any, any>;
2929

30-
// not supported on IE11:
31-
// new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
30+
// not supported on IE11:
31+
// new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
3232
}
3333
declare var Map: MapConstructor;
3434

3535

3636
interface Set<T> {
37-
add(value: T): Set<T>;
38-
clear(): void;
39-
delete(value: T): boolean;
40-
forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
41-
has(value: T): boolean;
42-
readonly size: number;
43-
44-
// not supported on IE11:
45-
// entries(): IterableIterator<[T, T]>;
46-
// keys(): IterableIterator<T>;
47-
// values(): IterableIterator<T>;
48-
// [Symbol.iterator]():IterableIterator<T>;
49-
// [Symbol.toStringTag]: string;
37+
add(value: T): Set<T>;
38+
clear(): void;
39+
delete(value: T): boolean;
40+
forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
41+
has(value: T): boolean;
42+
readonly size: number;
43+
44+
// not supported on IE11:
45+
// entries(): IterableIterator<[T, T]>;
46+
// keys(): IterableIterator<T>;
47+
// values(): IterableIterator<T>;
48+
// [Symbol.iterator]():IterableIterator<T>;
49+
// [Symbol.toStringTag]: string;
5050
}
5151

5252
interface SetConstructor {
53-
new <T>(): Set<T>;
54-
prototype: Set<any>;
53+
new <T>(): Set<T>;
54+
prototype: Set<any>;
5555

56-
// not supported on IE11:
57-
// new <T>(iterable: Iterable<T>): Set<T>;
56+
// not supported on IE11:
57+
// new <T>(iterable: Iterable<T>): Set<T>;
5858
}
5959
declare var Set: SetConstructor;
6060

6161

6262
interface WeakMap<K, V> {
63-
delete(key: K): boolean;
64-
get(key: K): V | undefined;
65-
has(key: K): boolean;
66-
// IE11 doesn't return this
67-
// set(key: K, value?: V): this;
68-
set(key: K, value?: V): undefined;
63+
delete(key: K): boolean;
64+
get(key: K): V | undefined;
65+
has(key: K): boolean;
66+
// IE11 doesn't return this
67+
// set(key: K, value?: V): this;
68+
set(key: K, value?: V): undefined;
6969
}
7070

7171
interface WeakMapConstructor {
72-
new (): WeakMap<any, any>;
73-
new <K, V>(): WeakMap<K, V>;
74-
// new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
75-
readonly prototype: WeakMap<any, any>;
72+
new(): WeakMap<any, any>;
73+
new <K, V>(): WeakMap<K, V>;
74+
// new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
75+
readonly prototype: WeakMap<any, any>;
7676
}
7777
declare var WeakMap: WeakMapConstructor;
7878

0 commit comments

Comments
 (0)