Skip to content

Commit 5065397

Browse files
committed
Build VS Code with TS 2.9
Fixes microsoft#51102
1 parent e0ae638 commit 5065397

7 files changed

Lines changed: 33 additions & 33 deletions

File tree

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"documentdb": "1.13.0",
1515
"mime": "^1.3.4",
1616
"minimist": "^1.2.0",
17-
"typescript": "2.8.3",
17+
"typescript": "2.9.1",
1818
"xml2js": "^0.4.17",
1919
"github-releases": "^0.4.1",
2020
"request": "^2.85.0"

build/yarn.lock

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

655-
typescript@2.8.3:
656-
version "2.8.3"
657-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170"
655+
typescript@2.9.1:
656+
version "2.9.1"
657+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.1.tgz#fdb19d2c67a15d11995fd15640e373e09ab09961"
658658

659659
underscore@1.8.3, underscore@~1.8.3:
660660
version "1.8.3"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"sinon": "^1.17.2",
116116
"source-map": "^0.4.4",
117117
"tslint": "^5.9.1",
118-
"typescript": "2.8.3",
118+
"typescript": "2.9.1",
119119
"typescript-formatter": "7.1.0",
120120
"uglify-es": "^3.0.18",
121121
"underscore": "^1.8.2",

src/vs/base/common/objects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function deepClone<T>(obj: T): T {
1616
return obj as any;
1717
}
1818
const result: any = Array.isArray(obj) ? [] : {};
19-
Object.keys(obj).forEach((key: keyof T) => {
19+
Object.keys(obj).forEach((key: string) => {
2020
if (obj[key] && typeof obj[key] === 'object') {
2121
result[key] = deepClone(obj[key]);
2222
} else {

src/vs/base/common/parsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export abstract class Parser {
8181
}
8282

8383
protected static merge<T>(destination: T, source: T, overwrite: boolean): void {
84-
Object.keys(source).forEach((key: keyof T) => {
84+
Object.keys(source).forEach((key: string) => {
8585
let destValue = destination[key];
8686
let sourceValue = source[key];
8787
if (Types.isUndefined(sourceValue)) {

src/vs/monaco.d.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ declare namespace monaco {
364364
* Placed last to cover the length of the enum.
365365
* Please do not depend on this value!
366366
*/
367-
MAX_VALUE = 112,
367+
MAX_VALUE = 112
368368
}
369369

370370
export class KeyMod {
@@ -761,7 +761,7 @@ declare namespace monaco {
761761
/**
762762
* The selection starts below where it ends.
763763
*/
764-
RTL = 1,
764+
RTL = 1
765765
}
766766

767767
export class Token {
@@ -1136,7 +1136,7 @@ declare namespace monaco.editor {
11361136
export enum ScrollbarVisibility {
11371137
Auto = 1,
11381138
Hidden = 2,
1139-
Visible = 3,
1139+
Visible = 3
11401140
}
11411141

11421142
export interface ThemeColor {
@@ -1150,7 +1150,7 @@ declare namespace monaco.editor {
11501150
Left = 1,
11511151
Center = 2,
11521152
Right = 4,
1153-
Full = 7,
1153+
Full = 7
11541154
}
11551155

11561156
/**
@@ -1313,7 +1313,7 @@ declare namespace monaco.editor {
13131313
/**
13141314
* Use carriage return and line feed (\r\n) as the end of line character.
13151315
*/
1316-
CRLF = 2,
1316+
CRLF = 2
13171317
}
13181318

13191319
/**
@@ -1327,7 +1327,7 @@ declare namespace monaco.editor {
13271327
/**
13281328
* Use carriage return and line feed (\r\n) as the end of line character.
13291329
*/
1330-
CRLF = 2,
1330+
CRLF = 2
13311331
}
13321332

13331333
/**
@@ -1341,7 +1341,7 @@ declare namespace monaco.editor {
13411341
/**
13421342
* Use carriage return and line feed (\r\n) as the end of line character.
13431343
*/
1344-
CRLF = 1,
1344+
CRLF = 1
13451345
}
13461346

13471347
/**
@@ -1435,7 +1435,7 @@ declare namespace monaco.editor {
14351435
AlwaysGrowsWhenTypingAtEdges = 0,
14361436
NeverGrowsWhenTypingAtEdges = 1,
14371437
GrowsOnlyWhenTypingBefore = 2,
1438-
GrowsOnlyWhenTypingAfter = 3,
1438+
GrowsOnlyWhenTypingAfter = 3
14391439
}
14401440

14411441
/**
@@ -1991,7 +1991,7 @@ declare namespace monaco.editor {
19911991

19921992
export const enum ScrollType {
19931993
Smooth = 0,
1994-
Immediate = 1,
1994+
Immediate = 1
19951995
}
19961996

19971997
/**
@@ -2321,7 +2321,7 @@ declare namespace monaco.editor {
23212321
/**
23222322
* There was a Redo.
23232323
*/
2324-
Redo = 6,
2324+
Redo = 6
23252325
}
23262326

23272327
/**
@@ -2961,7 +2961,7 @@ declare namespace monaco.editor {
29612961
Small = 1,
29622962
Large = 2,
29632963
SmallBlocks = 3,
2964-
LargeBlocks = 4,
2964+
LargeBlocks = 4
29652965
}
29662966

29672967
/**
@@ -2983,7 +2983,7 @@ declare namespace monaco.editor {
29832983
/**
29842984
* DeepIndent => wrapped lines get +2 indentation toward the parent.
29852985
*/
2986-
DeepIndent = 3,
2986+
DeepIndent = 3
29872987
}
29882988

29892989
/**
@@ -3013,7 +3013,7 @@ declare namespace monaco.editor {
30133013
/**
30143014
* No-Blinking
30153015
*/
3016-
Solid = 5,
3016+
Solid = 5
30173017
}
30183018

30193019
/**
@@ -3043,7 +3043,7 @@ declare namespace monaco.editor {
30433043
/**
30443044
* As a thin horizontal line (sitting under a character).
30453045
*/
3046-
UnderlineThin = 6,
3046+
UnderlineThin = 6
30473047
}
30483048

30493049
export interface InternalEditorScrollbarOptions {
@@ -3091,7 +3091,7 @@ declare namespace monaco.editor {
30913091
On = 1,
30923092
Relative = 2,
30933093
Interval = 3,
3094-
Custom = 4,
3094+
Custom = 4
30953095
}
30963096

30973097
export interface InternalEditorViewOptions {
@@ -3420,7 +3420,7 @@ declare namespace monaco.editor {
34203420
/**
34213421
* Place the content widget below a position
34223422
*/
3423-
BELOW = 2,
3423+
BELOW = 2
34243424
}
34253425

34263426
/**
@@ -3477,7 +3477,7 @@ declare namespace monaco.editor {
34773477
/**
34783478
* Position the overlay widget in the top center
34793479
*/
3480-
TOP_CENTER = 2,
3480+
TOP_CENTER = 2
34813481
}
34823482

34833483
/**
@@ -3568,7 +3568,7 @@ declare namespace monaco.editor {
35683568
/**
35693569
* Mouse is outside of the editor.
35703570
*/
3571-
OUTSIDE_EDITOR = 13,
3571+
OUTSIDE_EDITOR = 13
35723572
}
35733573

35743574
/**
@@ -4207,7 +4207,7 @@ declare namespace monaco.languages {
42074207
Color = 15,
42084208
File = 16,
42094209
Reference = 17,
4210-
Folder = 18,
4210+
Folder = 18
42114211
}
42124212

42134213
/**
@@ -4557,7 +4557,7 @@ declare namespace monaco.languages {
45574557
/**
45584558
* Insert new line and outdent once (relative to the previous line's indentation).
45594559
*/
4560-
Outdent = 3,
4560+
Outdent = 3
45614561
}
45624562

45634563
/**
@@ -4628,7 +4628,7 @@ declare namespace monaco.languages {
46284628
export enum SuggestTriggerKind {
46294629
Invoke = 0,
46304630
TriggerCharacter = 1,
4631-
TriggerForIncompleteCompletions = 2,
4631+
TriggerForIncompleteCompletions = 2
46324632
}
46334633

46344634
export interface CodeAction {
@@ -4725,7 +4725,7 @@ declare namespace monaco.languages {
47254725
/**
47264726
* Write-access of a symbol, like writing to a variable.
47274727
*/
4728-
Write = 2,
4728+
Write = 2
47294729
}
47304730

47314731
/**
@@ -4863,7 +4863,7 @@ declare namespace monaco.languages {
48634863
Struct = 22,
48644864
Event = 23,
48654865
Operator = 24,
4866-
TypeParameter = 25,
4866+
TypeParameter = 25
48674867
}
48684868

48694869
/**

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5879,9 +5879,9 @@ typescript-formatter@7.1.0:
58795879
commandpost "^1.0.0"
58805880
editorconfig "^0.15.0"
58815881

5882-
typescript@2.8.3:
5883-
version "2.8.3"
5884-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170"
5882+
typescript@2.9.1:
5883+
version "2.9.1"
5884+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.1.tgz#fdb19d2c67a15d11995fd15640e373e09ab09961"
58855885

58865886
typescript@^2.6.2:
58875887
version "2.6.2"

0 commit comments

Comments
 (0)