cfxlua-vscode icon indicating copy to clipboard operation
cfxlua-vscode copied to clipboard

suggestion: definition provider for event strings

Open napei opened this issue 3 years ago • 1 comments

Figured now's a good time to suggest this to someone who knows what they're doing. Something I toyed with a while back and got nowhere with was a definition provider for event strings in vscode.

i.e. Ctrl + Click on a string inside a TriggerServerEvent and that will take you to the RegisterNetEvent declaration for that event.

Potentially something to extend this extension with?

Understandably it would be challenging and limited by things like wrapped event name declarations with auto-prefixing and stuff like that.

napei avatar Oct 03 '22 01:10 napei

I'll leave the suggestion here, but not likely to happen; I'm just focused on types and declarations. The extension exists to simplify installing and updating the library and plugin used by sumneko.

Ideally this extension gets replaced by Cfx in the future, who may be more inclined to add something like that (hopefully not exclusive to FxCode).

thelindat avatar Oct 03 '22 03:10 thelindat