DaGhostman / vscode-tree-view

VSCode extension that probvides mail symbol overview of the currently opened file
MIT License
29 stars 4 forks source link

PHP const including the magic constant __DIR__ produces `undefined` in tree view #92

Closed maxpower9000 closed 5 years ago

maxpower9000 commented 5 years ago

ISSUE

Inside a php class I define a constant as follows:

protected const PATH_DOCS = __DIR__.'/../data/docs';

Inside the File Symbol Explorer it is shown as

PATH_DOCS = undefined

screenshot

IDEA

The magic constant __DIR__ seems to break the parsing.


Good luck! And thanks for this amazin extension!