Skip to content

Commit 11f24f6

Browse files
committed
Build VS code using TS 3.7-beta
Fixes microsoft#82286
1 parent d80739d commit 11f24f6

5 files changed

Lines changed: 19 additions & 38 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.6.2",
45+
"typescript": "3.7.0-beta",
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.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==
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==
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.6",
130+
"typescript": "3.7.0-beta",
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: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ export class ElectronWebviewBasedWebview extends Disposable implements Webview,
568568

569569
public layout(): void {
570570
// noop
571-
572571
}
573572

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

632631
public showFind() {
633-
if (this._webviewFindWidget) {
634-
this._webviewFindWidget.reveal();
635-
}
632+
this._webviewFindWidget?.reveal();
636633
}
637634

638635
public hideFind() {
639-
if (this._webviewFindWidget) {
640-
this._webviewFindWidget.hide();
641-
}
636+
this._webviewFindWidget?.hide();
642637
}
643638

644639
public runFindAction(previous: boolean) {
645-
if (this._webviewFindWidget) {
646-
this._webviewFindWidget.find(previous);
647-
}
640+
this._webviewFindWidget?.find(previous);
648641
}
649642

650643
public reload() {
651644
this.doUpdateContent();
652645
}
653646

654647
public selectAll() {
655-
if (this._webview) {
656-
this._webview.selectAll();
657-
}
648+
this._webview?.selectAll();
658649
}
659650

660651
public copy() {
661-
if (this._webview) {
662-
this._webview.copy();
663-
}
652+
this._webview?.copy();
664653
}
665654

666655
public paste() {
667-
if (this._webview) {
668-
this._webview.paste();
669-
}
656+
this._webview?.paste();
670657
}
671658

672659
public cut() {
673-
if (this._webview) {
674-
this._webview.cut();
675-
}
660+
this._webview?.cut();
676661
}
677662

678663
public undo() {
679-
if (this._webview) {
680-
this._webview.undo();
681-
}
664+
this._webview?.undo();
682665
}
683666

684667
public redo() {
685-
if (this._webview) {
686-
this._webview.redo();
687-
}
668+
this._webview?.redo();
688669
}
689670
}

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.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==
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==
85228522

85238523
typescript@^2.6.2:
85248524
version "2.6.2"

0 commit comments

Comments
 (0)