Class EditViewAbstract

Abstract class representing a view for editing a snippet or snippet folder. This class manages the creation of a webview panel and handles communication with it.

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

  • Creates an instance of the EditView class, initializing the webview panel.

    Parameters

    • context: ExtensionContext

      The extension context.

    • snippet: Snippet

      The snippet to be edited.

    • viewType: string

      The type of view (e.g., 'editSnippetFolder').

    • iconName: string

      The name of the icon to be used in the webview panel.

    • title: string

      The title of the webview panel (e.g., 'Edit Folder').

    Returns EditView

Properties

_panel: WebviewPanel

Methods

  • Abstract method to handle messages received from the webview. Must be implemented in derived classes.

    Parameters

    • message: any

      The received message, typically containing a command and data.

    Returns any

    • The result of handling the message, if any.