As a Roblox developer, it is currently impossible to add things to intellisense so that it doesn’t underline it.
For example, me and ThePC8110 scripted a game library which requires multiple modules, and then inserts them into scripts using getfenv and setfenv, meaning intellisense doesn’t work for them as that aren’t declared within that script.
The Sequence here as a wiggly line under it, and it’s super annoying. So it’d be nice to have a way to add things to intellisense to ignore. This would also prove useful to cut out typos when using librarys like this, as it would still get a wiggly line if you spelt it wrong.
EDIT: To clarify what I want, just the ability to have a white list of words which warnings will not show up under
Something OP and others experiencing the issue may find useful in the meanwhile is that you can change the “Warning Color” setting in your script editor colors to match “Background Color” and then the underlines for errors are no longer visible.
If you specifically only want the underlines to disappear for the modules you’re inserting into the environment, you could instead have the library return a table of all your modules. With this approach, what you now have:
require(game:GetService("ReplicatedStorage"):WaitForChild("StandardLibrary"))
local seq = Sequence.New(...)
would become something like this:
local std = require(game:GetService("ReplicatedStorage"):WaitForChild("StandardLibrary"))
local seq = std.Sequence.New(...)
Yeah, definitely – I run into issues with typos with the second approach as well, so it’d be great to have warnings for that. Hence why I clarified that my previous post was something that could be used in the meanwhile.
Note that this would be tricky to implement though, as there’s no easy way to know all of your modules’ indices without running them – at best the syntax highlighter would be able to detect explicit values in an explicit table return. Indices added with setfenv would be able to be detected.