File tree Expand file tree Collapse file tree
src/solutions/language-features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,13 +58,15 @@ export class ReferenceLinkProvider implements DocumentLinkProvider<DocumentLink>
5858 if ( ! tag || ! this . getReferenceItemTags ( ) . includes ( tag ) ) {
5959 return false ;
6060 }
61- // in case of cbuild-ids.yml we can only expand links under 'cbuilds' section
62- if ( tag === 'clayer' && ! item . getParent ( 'cbuilds' ) ) {
63- return false ;
64- }
65- // in case of cbuild-ids.yml 'project' under 'cbuilds' is just a name, not path
66- if ( tag === 'project' && ! ! item . getParent ( 'cbuilds' ) ) {
67- return false ;
61+ if ( this . cbuildFile ) {
62+ // in case of cbuild-ids.yml we can only expand links under 'cbuilds' section
63+ if ( tag === 'clayer' && ! item . getParent ( 'cbuilds' ) ) {
64+ return false ;
65+ }
66+ // in case of cbuild-ids.yml 'project' under 'cbuilds' is just a name, not path
67+ if ( tag === 'project' && ! ! item . getParent ( 'cbuilds' ) ) {
68+ return false ;
69+ }
6870 }
6971 return true ;
7072 }
You can’t perform that action at this time.
0 commit comments