提交 376c7a8d 编写于 作者: J Johannes Rieken

ref tree - show filename and lines when having no meaningful preview, fyi @lszomoru

上级 28cb90be
......@@ -172,8 +172,8 @@ class OneReferenceTemplate {
set(element: OneReference, score?: FuzzyScore): void {
const preview = element.parent.getPreview(element)?.preview(element.range);
if (!preview) {
// this means we FAILED to resolve the document...
if (!preview || !preview.value) {
// this means we FAILED to resolve the document or the value is the empty string
this.label.set(`${basename(element.uri)}:${element.range.startLineNumber + 1}:${element.range.startColumn + 1}`);
} else {
// render search match as highlight unless
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册