Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/cursorless-jetbrains/src/ide/JetbrainsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export interface JetbrainsClient {
revealLine(editorId: string, line: number, revealAt: string): void;
readQuery(filename: string): string | undefined;
flashRanges(flashRangesJson: string): string | undefined;
setHighlightRanges(highlightId: string | undefined, editorId: string, rangesJson: string): void;
}
10 changes: 6 additions & 4 deletions packages/cursorless-jetbrains/src/ide/JetbrainsIDE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ export class JetbrainsIDE implements IDE {
}

async setHighlightRanges(
_highlightId: string | undefined,
_editor: TextEditor,
_ranges: GeneralizedRange[],
highlightId: string | undefined,
editor: TextEditor,
ranges: GeneralizedRange[],
): Promise<void> {
throw Error("setHighlightRanges Not implemented");
const editorId = editor.id;
const rangesJson = JSON.stringify(ranges);
this.client.setHighlightRanges(highlightId, editorId, rangesJson);
}

async flashRanges(flashDescriptors: FlashDescriptor[]): Promise<void> {
Expand Down
Loading