How to use the @theia/filesystem/lib/browser/filesystem-preferences.createFileSystemPreferences function in @theia/filesystem

To help you get started, we’ve selected a few @theia/filesystem examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipse-theia / theia / packages / preferences / src / browser / preference-service.spec.ts View on Github external
testContainer.bind(FileSystemPreferences).toDynamicValue(ctx => {
        const preferences = ctx.container.get(PreferenceService);
        return createFileSystemPreferences(preferences);
    }).inSingletonScope();
github eclipse-theia / theia / packages / userstorage / src / browser / user-storage-service-filesystem.spec.ts View on Github external
testContainer.bind(FileSystemPreferences).toDynamicValue(ctx => {
        const preferences = ctx.container.get(PreferenceService);
        sinon.stub(preferences, 'get').returns({
            'files.watcherExclude': {
                '**/.git/objects/**': true,
                '**/.git/subtree-cache/**': true,
                '**/node_modules/**': true
            }
        });
        return createFileSystemPreferences(preferences);
    }).inSingletonScope();