Skip to content

Commit

Permalink
feat: Handle open-record-instructions from navie instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahtrotta committed Jan 31, 2024
1 parent ba10c68 commit 77a2b90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webviews/chatSearchWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import appmapMessageHandler from './appmapMessageHandler';
import FilterStore, { SavedFilter } from './filterStore';
import WebviewList from './WebviewList';
import selectIndexProcess, { IndexProcess, ReasonCode } from '../lib/selectIndexProcess';
import { RecordAppMaps } from '../tree/instructionsTreeDataProvider';

export default class ChatSearchWebview {
private webviewList = new WebviewList();
Expand Down Expand Up @@ -79,6 +80,9 @@ export default class ChatSearchWebview {
savedFilters: this.filterStore.getSavedFilters(),
});
break;
case 'open-record-instructions':
await vscode.commands.executeCommand('appmap.openInstallGuide', RecordAppMaps);
break;
}
});
}
Expand Down
4 changes: 4 additions & 0 deletions web/src/chatSearchView.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export default function mountChatSearchView() {
});

handleAppMapMessages(app, vscode);

app.$on('open-record-instructions', () => {
vscode.postMessage({ command: 'open-record-instructions' });
});
});

vscode.postMessage({ command: 'chat-search-ready' });
Expand Down

0 comments on commit 77a2b90

Please sign in to comment.