Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
umpox committed Jan 2, 2025
1 parent 96d283f commit 6da0b9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions vscode/src/autoedits/autoedits-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ export class AutoeditsProvider implements vscode.InlineCompletionItemProvider, v

this.rendererManager =
enabledRenderer === 'inline'
? new AutoEditsInlineRendererManager(editor => new InlineDiffDecorator(editor))
? new AutoEditsInlineRendererManager(
editor => new InlineDiffDecorator(editor),
fixupController
)
: new AutoEditsDefaultRendererManager(
(editor: vscode.TextEditor) => new DefaultDecorator(editor)
(editor: vscode.TextEditor) => new DefaultDecorator(editor),
fixupController
)

this.onSelectionChangeDebounced = debounce(
Expand Down
4 changes: 2 additions & 2 deletions vscode/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ async function tryRegisterTutorial(

function registerAutoEdits(
chatClient: ChatClient,
fixupController,
fixupController: FixupController,
disposables: vscode.Disposable[]
): void {
disposables.push(
Expand All @@ -731,7 +731,7 @@ function registerAutoEdits(
.pipe(
map(([config, authStatus, autoeditEnabled]) => {
if (shouldEnableExperimentalAutoedits(config, autoeditEnabled, authStatus)) {
const provider = new AutoeditsProvider(chatClient)
const provider = new AutoeditsProvider(chatClient, fixupController)
const completionRegistration =
vscode.languages.registerInlineCompletionItemProvider(
[{ scheme: 'file', language: '*' }, { notebookType: '*' }],
Expand Down

0 comments on commit 6da0b9a

Please sign in to comment.