Skip to content

Commit

Permalink
feat: show node descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinslin committed Jul 8, 2020
1 parent 00e8b7c commit aca86f2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/common-all/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,15 +392,10 @@ export class Note extends DNode<NoteData> implements INote {

// vscode detail pane
get detail(): string {
const cleanPath = this.logicalPath
.split(".")
.slice(0, -1)
.join(".");
if (_.isEmpty(cleanPath)) {
return this.logicalPath;
} else {
return cleanPath + ".";
}
if (this.schema && this.schemaStub) {
return this.schema.desc;
}
return this.desc;
}

get description(): string | undefined {
Expand Down

0 comments on commit aca86f2

Please sign in to comment.