Commit 8516a3b4 authored by Lindsey Shelton's avatar Lindsey Shelton 2️⃣
Browse files

feat: add copy text to ls client wrapper

parent 1e312411
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -110,6 +110,11 @@ export class LanguageClientWrapper {
      return vscode.commands.executeCommand('vscode.open', vscode.Uri.file(joinedPath));
    });

    this.#client.onNotification('$/gitlab/copyText', async ({ text }) => {
      await vscode.env.clipboard.writeText(text);
      await vscode.window.showInformationMessage('Copied to clipboard');
    });

    this.#client.onRequest(AiContextEditorRequests.GIT_DIFF, (params: GitDiffRequest) => {
      log.debug(`Received git diff request: ${JSON.stringify(params)}`);
      return this.#handleGitDiffRequest(params);