Skip to content

EmmyLua plugin as an extension #417

Closed
@Ketho

Description

@Ketho

I want to create a VS Code extension which provides EmmyLua annotations to the Lua language server.
https://github.com/Ketho/vscode-wow-api/tree/master/EmmyLua

Currently I'm trying to add a dependency and edit your Lua.workspace.library configuration.

"extensionDependencies": [
	"sumneko.lua"
]
let luaConfig = vscode.workspace.getConfiguration("Lua")
let path = "C:\\Users\\Ketho\\.vscode\\extensions\\ketho.wow-api-0.0.2\\EmmyLua"
luaConfig.workspace.library[path] = true

But this doesn't work since the configuration seems to be a proxy object. I also don't know how to use a relative path to my extension's emmylua folder.

What is the proper way to make an EmmyLua plugin/extension? I looked at https://github.com/sumneko/lua-language-server/wiki/Plugin-(Experimental) but that seems to be for something different 😕

*Sorry if this issue should be filed under https://github.com/sumneko/vscode-lua

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions