You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- main.luarequire('foo') -- my own classlocalfoo=Foo()
foo:bar() -- class Foo doesn't have a method bar()
I'd expect the LSP to offer a code-action that injects a bit of code in the included file, and takes me there, like so:
--- foo.luaclass=require('class')
Foo=class{}
functionFoo:init()
-- ...endfunctionFoo:bar() -- added by LSP-- <<< cursor here -- added by LSPend-- added by LSP
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
e.g. when I have something like this:
I'd expect the LSP to offer a code-action that injects a bit of code in the included file, and takes me there, like so:
Am I missing something in the config?
Beta Was this translation helpful? Give feedback.
All reactions