-
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mass renaming proposal #1404
Comments
local x = function x() end
local function x:t() end |
👋
This one seems like a step in a very specific direction, and I'm not sure I agree with it. Most of the existing third-party annotation libraries are very framework-y in nature, so referring to them as environments makes perfect sense. However, we also have at least one that is purely a standalone library though (lfs). In my ideal scenario there would be support for both frameworks and many more libraries, which can be detected at runtime when the server sees Maybe this specific feature needs its own discussion though. It's possible that supporting standalone libraries was never a goal for this feature anyhow. |
Thanks @carsakiller for writing this up and starting the discussion
No opinions about these other than keeping them consistent with one another. I also think it would be well worth the effort to add some code to help users transition to the new names by detecting the old ones and offering to migrate and save the settings for them. Users spend a lot of time tuning and tweaking their settings, and nothing is more frustrating than when a backwards-incompatible change invalidates hours of hard work (this is the sort of thing that has made me give up on using several otherwise-great editor plugins in the past). |
I have edited this issue to add proposals for removing all (at least the ones I could find) I also changed |
please ping me if anything gets changed, so I can adjust my workspace settings in time. |
If there is going to be this many things changing, I think it will be something that everyone gets notified of in advance. |
It is not difficult to keep backwards-compatible |
I find increasingly confusing the following two options for LLS config: The And the |
There are a number of settings, diagnostics, and more that have unclear names that I think can be improved. This issue serves to propose new names for these items so that they can all be tracked in one place and implemented at once to minimize the number of breaking releases that would need to be released.
Settings
completion.displayContext
->completion.peekDefinition
Peek Definition
command in VS Code that has a similar function and I think naming it the same will help people understand its function without confusing the two as they are triggered entirely differently.diagnostics.disable
-> REMOVEdiagnostics.groupFileStatus
-> REMOVEdiagnostics.groupSeverity
-> REMOVEdiagnostics.ignoreFiles
->diagnostics.diagnoseIgnored
diagnostics.libraryFiles
->diagnostics.diagnoseLibraries
diagnostics.neededFileStatus
->diagnostics.config
(Rework functionality)diagnostics.severity
(Rework functionality)diagnostics.workspaceDelay
->diagnostics.delay
hint.setType
->hint.assignType
hover.enumsLimit
->hover.typesLimit
hover.previewFields
->hover.peekFields
runtime.special
->runtime.aliases
workspace.checkThirdParty
->workspace.checkEnvConfigs
workspace.ignoreDir
->workspace.ignore
workspace.library
->workspace.libraries
workspace.maxPreload
->workspace.maxFiles
workspace.preloadFileSize
->workspace.maxFileSize
workspace.userThirdParty
->workspace.envConfig
Diagnostics
I imagine there is a good reason
abiguity-1
is named how it is 😄 I see they all have at least 1 hyphen so I guess that is a limitation with how they are parsed?unknown-diag-code
->unknown-diagnostic
cast-local-type
->local-cast-mismatch
Syntax Errors
Luckily these can probably be changed with very little impact on the user and most people likely would not have any settings related to these.
err-assign-as-eq
->assign-with-equals
err-c-long-comment
->multiline-comment-prefix
err-comment-prefix
->comment-prefix
err-do-as-then
->then-as-do
err-eq-as-assign
->equality-with-assign
err-esc
->unknown-escape
err-nonstandard-symbol
->non-standard-symbol
err-then-as-do
->do-as-then
exp-in-action
->unexpected-expression
keyword
->reserved
miss-esc-x
->miss-hex-value
miss-exp
->miss-expression
newfield-call
andnewline-call
are not easy to understand but I can't think of anything that does a better job 🤔I don't even know what these do:unexpect-efunc-name
,unexpect-lfunc-name
Please let me know what you think and feel free to suggest other names.
The text was updated successfully, but these errors were encountered: