From c965874f23b0bd0792154e101d4367caa74bb05f Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 16 Sep 2020 16:45:24 +0300 Subject: [PATCH] Do not store state of Welcome page Signed-off-by: Vitaliy Gulyy --- plugins/welcome-plugin/src/welcome-plugin.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/plugins/welcome-plugin/src/welcome-plugin.ts b/plugins/welcome-plugin/src/welcome-plugin.ts index e76813f00..54115a192 100644 --- a/plugins/welcome-plugin/src/welcome-plugin.ts +++ b/plugins/welcome-plugin/src/welcome-plugin.ts @@ -113,8 +113,6 @@ export async function addPanel(context: theia.PluginContext): Promise { export function start(context: theia.PluginContext): void { let showWelcomePage: boolean | undefined = true; - theia.window.registerWebviewPanelSerializer(welcomePageViewType, new WelcomePageSerializer(context)); - const configuration = theia.workspace.getConfiguration(Settings.CHE_CONFIGURATION); if (configuration) { showWelcomePage = configuration.get(Settings.SHOW_WELCOME_PAGE); @@ -130,14 +128,3 @@ export function start(context: theia.PluginContext): void { export function stop(): void { } - -export class WelcomePageSerializer implements theia.WebviewPanelSerializer { - - constructor(readonly context: theia.PluginContext) { - } - - // eslint-disable-next-line @typescript-eslint/no-explicit-any - async deserializeWebviewPanel(webviewPanel: theia.WebviewPanel, state: any): Promise { - webviewPanel.webview.html = await getHtmlForWebview(this.context); - } -}