Skip to content

Commit

Permalink
Fix warnings: override is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 24, 2024
1 parent 1035184 commit 8100746
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion denops/@ddc-filters/skkeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { type Item } from "../skkeleton/deps/ddc/types.ts";
type Params = Record<string, never>;

export class Filter extends BaseFilter<Params> {
async filter(
override async filter(
args: FilterArguments<Params>,
): Promise<Item<CompletionMetadata>[]> {
await args.denops.cmd("echomsg msg", {
Expand Down
10 changes: 5 additions & 5 deletions denops/@ddc-sources/skkeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type CompletionMetadata = {
type Params = Record<string, never>;

export class Source extends BaseSource<Params> {
async getCompletePosition(
override async getCompletePosition(
args: GetCompletePositionArguments<Record<string, never>>,
): Promise<number> {
const inputLength = args.context.input.length;
Expand All @@ -27,7 +27,7 @@ export class Source extends BaseSource<Params> {
return inputLength - preEditLength;
}

async gather(
override async gather(
args: GatherArguments<Params>,
): Promise<DdcGatherItems> {
const candidates = (await args.denops.dispatch(
Expand Down Expand Up @@ -70,11 +70,11 @@ export class Source extends BaseSource<Params> {
};
}

params() {
override params() {
return {};
}

getPreviewer(
override getPreviewer(
args: GetPreviewerArguments<Params, unknown>,
): Promise<Previewer> {
if (!args.item.info || args.item.info.length === 0) {
Expand All @@ -89,7 +89,7 @@ export class Source extends BaseSource<Params> {
});
}

async onCompleteDone(
override async onCompleteDone(
args: OnCompleteDoneArguments<Params, CompletionMetadata>,
) {
await args.denops.dispatch(
Expand Down

0 comments on commit 8100746

Please sign in to comment.