Skip to content

Commit

Permalink
Remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
arshad-yaseen committed Jul 21, 2024
1 parent 173a7f4 commit bf0128b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/copilot/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ const handleInlineCompletions = async ({
monaco,
model,
position,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
context: _, // Unused
token,
hasCompletionBeenAccepted,
onShowCompletion,
Expand Down
3 changes: 1 addition & 2 deletions src/copilot/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ export const registerCopilot = (
try {
const inlineCompletionsProvider =
monaco.languages.registerInlineCompletionsProvider(options.language, {
provideInlineCompletions: async (model, position, context, token) =>
provideInlineCompletions: async (model, position, _, token) =>
handleInlineCompletions({
monaco,
model,
position,
context,
token,

hasCompletionBeenAccepted,
Expand Down
8 changes: 1 addition & 7 deletions src/types/copilot.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import {Monaco} from './common';
import type {CompletionModel} from './completion';
import {
EditorCancellationToken,
EditorInlineCompletionContext,
EditorModel,
EditorPosition,
} from './editor';
import {EditorCancellationToken, EditorModel, EditorPosition} from './editor';

export interface CopilotOptions {
model: CompletionModel | undefined;
Expand Down Expand Up @@ -67,7 +62,6 @@ export interface InlineCompletionHandlerParams {
monaco: Monaco;
model: EditorModel;
position: EditorPosition;
context: EditorInlineCompletionContext;
token: EditorCancellationToken;

hasCompletionBeenAccepted: boolean;
Expand Down

0 comments on commit bf0128b

Please sign in to comment.