LuaLS: Only restart client if binary changed

Change-Id: I55738be78a527c22e681fca77b17ff428907c7d1
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-09-19 13:14:26 +02:00
parent d4085e3dbf
commit 04d92b9134

View File

@@ -79,8 +79,10 @@ local function installOrUpdateServer()
binary = "bin/lua-language-server.exe"
end
if lspPkgInfo.path:resolvePath(binary) ~= Settings.binary.expandedValue then
Settings.binary:setValue(lspPkgInfo.path:resolvePath(binary))
Settings:apply()
end
return
end