Skip to content

Commit

Permalink
Update clients/vscode/src/chat/webview.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Zhiming Ma <[email protected]>
  • Loading branch information
liangfung and icycodes authored Jan 2, 2025
1 parent debbeb2 commit ebe3b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/vscode/src/chat/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class ChatWebview {

getActiveEditorSelection: async (): Promise<EditorFileContext | null> => {
const editor = window.activeTextEditor;
if (!editor) {
if (!editor || !isValidForSyncActiveEditorSelection(editor)) {
return null;
}

Expand Down

0 comments on commit ebe3b67

Please sign in to comment.