We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7207cfa commit 886765aCopy full SHA for 886765a
1 file changed
language_server/editor_helper.lua
@@ -123,6 +123,11 @@ function META:GetCompilerConfig(path)
123
cfg.lsp = cfg.lsp or {}
124
cfg.parser = cfg.parser or {}
125
cfg.root_directory = cfg.root_directory or project_config.config_dir or self:GetWorkingDirectory()
126
+
127
+ if cfg.root_directory and cfg.root_directory ~= "" and cfg.root_directory:sub(-1) ~= "/" then
128
+ cfg.root_directory = cfg.root_directory .. "/"
129
+ end
130
131
cfg.parser.root_directory = cfg.parser.root_directory or cfg.root_directory
132
cfg.analyzer.root_directory = cfg.analyzer.root_directory or cfg.root_directory
133
0 commit comments