CARVIEW |
Navigation Menu
-
-
Notifications
You must be signed in to change notification settings - Fork 369
Upcoming removal of built-in libraries #1950
Replies: 5 comments · 10 replies
-
I'm curious, how big are the built-in libraries, exactly? This would make the download lighter, which is a nice plus. P.S: There's this repo for The Binding of Isaac Lua modding: https://github.com/filloax/isaac-lua-api-vscode, you should probably get in touch with the author to have it be ported. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I believe the currently included ones are around 3Β MB (source), so they account for about 10% of the total size of the language server. It is still a big improvement for organization and collaboration, though π There isn't much βportingβ to do. The addons are nearly identical to the environment emulation libraries that have existed for a while. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yeah, I'm thinking that if it'd be in a repo, there's no need to update your extension anymore, and they need to update the plugin instead. |
Beta Was this translation helpful? Give feedback.
All reactions
-
My addon at goldenstein64/pl-definitions depends on So far, it looks like I have three options:
I'm okay with any of these decisions, but I would prefer (1) the most. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello π I plan to add to |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
as someone that does a lot of lua development and doe not vscode, I see this as a must have. honestly, if a little bit of bloat means I get the same experience out of the language server on any platform and not have to dredge the documentation of 10 repos to figure out how to set all this up or have to maintain everyone's editor specific config - huge win. at the day job we have several hundred libraries and dozens of developers all using different editors and local setups. As a rule we do not commit editor specific settings to repos and lean on agnostic configuration so everyone is on a level playing ground and not try to force people into using an editor. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Could the LuaCATS Addon Manager itself support a
|
Beta Was this translation helpful? Give feedback.
All reactions
-
I plan to add a |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
I need it! |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey @carsakiller, I wanted to check in and see support for an I looked around within the codebase to see where this change could be introduced but didn't come up with much. If you could point me in the right direction here, I'd be happy to add it in and open a PR. Regardless, thanks for all of your hard work here! |
Beta Was this translation helpful? Give feedback.
All reactions
-
@forestbelton, I had forgotten about this π΅βπ«. I took a poke around and appear to have come up with a potential solution. |
Beta Was this translation helpful? Give feedback.
All reactions
-
β€οΈ 1
-
I'm still very confused as to how is this supposed to be used, because the For example, both of this configurations seem to work:
Could you hint about how one is advised to configure this, @carsakiller? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
All reactions
-
An update. I've been trying still to make it work, and I think I've been able to. First, I narrowed it down to something that wasn't working, to see if I could fix it. I tried this: -- approach 3. This does NOT work
-- * Adds userThirdParty directory, but doesn't refer to it in library.
-- (this is the snippet from https://github.com/LelouchHe/xmake-luals-addon/pull/1/files)
require('lspconfig').lua_ls.setup {
settings = {
Lua = {
workspace = {
userThirdParty = {
vim.fn.expand('~/personal/configs/lua-language-server-addons/')
}
}
}
}
}
-- approach 4. This does NOT work.... with busted, but works with xmake!!
-- * Adds userThirdParty directory, but doesn't refer to it in library.
-- * Adds checkThirdParty, which is in other working examples
require('lspconfig').lua_ls.setup {
settings = {
Lua = {
workspace = {
checkThirdParty = 'ApplyInMemory',
userThirdParty = {
vim.fn.expand('~/personal/configs/lua-language-server-addons/')
}
}
}
}
} The 3rd approach was not working for me, but I tried the 4th, and by chance I realized that it was working for an It would be nice to know still about the Thanks. |
Beta Was this translation helpful? Give feedback.
All reactions
-
And |
Beta Was this translation helpful? Give feedback.
All reactions
-
Does this mean extensions can still be dropped into the installation directory? What is the replaced path for the 3rd directory? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello π
With the VS Code addon manager releasing soon, we have decided to remove the built-in libraries that ship with the language server in a future release. This will likely take place in approximately 6 months.
This means the
${3rd}
shortcut forworkspace.library
will no longer work.Why?
The addon manager for VS Code is being implemented soon, meaning everyone using the VS Code extension will still be able to install definition files super easily.
Removing the built-in libraries helps prevent duplicates for those using VS Code and can help cut down on bloat for everyone. It is unlikely that everyone is interested in all the built-in libraries, so many of them end up not being used.
What is the New Method?
Libraries are now addons. The name βlibrariesβ is a little misleading, as they are actually just definitions (and maybe a plugin).
Those using VS Code will soon be able to use the addon manager to install addons that contain all the definition files that were included in the language server, and more!
Those using other clients can still download all the libraries that were included in the server from the LuaCATS organization. They can then be dropped into a folder and linked to with
workspace.userThirdParty
for functionality similar to how the built-ins have previously worked, or manually linked usingworkspace.library
.Contribute
Collaborating on definition files is now better than ever.
Do you have definition files for a library? Now is the time to contribute them! If you would like it to show up in the addon manager, you can add it to LLS-Addons.
Do you have definition files that you can no longer maintain? If you transfer ownership to me (@carsakiller), I can transfer the project to LuaCATS, where the community can work together to keep the definitions up-to-date.
Future Changes
I am currently investigating how we can make using and sharing definitions files even easier. Ideally, the language server will be able to install and manage addons defined in a setting by simply providing the git clone URLs. This would hopefully be cross-platform and super easy for all users.
Thank you for reading, and please feel free to leave feedback below.
Beta Was this translation helpful? Give feedback.
All reactions