• A function to add a new snippet based on user input, including snippet details and language. The snippet is then created as a Gist on GitHub and added to the snippets provider.

    Parameters

    • allLanguages: any[]

      An array of available programming languages.

    • snippetsExplorer: TreeView<Snippet>

      The TreeView that displays snippets.

    • snippetsProvider: SnippetsProvider

      The provider responsible for managing snippets.

    • node: any

      The currently selected node (if any), used when the command is invoked via the context menu.

    Returns Promise<void>