Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 5c4e18e

Browse files
committed
fix lint
1 parent 1592ae0 commit 5c4e18e

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/features/commandPalette/commandPalette.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ export class CustomCommandPalette extends CommandPalette {
123123
return CustomCommandPalette.ID;
124124
}
125125

126-
protected hideIfEscapeEvent(event: KeyboardEvent): any {
126+
protected hideIfEscapeEvent(event: KeyboardEvent) {
127127
if (matchesKeystroke(event, "Escape")) {
128128
this.hide();
129129
}
130130
}
131131

132-
protected cycleIndex(event: KeyboardEvent): any {
132+
protected cycleIndex(event: KeyboardEvent) {
133133
if (matchesKeystroke(event, "ArrowDown")) {
134134
if (this.insideChild) {
135135
this.childIndex =

src/features/commandPalette/commandPaletteProvider.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { inject, injectable } from "inversify";
22
import { ICommandPaletteActionProvider, LabeledAction, SModelRootImpl, CommitModelAction } from "sprotty";
3-
import { Point } from "sprotty-protocol";
43
import { LoadDiagramAction } from "../serialize/load";
54
import { createDefaultFitToScreenAction } from "../../utils";
65
import { SaveDiagramAction } from "../serialize/save";
@@ -22,12 +21,7 @@ import { SettingsManager } from "../settingsMenu/SettingsManager";
2221
export class ServerCommandPaletteActionProvider implements ICommandPaletteActionProvider {
2322
constructor(@inject(SettingsManager) protected readonly settings: SettingsManager) {}
2423

25-
async getActions(
26-
root: Readonly<SModelRootImpl>,
27-
_text: string,
28-
_lastMousePosition?: Point,
29-
_index?: number,
30-
): Promise<(LabeledAction | FolderAction)[]> {
24+
async getActions(root: Readonly<SModelRootImpl>): Promise<(LabeledAction | FolderAction)[]> {
3125
const fitToScreenAction = createDefaultFitToScreenAction(root);
3226
const commitAction = CommitModelAction.create();
3327

0 commit comments

Comments
 (0)