Skip to content

Commit 075794d

Browse files
committed
Update TS versions
Also replaces a weird use of `.bind` that was causing issues with the update. I've tried to refactor the code to preseve the existing behavior
1 parent 398be37 commit 075794d

5 files changed

Lines changed: 14 additions & 15 deletions

File tree

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"minimist": "^1.2.0",
4444
"request": "^2.85.0",
4545
"terser": "4.3.8",
46-
"typescript": "3.9.0-dev.20200304",
46+
"typescript": "^3.9.0-dev.20200313",
4747
"vsce": "1.48.0",
4848
"vscode-telemetry-extractor": "^1.5.4",
4949
"xml2js": "^0.4.17"

build/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,16 +2453,16 @@ typed-rest-client@^0.9.0:
24532453
tunnel "0.0.4"
24542454
underscore "1.8.3"
24552455

2456-
typescript@3.9.0-dev.20200304:
2457-
version "3.9.0-dev.20200304"
2458-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.0-dev.20200304.tgz#3cc35357eff29dc5604b4fa56d6597e13daf86ed"
2459-
integrity sha512-eUip/GgJmjp4qtHiJDxVhE5SDDiPzBUg7KBAFUgb7HgL/tv10JAHej7fnS1i+7xrq1eDtbkJyPaYOVnhL9db7Q==
2460-
24612456
typescript@^3.0.1:
24622457
version "3.5.3"
24632458
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977"
24642459
integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==
24652460

2461+
typescript@^3.9.0-dev.20200313:
2462+
version "3.9.0-dev.20200313"
2463+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.0-dev.20200313.tgz#f66aeb2c08268f2b1fc6d1d96e15554c6e7ed29b"
2464+
integrity sha512-85/IJPm1nEUbQDxK3aN+svIy4X3kPcAipihB3704NY1HXncJ1daNLJW1OktOacb8tD/URpIGs9nMgbUrKvglGg==
2465+
24662466
typical@^4.0.0:
24672467
version "4.0.0"
24682468
resolved "https://registry.yarnpkg.com/typical/-/typical-4.0.0.tgz#cbeaff3b9d7ae1e2bbfaf5a4e6f11eccfde94fc4"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"source-map": "^0.4.4",
151151
"style-loader": "^1.0.0",
152152
"ts-loader": "^4.4.2",
153-
"typescript": "3.9.0-dev.20200304",
153+
"typescript": "^3.9.0-dev.20200313",
154154
"typescript-formatter": "7.1.0",
155155
"underscore": "^1.8.2",
156156
"vinyl": "^2.0.0",

src/vs/base/parts/tree/browser/treeViewModel.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export class HeightMap {
4545
totalSize = viewItem.top + viewItem.height;
4646
}
4747

48-
let boundSplice = this.heightMap.splice.bind(this.heightMap, i, 0);
49-
48+
const startingIndex = i;
5049
let itemsToInsert: IViewItem[] = [];
5150

5251
while (item = iterator.next()) {
@@ -58,7 +57,7 @@ export class HeightMap {
5857
sizeDiff += viewItem.height;
5958
}
6059

61-
boundSplice.apply(this.heightMap, itemsToInsert);
60+
this.heightMap.splice(startingIndex, 0, ...itemsToInsert);
6261

6362
for (j = i; j < this.heightMap.length; j++) {
6463
viewItem = this.heightMap[j];

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9220,16 +9220,16 @@ typescript-formatter@7.1.0:
92209220
commandpost "^1.0.0"
92219221
editorconfig "^0.15.0"
92229222

9223-
typescript@3.9.0-dev.20200304:
9224-
version "3.9.0-dev.20200304"
9225-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.0-dev.20200304.tgz#3cc35357eff29dc5604b4fa56d6597e13daf86ed"
9226-
integrity sha512-eUip/GgJmjp4qtHiJDxVhE5SDDiPzBUg7KBAFUgb7HgL/tv10JAHej7fnS1i+7xrq1eDtbkJyPaYOVnhL9db7Q==
9227-
92289223
typescript@^2.6.2:
92299224
version "2.6.2"
92309225
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4"
92319226
integrity sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=
92329227

9228+
typescript@^3.9.0-dev.20200313:
9229+
version "3.9.0-dev.20200313"
9230+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.0-dev.20200313.tgz#f66aeb2c08268f2b1fc6d1d96e15554c6e7ed29b"
9231+
integrity sha512-85/IJPm1nEUbQDxK3aN+svIy4X3kPcAipihB3704NY1HXncJ1daNLJW1OktOacb8tD/URpIGs9nMgbUrKvglGg==
9232+
92339233
uc.micro@^1.0.1, uc.micro@^1.0.3:
92349234
version "1.0.3"
92359235
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.3.tgz#7ed50d5e0f9a9fb0a573379259f2a77458d50192"

0 commit comments

Comments
 (0)