Closed ghost closed 5 years ago
The returned workspaceUri appears to always be null, so it will always use the default configuration. Appears to reply on _workspaceDependencies which doesn't appear to be set if auto imports is disabled.
workspaceUri
_workspaceDependencies
https://github.com/d-language-server/dls/blob/master/source/dls/tools/symbol_tool/internal/symbol_tool.d#L584 https://github.com/d-language-server/dls/blob/v0.22.1/source/dls/tools/analysis_tool.d#L358
const workspaceUri = SymbolTool.instance.getWorkspace(uri); immutable workspacePath = workspaceUri is null ? "" : workspaceUri.path; return (workspacePath in _analysisConfigs) ? _analysisConfigs[workspacePath] : defaultStaticAnalysisConfig();
I added a variable that is actually meant to keep track of open workspaces instead of somewhat misusing another; it should be fixed in v0.22.2.
The returned
workspaceUri
appears to always be null, so it will always use the default configuration. Appears to reply on_workspaceDependencies
which doesn't appear to be set if auto imports is disabled.https://github.com/d-language-server/dls/blob/master/source/dls/tools/symbol_tool/internal/symbol_tool.d#L584 https://github.com/d-language-server/dls/blob/v0.22.1/source/dls/tools/analysis_tool.d#L358