Skip to content

Commit 5b0cdad

Browse files
committed
Revert "Build VS code using TS 3.7-beta"
This reverts commit 11f24f6.
1 parent c72179f commit 5b0cdad

5 files changed

Lines changed: 38 additions & 19 deletions

File tree

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"request": "^2.85.0",
4343
"terser": "4.3.8",
4444
"tslint": "^5.9.1",
45-
"typescript": "3.7.0-beta",
45+
"typescript": "3.6.2",
4646
"vsce": "1.48.0",
4747
"vscode-telemetry-extractor": "^1.5.4",
4848
"xml2js": "^0.4.17"

build/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,10 +2297,10 @@ typed-rest-client@^0.9.0:
22972297
tunnel "0.0.4"
22982298
underscore "1.8.3"
22992299

2300-
typescript@3.7.0-beta:
2301-
version "3.7.0-beta"
2302-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.0-beta.tgz#4ad556e0eee14b90ecc39261001690e16e5eeba9"
2303-
integrity sha512-4jyCX+IQamrPJxgkABPq9xf+hUN+GWHVxoj+oey1TadCPa4snQl1RKwUba+1dyzYCamwlCxKvZQ3TjyWLhMGBA==
2300+
typescript@3.6.2:
2301+
version "3.6.2"
2302+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.2.tgz#105b0f1934119dde543ac8eb71af3a91009efe54"
2303+
integrity sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==
23042304

23052305
typescript@^3.0.1:
23062306
version "3.5.3"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"source-map": "^0.4.4",
128128
"ts-loader": "^4.4.2",
129129
"tslint": "^5.16.0",
130-
"typescript": "3.7.0-beta",
130+
"typescript": "3.6",
131131
"typescript-formatter": "7.1.0",
132132
"underscore": "^1.8.2",
133133
"vinyl": "^2.0.0",

src/vs/workbench/contrib/webview/electron-browser/webviewElement.ts

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ export class ElectronWebviewBasedWebview extends Disposable implements Webview,
568568

569569
public layout(): void {
570570
// noop
571+
571572
}
572573

573574
private readonly _hasFindResult = this._register(new Emitter<boolean>());
@@ -629,42 +630,60 @@ export class ElectronWebviewBasedWebview extends Disposable implements Webview,
629630
}
630631

631632
public showFind() {
632-
this._webviewFindWidget?.reveal();
633+
if (this._webviewFindWidget) {
634+
this._webviewFindWidget.reveal();
635+
}
633636
}
634637

635638
public hideFind() {
636-
this._webviewFindWidget?.hide();
639+
if (this._webviewFindWidget) {
640+
this._webviewFindWidget.hide();
641+
}
637642
}
638643

639644
public runFindAction(previous: boolean) {
640-
this._webviewFindWidget?.find(previous);
645+
if (this._webviewFindWidget) {
646+
this._webviewFindWidget.find(previous);
647+
}
641648
}
642649

643650
public reload() {
644651
this.doUpdateContent();
645652
}
646653

647654
public selectAll() {
648-
this._webview?.selectAll();
655+
if (this._webview) {
656+
this._webview.selectAll();
657+
}
649658
}
650659

651660
public copy() {
652-
this._webview?.copy();
661+
if (this._webview) {
662+
this._webview.copy();
663+
}
653664
}
654665

655666
public paste() {
656-
this._webview?.paste();
667+
if (this._webview) {
668+
this._webview.paste();
669+
}
657670
}
658671

659672
public cut() {
660-
this._webview?.cut();
673+
if (this._webview) {
674+
this._webview.cut();
675+
}
661676
}
662677

663678
public undo() {
664-
this._webview?.undo();
679+
if (this._webview) {
680+
this._webview.undo();
681+
}
665682
}
666683

667684
public redo() {
668-
this._webview?.redo();
685+
if (this._webview) {
686+
this._webview.redo();
687+
}
669688
}
670689
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8515,10 +8515,10 @@ typescript-formatter@7.1.0:
85158515
commandpost "^1.0.0"
85168516
editorconfig "^0.15.0"
85178517

8518-
typescript@3.7.0-beta:
8519-
version "3.7.0-beta"
8520-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.0-beta.tgz#4ad556e0eee14b90ecc39261001690e16e5eeba9"
8521-
integrity sha512-4jyCX+IQamrPJxgkABPq9xf+hUN+GWHVxoj+oey1TadCPa4snQl1RKwUba+1dyzYCamwlCxKvZQ3TjyWLhMGBA==
8518+
typescript@3.6:
8519+
version "3.6.2"
8520+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.2.tgz#105b0f1934119dde543ac8eb71af3a91009efe54"
8521+
integrity sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==
85228522

85238523
typescript@^2.6.2:
85248524
version "2.6.2"

0 commit comments

Comments
 (0)