Skip to content

Commit 75db418

Browse files
authored
fix bug: spans listed when no method selected are not rendered correctly (#217)
1 parent fe187d3 commit 75db418

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/views-ui/codeAnalytics/main.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ vscode-panel-view {
2121
color: #f14c4c;
2222
}
2323

24+
.links-list {
25+
display: flex;
26+
flex-direction: column;
27+
flex-wrap: wrap;
28+
.codeobject-link{
29+
align-self: flex-start;
30+
}
31+
}
32+
2433
.list {
2534
padding: 0px;
2635
display: flex;

src/views/codeAnalytics/AdminInsights/noCodeObjectMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export class NoCodeObjectMessage{
1919
var usageStatuses = await this._analyticsProvider.getUsageStatus(codeObjects);
2020

2121
for(const method of docInfo.methods){
22-
const relatedSummaries = docInfo.insights.all.filter(s =>
22+
const relatedInsights = docInfo.insights.all.filter(s =>
2323
method.id === s.codeObjectId ||
2424
method.relatedCodeObjects.any(r => r.id === s.codeObjectId));
25-
if(relatedSummaries.length==0){
25+
if(relatedInsights.length !==0){
2626
links.push(/*html*/`<vscode-link class="codeobject-link" data-line="${method.range.start.line}">${method.displayName}</vscode-link>`);
2727
}
2828

0 commit comments

Comments
 (0)