Function commonAddSnippetFromClipboard

  • A function to add a new snippet from the clipboard content. It prompts the user for the snippet name, description, and visibility, then creates the snippet as a Gist on GitHub and adds it to the snippets provider.

    Parameters

    • snippetsProvider: SnippetsProvider

      The provider responsible for managing global snippets.

    • wsSnippetsProvider: SnippetsProvider

      The provider responsible for managing workspace-specific snippets.

    • workspaceSnippetsAvailable: boolean

      A boolean flag indicating whether workspace snippets are available.

    Returns Promise<void>