Skip to content

Hotfix/various fixes scope regression#24

Draft
Pollux12 wants to merge 28 commits into
mainfrom
hotfix/various-fixes-scope-regression
Draft

Hotfix/various fixes scope regression#24
Pollux12 wants to merge 28 commits into
mainfrom
hotfix/various-fixes-scope-regression

Conversation

@Pollux12
Copy link
Copy Markdown
Owner

@Pollux12 Pollux12 commented May 1, 2026

Fix various issues

Pollux12 and others added 28 commits April 29, 2026 22:52
Not sure on the best way to really solve this, I think it's reasonable to assume that the base args for the wiki defined things aren't going to be changed / overridden, so we should instead merge or should meta version where possible for things like hover or type info
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Removes old flow budget stuff that can cause issues with large files
Caches scripted scope scanning once per workspace
Cache and re-use function call infer data
This reduces a lot of noise false positives, but also can reduce the strictness of types. Default on, can be toggled off.
Precomputes workspace-wide facts so common diagnostics can skip full-tree scans when nothing relevant can fire.

Shares the same candidate lists and prefix events across checkers instead of rebuilding them per file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fixes call, export, and generic mismatch checks. Fixes various exact field lookups as well.
Preserve metatable instances and table-backed aliases when resolving dynamic fields.

Keeps hover, definition, completion, and diagnostics on the inferred override from the original annotated version, while also allowing for changes in parameters etc...

Could cause some false positives where heavy overrides are used, with the shape being changed completely, although I doubt many are completely changing base gmod functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant