Add env host bridge service, migrate clipboard read/write calls (#4496)
* host bridge migration - clipboard * changeset * removed dev logging * switched to empty return on clipboard write * Moved new hostServiceNameMap entry to new proto configs
This commit is contained in:
1 parent
f00c5f4ecc
commit
b7b0e96cc7
14 files changed
+91
-11
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import * as vscode from "vscode"
|
||||
import { getWorkingState } from "@utils/git"
|
||||
import { writeTextToClipboard } from "@utils/env"
|
||||
|
||||
/**
|
||||
* Formats the git diff into a prompt for the AI
|
||||
@@ -57,7 +58,7 @@ export function extractCommitMessage(aiResponse: string): string {
|
||||
* @param message The commit message to copy
|
||||
*/
|
||||
export async function copyCommitMessageToClipboard(message: string): Promise<void> {
|
||||
await vscode.env.clipboard.writeText(message)
|
||||
await writeTextToClipboard(message)
|
||||
vscode.window.showInformationMessage("Commit message copied to clipboard")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user