Skip to content

Commit

Permalink
Merge pull request #92 from kamecha/fix/ddu-preview
Browse files Browse the repository at this point in the history
dduのプレビューがちゃんとされるよう修正
  • Loading branch information
kamecha authored Jul 27, 2024
2 parents ca50d87 + 52ebb6e commit 3452e46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion denops/@ddu-kinds/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { channelMessageOptions, channelTimeline } from "../traqvim/model.ts";
import { actionOpenChannel } from "../traqvim/action.ts";
import { Message } from "../traqvim/type.d.ts";

// TODO: unkownutilのアプデしたらtype.d.tsのChannelとかに変更する
export interface ActionData {
id: string;
}
Expand All @@ -30,6 +31,7 @@ export class Kind extends dduVim.BaseKind<Params> {
if (!item.action) {
continue;
}
// TODO: unkownutilのアプデしたらasをensureに変更
const action = item.action as ActionData;
const channelPath: string = item.word;
const channelID: string = action.id;
Expand Down Expand Up @@ -74,7 +76,7 @@ export class Kind extends dduVim.BaseKind<Params> {
const timelinePreviewArray: string[][] = await Promise.all(
timeline.map(async (message: Message) => {
const ret = await args.denops.call(
"traqvim#make_message_body",
"traqvim#view#make_message_body",
message,
args.previewContext.width,
);
Expand Down

0 comments on commit 3452e46

Please sign in to comment.