forked from qt-creator/qt-creator
LuaLS: Only restart client if binary changed
Change-Id: I55738be78a527c22e681fca77b17ff428907c7d1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user