File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -89,22 +89,22 @@ export class PluginAPI {
89
89
* this.csPluginPath and the built in plugins.
90
90
*/
91
91
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 ( ":" ) ) {
96
93
if ( ! dir ) {
97
94
continue
98
95
}
99
- await this . _loadPlugins ( dir )
96
+ await this . loadPlugin ( dir )
100
97
}
101
98
102
- for ( const dir of this . csPlugin . split ( ":" ) ) {
99
+ for ( const dir of this . csPluginPath . split ( ":" ) ) {
103
100
if ( ! dir ) {
104
101
continue
105
102
}
106
- await this . loadPlugin ( dir )
103
+ await this . _loadPlugins ( dir )
107
104
}
105
+
106
+ // Built-in plugins.
107
+ await this . _loadPlugins ( path . join ( __dirname , "../../plugins" ) )
108
108
}
109
109
110
110
private async _loadPlugins ( dir : string ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments