-
- Notifications
You must be signed in to change notification settings - Fork 386
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
pluginPath is not added to package.path
Currently if a plugin wants to require additional plugin files some extra work is needed.
So far I have done this but I am not even sure if that is right or if there is an easier way.
local fs = require("bee.filesystem") local workspace = require("workspace") local scope = require("workspace.scope") local plugin_path = fs.path(scope.getScope(workspace.rootUri):get('pluginPath')) local new_path = (plugin_path:parent_path() / "?.lua"):string() if not package.path:find(new_path, 1, true) then package.path = package.path..";"..new_path endMetadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request