Skip to content

Commit

Permalink
refactor(chat): remove setOpenFiles action
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Oct 8, 2024
1 parent ef33909 commit 65d77ce
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
ideDiffPreviewAction,
type ChatThread,
type DiffPreviewResponse,
setOpenFiles,
resetDiffApi,
ideAnimateFileStart,
ideAnimateFileStop,
Expand Down Expand Up @@ -116,11 +115,6 @@ export class PanelWebview implements vscode.WebviewViewProvider {
}
}));

this._disposables.push(vscode.window.onDidChangeVisibleTextEditors((editors) => {
this.sendOpenFiles(editors);
}));



// this._disposables.push(vscode.workspace.onDidOpenTextDocument((event) => {
// console.log("onDidOpenTextDocument");
Expand All @@ -147,12 +141,6 @@ export class PanelWebview implements vscode.WebviewViewProvider {
return openFiles;
}

sendOpenFiles(editors: readonly vscode.TextEditor[]): void {
const files = editors.map(editor => editor.document.uri.fsPath);
const message = setOpenFiles(files);
this._view?.webview.postMessage(message);
}

sendSnippetToChat() {
const snippet = this.getSnippetFromEditor();
if(!snippet) { return; }
Expand Down

0 comments on commit 65d77ce

Please sign in to comment.