From 7a4f2a3fe0ffc2c15b4efffe90639d5e9e50ff3d Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 08:29:47 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- clients/tabby-chat-panel/src/index.ts | 4 ++-- clients/tabby-chat-panel/src/react.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/clients/tabby-chat-panel/src/index.ts b/clients/tabby-chat-panel/src/index.ts index ebfe0f827771..862f446a64c0 100644 --- a/clients/tabby-chat-panel/src/index.ts +++ b/clients/tabby-chat-panel/src/index.ts @@ -1,4 +1,3 @@ -/* eslint-disable no-console */ import { createThreadFromIframe, createThreadFromInsideIframe } from 'tabby-threads' import { version } from '../package.json' @@ -317,7 +316,8 @@ export interface ClientApiMethods { readWorkspaceGitRepositories?: () => Promise /** - * @returns The active selection of active editor. + * Get the active editor selection as context, or the whole file if no selection. + * @returns The context of the active editor, or null if no active editor is found. */ getActiveEditorSelection: () => Promise diff --git a/clients/tabby-chat-panel/src/react.ts b/clients/tabby-chat-panel/src/react.ts index 692db1e5874c..bfbbd3210636 100644 --- a/clients/tabby-chat-panel/src/react.ts +++ b/clients/tabby-chat-panel/src/react.ts @@ -40,7 +40,6 @@ function useServer(api: ServerApi) { console.log('[useServer] Server created successfully') } catch (error) { - // eslint-disable-next-line no-console console.error('[useServer] Failed to create server:', error) isCreated = false }