Skip to content

Commit 7fd2c65

Browse files
authored
Disable webview serializer (#190)
Signed-off-by: Rome Li <[email protected]>
1 parent bb93ca8 commit 7fd2c65

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/assets/vscode.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$body-bg: var(--vscode-welcomePage-background);
1+
$body-bg: var(--vscode-editor-background);
22
$body-color: var(--vscode-editor-foreground);
33
$link-color: var(--vscode-textLink-foreground) !default;
44
$link-hover-color: $link-color;

src/extension.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import { initialize as initUtils } from "./utils";
88
import { initialize as initCommands } from "./commands";
99
import { initialize as initRecommendations } from "./recommendation";
1010
import { initialize as initMisc, showReleaseNotesOnStart } from "./misc";
11-
import { OverviewViewSerializer, showOverviewPageOnActivation } from "./overview";
12-
import { validateJavaRuntime, JavaRuntimeViewSerializer } from "./java-runtime";
13-
import { JavaGettingStartedViewSerializer } from "./getting-started";
11+
import { showOverviewPageOnActivation } from "./overview";
12+
import { validateJavaRuntime } from "./java-runtime";
13+
// import { JavaGettingStartedViewSerializer } from "./getting-started";
1414
import { scheduleAction } from "./utils/scheduler";
1515

1616
enum ViewType {
@@ -30,9 +30,10 @@ async function initializeExtension(operationId: string, context: vscode.Extensio
3030
initRecommendations(context);
3131
initMisc(context);
3232

33-
context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.overview", new OverviewViewSerializer()));
34-
context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.runtime", new JavaRuntimeViewSerializer()));
35-
context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.gettingStarted", new JavaGettingStartedViewSerializer()));
33+
// disable webview serializer because of https://github.com/microsoft/vscode/issues/80185
34+
// context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.overview", new OverviewViewSerializer()));
35+
// context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.runtime", new JavaRuntimeViewSerializer()));
36+
// context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.gettingStarted", new JavaGettingStartedViewSerializer()));
3637

3738
scheduleAction("showFirstView", true).then(() => {
3839
presentFirstView(context);

0 commit comments

Comments
 (0)