From 0badfa2173fd9b7fb96886ec129dbea11e0f4b8d Mon Sep 17 00:00:00 2001 From: Paul Code Johnston Date: Thu, 15 Oct 2020 23:48:58 -0600 Subject: [PATCH] Fix open filename on click --- src/bzl/codesearch/renderer.ts | 2 +- src/test/integration/feature.bzl.codesearch.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bzl/codesearch/renderer.ts b/src/bzl/codesearch/renderer.ts index 80288ff2..ed9835d9 100644 --- a/src/bzl/codesearch/renderer.ts +++ b/src/bzl/codesearch/renderer.ts @@ -76,7 +76,7 @@ export class CodesearchRenderer { lines.push('
'); for (const result of results) { const filename = result.path!; - lines.push(`
`); + lines.push(`
`); if (result.bounds) { const pre = filename.slice(0, result.bounds.left); const mid = filename.slice(result.bounds.left, result.bounds.right); diff --git a/src/test/integration/feature.bzl.codesearch.test.ts b/src/test/integration/feature.bzl.codesearch.test.ts index b37480a3..0fbb678a 100644 --- a/src/test/integration/feature.bzl.codesearch.test.ts +++ b/src/test/integration/feature.bzl.codesearch.test.ts @@ -145,7 +145,7 @@ describe(BzlFeatureName + '.codesearch', function () { check: (html: string) => { expect(html).equalIgnoreSpaces(`
-
+
/tmp/foo.txt
@@ -168,7 +168,7 @@ describe(BzlFeatureName + '.codesearch', function () { check: (html: string) => { expect(html).equalIgnoreSpaces(`
-
+
/tmp/foo.txt