Add locally provided plugins by default

This commit is contained in:
Danielv123 committed 2024-11-25 12:22:16 +00:00
1 parent 05ca4eb25e
commit 636777d935
6 files changed
+87 -24

No files matched your search

+1 -8
View File
@@ -317,14 +317,7 @@ async function initialize(): Promise<InitializeParameters> {
}
logger.info(`Loading available plugins from ${args.pluginList}`);
let pluginList = new Map();
try {
pluginList = new Map(JSON.parse(await fs.readFile(args.pluginList, { encoding: "utf8" })));
} catch (err: any) {
if (err.code !== "ENOENT") {
throw err;
}
}
let pluginList = await lib.loadPluginList(args.pluginList);
// If the command is plugin management we don't try to load plugins
if (command === "plugin") {