Skip to content

Commit 176210e

Browse files
Remove messages.ts (#145)
1 parent 5c97e9a commit 176210e

4 files changed

Lines changed: 7 additions & 19 deletions

File tree

src/holesPanel/holesViewProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as vscode from 'vscode';
22
import { EffektHoleInfo } from './effektHoleInfo';
3-
import { OutgoingMessage } from './webview/messages';
3+
import { OutgoingMessage } from './webview/vscodeApi';
44

55
export class HolesViewProvider implements vscode.WebviewViewProvider {
66
public static readonly viewType = 'effekt.holesView';

src/holesPanel/webview/BindingsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '../effektHoleInfo';
99
import { ScopeGroup } from './ScopeGroup';
1010
import { FilterBox } from './FilterBox';
11-
import { IncomingMessage } from './messages';
11+
import { IncomingMessage } from './vscodeApi';
1212
import { Location as LSPLocation } from 'vscode-languageserver-protocol';
1313

1414
interface BindingsSectionProps {

src/holesPanel/webview/messages.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/holesPanel/webview/vscodeApi.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ export interface VSCodeAPI {
88
declare function acquireVsCodeApi(): VSCodeAPI;
99

1010
export type OutgoingMessage =
11-
| { command: 'openCopilotChat'; holeId: string }
12-
| { command: 'jumpToHole'; holeId: string }
13-
| { command: 'jumpToDefinition'; definitionLocation: LSPLocation };
11+
| { command: 'jumpToHole'; holeId?: string }
12+
| { command: 'jumpToDefinition'; definitionLocation: LSPLocation }
13+
| { command: 'openCopilotChat'; holeId: string };
1414

1515
export type IncomingMessage =
1616
| { command: 'highlightHole'; holeId: string }
1717
| { command: 'updateHoles'; holes: EffektHoleInfo[] }
18-
| { command: 'setShowHoles'; show: boolean };
18+
| { command: 'setShowHoles'; show: boolean }
19+
| { command: 'focusPanel' };
1920

2021
export const vscode = acquireVsCodeApi();

0 commit comments

Comments
 (0)