We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e2e28e commit 2e78cc5Copy full SHA for 2e78cc5
2 files changed
src/utils/define.ts
@@ -262,6 +262,11 @@ export class ProjectConfig {
262
* Project Root Dom Id
263
*/
264
public projectRootId = 'root';
265
+
266
+ /**
267
+ * Enable ensure files
268
+ */
269
+ public ensureFiles = true;
270
}
271
272
export type SetPipe = (pipeName: string, callback: PipeCallback) => void;
src/utils/ensure-files.ts
@@ -7,6 +7,10 @@ import { priEvent } from './pri-events';
7
import { freshGlobalState, globalState } from './global-state';
8
9
export const ensureFiles = async () => {
10
+ if (!globalState.sourceConfig.ensureFiles) {
11
+ return;
12
+ }
13
14
priEvent.emit('beforeEnsureFiles');
15
16
const ensureProjectFilesQueueGroupByPath = _.groupBy(plugin.ensureProjectFilesQueue, 'fileName');
0 commit comments