Help with referencing instances in VSC

so i just started learning VSC today a few hours ago but i can’t seem to figure out how to access instances in my game. like i need to require modules but it doesn’t autocomplete when accessing folders in ReplicatedStorage.

i watched many videos showing how to set up VSC but none of them showed how to solve this or some of them having autocomplete for the instances without showing how or unless im dumb.

1 Like

You probably haven’t generated your type definitions. The LSP doesn’t know what’s in your DataModel unless you use a tool to sync the workspace structure to your local files. Check if you have a sourcemap.json or if your Rojo setup is actually up to date.

LSP? is that like an extension or something?


my current extensions

LSP stands for Language Server Protocol. It is the background process that handles the logic, like autocomplete and error checking. Your extensions are fine, but you need to configure the server to recognize your game’s structure.

like changing the settings for luau language server?

1 Like

No, it is not just a setting. You need to make sure your project is properly synced with Rojo and that you have generated the necessary type definitions so the server can actually see your instances.

1 Like

do you know how I would do that?

1 Like

You need to run a command to generate the globalTypes.d.luau file. If you are using Rojo, check your setup for a script that syncs the DataModel or uses a plugin to dump the workspace structure into types the LSP can read.

1 Like