The workspace root directory is searched recursively

Issue #61 new
Former user created an issue

The workspace root directory is searched recursively. This may cause wrong files to be identified as used units. Adding an option for this will be better.

Comments (1)

  1. Christopher Wosinski repo owner

    Yes, that's right. Looking for units recursively is the default mode. The results are quite good when there are no duplicate units and you didn't configure anything. If you want a more accurate file recognition then you might want to load a project in OmniPacal (Press F1 to open the command palette and type OmniPascal: Load project). OmniPascal will then use the search path defined in the project file. When a unit is looked up then OmniPascal will use that search path in first place. If no unit is found then the recursive search is used as a fallback mode.

    I'd say there already is an option for that. Does it help you to solve your problem?

  2. Log in to comment