We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 468918a commit 81fa485Copy full SHA for 81fa485
1 file changed
common/src/util/format-code-search.ts
@@ -14,6 +14,9 @@
14
* @returns Formatted output with matches grouped by file
15
*/
16
export function formatCodeSearchOutput(stdout: string): string {
17
+ if (!stdout) {
18
+ return 'No results'
19
+ }
20
const lines = stdout.split('\n')
21
const formatted: string[] = []
22
let currentFile: string | null = null
0 commit comments