mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
debt - less any in chat components (#277703)
This commit is contained in:
@@ -230,7 +230,6 @@ export default tseslint.config(
|
|||||||
'src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.ts',
|
'src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.ts',
|
||||||
'src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.ts',
|
'src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.ts',
|
||||||
'src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/debugVisualization.ts',
|
'src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/debugVisualization.ts',
|
||||||
'src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.ts',
|
|
||||||
'src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.ts',
|
'src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.ts',
|
||||||
'src/vs/platform/configuration/common/configuration.ts',
|
'src/vs/platform/configuration/common/configuration.ts',
|
||||||
'src/vs/platform/configuration/common/configurationModels.ts',
|
'src/vs/platform/configuration/common/configurationModels.ts',
|
||||||
@@ -624,11 +623,9 @@ export default tseslint.config(
|
|||||||
'src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.ts',
|
'src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.ts',
|
||||||
'src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.ts',
|
'src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.ts',
|
||||||
'src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.ts',
|
'src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.ts',
|
||||||
'src/vs/workbench/contrib/chat/browser/chatInputPart.ts',
|
|
||||||
'src/vs/workbench/contrib/chat/browser/chatSessions.contribution.ts',
|
'src/vs/workbench/contrib/chat/browser/chatSessions.contribution.ts',
|
||||||
'src/vs/workbench/contrib/chat/browser/chatSessions/common.ts',
|
'src/vs/workbench/contrib/chat/browser/chatSessions/common.ts',
|
||||||
'src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.ts',
|
'src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.ts',
|
||||||
'src/vs/workbench/contrib/chat/browser/chatWidget.ts',
|
|
||||||
'src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.ts',
|
'src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.ts',
|
||||||
'src/vs/workbench/contrib/chat/common/chatAgents.ts',
|
'src/vs/workbench/contrib/chat/common/chatAgents.ts',
|
||||||
'src/vs/workbench/contrib/chat/common/chatModel.ts',
|
'src/vs/workbench/contrib/chat/common/chatModel.ts',
|
||||||
|
|||||||
@@ -147,8 +147,9 @@ export abstract class AbstractEditorNavigationQuickAccessProvider implements IQu
|
|||||||
if (!options.preserveFocus) {
|
if (!options.preserveFocus) {
|
||||||
editor.focus();
|
editor.focus();
|
||||||
}
|
}
|
||||||
const model = editor.getModel();
|
|
||||||
if (model && 'getLineContent' in model) {
|
const model = this.getModel(editor);
|
||||||
|
if (model) {
|
||||||
status(`${model.getLineContent(options.range.startLineNumber)}`);
|
status(`${model.getLineContent(options.range.startLineNumber)}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
|
|||||||
private readonly location: ChatAgentLocation,
|
private readonly location: ChatAgentLocation,
|
||||||
private readonly options: IChatInputPartOptions,
|
private readonly options: IChatInputPartOptions,
|
||||||
styles: IChatInputStyles,
|
styles: IChatInputStyles,
|
||||||
getContribsInputState: () => any,
|
getContribsInputState: () => IChatInputState,
|
||||||
private readonly inline: boolean,
|
private readonly inline: boolean,
|
||||||
@IChatWidgetHistoryService private readonly historyService: IChatWidgetHistoryService,
|
@IChatWidgetHistoryService private readonly historyService: IChatWidgetHistoryService,
|
||||||
@IModelService private readonly modelService: IModelService,
|
@IModelService private readonly modelService: IModelService,
|
||||||
|
|||||||
@@ -120,12 +120,12 @@ export interface IChatWidgetContrib extends IDisposable {
|
|||||||
/**
|
/**
|
||||||
* A piece of state which is related to the input editor of the chat widget
|
* A piece of state which is related to the input editor of the chat widget
|
||||||
*/
|
*/
|
||||||
getInputState?(): any;
|
getInputState?(): IChatInputState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called with the result of getInputState when navigating input history.
|
* Called with the result of getInputState when navigating input history.
|
||||||
*/
|
*/
|
||||||
setInputState?(s: any): void;
|
setInputState?(s: IChatInputState): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IChatRequestInputOptions {
|
interface IChatRequestInputOptions {
|
||||||
@@ -290,6 +290,7 @@ const supportsAllAttachments: Required<IChatAgentAttachmentCapabilities> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export class ChatWidget extends Disposable implements IChatWidget {
|
export class ChatWidget extends Disposable implements IChatWidget {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
public static readonly CONTRIBS: { new(...args: [IChatWidget, ...any]): IChatWidgetContrib }[] = [];
|
public static readonly CONTRIBS: { new(...args: [IChatWidget, ...any]): IChatWidgetContrib }[] = [];
|
||||||
|
|
||||||
private readonly _onDidSubmitAgent = this._register(new Emitter<{ agent: IChatAgentData; slashCommand?: IChatAgentCommand }>());
|
private readonly _onDidSubmitAgent = this._register(new Emitter<{ agent: IChatAgentData; slashCommand?: IChatAgentCommand }>());
|
||||||
|
|||||||
Reference in New Issue
Block a user