Skip to content

Commit 90b1c5d

Browse files
committed
fixup! plugin.d.ts: Document plugin priority correctly
1 parent ead6d13 commit 90b1c5d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/node/plugin.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,22 @@ export class PluginAPI {
8989
* this.csPluginPath and the built in plugins.
9090
*/
9191
public async loadPlugins(): Promise<void> {
92-
// Built-in plugins.
93-
await this._loadPlugins(path.join(__dirname, "../../plugins"))
94-
95-
for (const dir of this.csPluginPath.split(":")) {
92+
for (const dir of this.csPlugin.split(":")) {
9693
if (!dir) {
9794
continue
9895
}
99-
await this._loadPlugins(dir)
96+
await this.loadPlugin(dir)
10097
}
10198

102-
for (const dir of this.csPlugin.split(":")) {
99+
for (const dir of this.csPluginPath.split(":")) {
103100
if (!dir) {
104101
continue
105102
}
106-
await this.loadPlugin(dir)
103+
await this._loadPlugins(dir)
107104
}
105+
106+
// Built-in plugins.
107+
await this._loadPlugins(path.join(__dirname, "../../plugins"))
108108
}
109109

110110
private async _loadPlugins(dir: string): Promise<void> {

0 commit comments

Comments
 (0)