Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 2, 2025
1 parent 5f62f41 commit debbeb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion clients/vscode/src/chat/createClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function createClient(webview: Webview, api: ClientApiMethods): ServerApi
openInEditor: api.openInEditor,
openExternal: api.openExternal,
readWorkspaceGitRepositories: api.readWorkspaceGitRepositories,
getActiveEditorSelection: api.getActiveEditorSelection
getActiveEditorSelection: api.getActiveEditorSelection,
},
});
}
10 changes: 5 additions & 5 deletions clients/vscode/src/chat/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,15 +449,15 @@ export class ChatWebview {
return infoList;
},

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

const fileContext = await getFileContextFromSelection(editor, this.gitProvider);
return fileContext
}
return fileContext;
},
});
}

Expand Down

0 comments on commit debbeb2

Please sign in to comment.