Skip to content

Commit 886765a

Browse files
committed
fix
1 parent 7207cfa commit 886765a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

language_server/editor_helper.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ function META:GetCompilerConfig(path)
123123
cfg.lsp = cfg.lsp or {}
124124
cfg.parser = cfg.parser or {}
125125
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+
126131
cfg.parser.root_directory = cfg.parser.root_directory or cfg.root_directory
127132
cfg.analyzer.root_directory = cfg.analyzer.root_directory or cfg.root_directory
128133

0 commit comments

Comments
 (0)