Skip to content

Commit 0352629

Browse files
authored
Rename WebviewView to WebviewKind (#2739)
1 parent d777427 commit 0352629

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

extensions/ql-vscode/src/common/vscode/abstract-webview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import { join } from "path";
1111

1212
import { DisposableObject, DisposeHandler } from "../disposable-object";
1313
import { tmpDir } from "../../tmp-dir";
14-
import { getHtmlForWebview, WebviewMessage, WebviewView } from "./webview-html";
14+
import { getHtmlForWebview, WebviewMessage, WebviewKind } from "./webview-html";
1515

1616
export type WebviewPanelConfig = {
1717
viewId: string;
1818
title: string;
1919
viewColumn: ViewColumn;
20-
view: WebviewView;
20+
view: WebviewKind;
2121
preserveFocus?: boolean;
2222
iconPath?: Uri | { dark: Uri; light: Uri };
2323
additionalOptions?: WebviewPanelOptions & WebviewOptions;

extensions/ql-vscode/src/common/vscode/webview-html.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ExtensionContext, Uri, Webview } from "vscode";
22
import { randomBytes } from "crypto";
33
import { EOL } from "os";
44

5-
export type WebviewView =
5+
export type WebviewKind =
66
| "results"
77
| "compare"
88
| "variant-analysis"
@@ -20,7 +20,7 @@ export interface WebviewMessage {
2020
export function getHtmlForWebview(
2121
ctx: ExtensionContext,
2222
webview: Webview,
23-
view: WebviewView,
23+
view: WebviewKind,
2424
{
2525
allowInlineStyles,
2626
allowWasmEval,

0 commit comments

Comments
 (0)