Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/OneExplorer/OneStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class OneStorage {
* @param root the file or directory,
* which MUST exist in the file system
*/
private _initCfgList(roots: string[] = obtainWorkspaceRoots()): string[] {
private _getCfgList(roots: string[] = obtainWorkspaceRoots()): string[] {
/**
* Returns an array of all the file names inside the root directory
* @todo Check soft link
Expand All @@ -96,7 +96,7 @@ export class OneStorage {
return roots.map(root => readdirSyncRecursive(root).filter(val => val.endsWith('.cfg')))
.reduce((prev, cur) => [...prev, ...cur]);
} catch {
Logger.error('OneExplorer', '_initCfgList', 'called on not existing directory or file.');
Logger.error('OneExplorer', '_getCfgList()', 'called on not existing directory or file.');
return [];
}
}
Expand Down Expand Up @@ -148,7 +148,7 @@ export class OneStorage {
}

private constructor() {
const cfgList = this._initCfgList();
const cfgList = this._getCfgList();
this._cfgToCfgObjMap = this._initCfgToCfgObjMap(cfgList);
this._baseModelToCfgsMap = this._initBaseModelToCfgsMap(cfgList, this._cfgToCfgObjMap);
}
Expand Down