This is a request to add functionality that conditionally changes how embedded directories are handled within workspaces. The general idea is to make a workspace behave more like a "virtual parent directory" than what it does now.
Details, extracted from an email conversation:
1) Add the --nostdinc to eclcc invocations to avoid including whatever the current directory is. This would avoid a corner case where the workspace file is sitting in a parent directory that has a subdirectory that accidentally matches a workspace folder from another location.
2) For each "path" value in the workspace definition:
2a) Force it to be an absolute path.
2b) Remove leafname (so it is now referencing its parent directory).
3) Dedup the path list.
4) Make each path an included directory to eclcc.
The above behavior should be governed by a single configuration setting which can be overridden within the .code-workspace file if needed. One possible, if long, suggestion for a configuration name would be 'enableWorkspaceAsVirtualDirectory'.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is a request to add functionality that conditionally changes how embedded directories are handled within workspaces. The general idea is to make a workspace behave more like a "virtual parent directory" than what it does now.
Details, extracted from an email conversation:
1) Add the --nostdinc to eclcc invocations to avoid including whatever the current directory is. This would avoid a corner case where the workspace file is sitting in a parent directory that has a subdirectory that accidentally matches a workspace folder from another location.
2) For each "path" value in the workspace definition:
2a) Force it to be an absolute path.
2b) Remove leafname (so it is now referencing its parent directory).
3) Dedup the path list.
4) Make each path an included directory to eclcc.
The above behavior should be governed by a single configuration setting which can be overridden within the .code-workspace file if needed. One possible, if long, suggestion for a configuration name would be 'enableWorkspaceAsVirtualDirectory'.