Skip to content

Commit 394ec08

Browse files
committed
feat: Search snippets and appmap events using sqlite
1 parent 03cdf79 commit 394ec08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1599
-1311
lines changed

packages/cli/src/cmds/search/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from '../../fulltext/FindEvents';
1717
import { openInBrowser } from '../open/openers';
1818
import { buildAppMapIndex, search } from '../../rpc/explain/index/appmap-index';
19-
import buildIndexInTempDir from '../../rpc/explain/build-index-in-temp-dir';
19+
import buildIndexInTempDir from '../../rpc/explain/index/build-index-in-temp-dir';
2020

2121
export const command = 'search <query>';
2222
export const describe =

packages/cli/src/cmds/search/searchSingleAppMap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default async function searchSingleAppMap(
1212
query: string,
1313
options: SearchOptions = {}
1414
): Promise<SearchResponse> {
15+
// eslint-disable-next-line no-param-reassign
1516
if (appmap.endsWith('.appmap.json')) appmap = appmap.slice(0, -'.appmap.json'.length);
1617

1718
const findEvents = new FindEvents(appmap);

packages/cli/src/fulltext/ref.ts

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

packages/cli/src/rpc/explain/EventCollector.ts

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

packages/cli/src/rpc/explain/LocationContextCollector.ts

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

packages/cli/src/rpc/explain/SearchContextCollector.ts

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

packages/cli/src/rpc/explain/appmap-location.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SearchRpc } from '@appland/rpc';
1+
import { SearchRpc } from "@appland/rpc";
22

33
export default function appmapLocation(appmap: string, event?: SearchRpc.EventMatch): string {
44
const appmapFile = [appmap, 'appmap.json'].join('.');

0 commit comments

Comments
 (0)