Skip to content

Commit

Permalink
remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Dec 6, 2023
1 parent 2e5c2ed commit 249b265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/codeAction/browser/codeAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export async function getCodeActions(
return emptyCodeActionsResponse;
}

const filteredActions = (providedCodeActions?.actions || []).filter(action => action && filtersAction(filter, action, model, rangeOrSelection));
const filteredActions = (providedCodeActions?.actions || []).filter(action => action && filtersAction(filter, action));
const documentation = getDocumentationFromProvider(provider, filteredActions, filter.include);
return {
actions: filteredActions.map(action => new CodeActionItem(action, provider)),
Expand Down
5 changes: 1 addition & 4 deletions src/vs/editor/contrib/codeAction/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import { CancellationToken } from 'vs/base/common/cancellation';
import { onUnexpectedExternalError } from 'vs/base/common/errors';
import { Position } from 'vs/editor/common/core/position';
import * as languages from 'vs/editor/common/languages';
import { ITextModel } from 'vs/editor/common/model';
import { ActionSet } from 'vs/platform/actionWidget/common/actionWidget';
import { Range } from 'vs/editor/common/core/range';
import { Selection } from 'vs/editor/common/core/selection';

export class CodeActionKind {
private static readonly sep = '.';
Expand Down Expand Up @@ -98,7 +95,7 @@ export function mayIncludeActionsOfKind(filter: CodeActionFilter, providedKind:
return true;
}

export function filtersAction(filter: CodeActionFilter, action: languages.CodeAction, model: ITextModel, rangeOrSelection: Range | Selection): boolean {
export function filtersAction(filter: CodeActionFilter, action: languages.CodeAction): boolean {
const actionKind = action.kind ? new CodeActionKind(action.kind) : undefined;

// Filter out actions by kind
Expand Down

0 comments on commit 249b265

Please sign in to comment.