interface FileSystemServeOptions {
    allow?: string[];
    cachedChecks?: boolean;
    deny?: string[];
    strict?: boolean;
}

Properties

allow?: string[]

Restrict accessing files outside the allowed directories.

Accepts absolute path or a path relative to project root. Will try to search up for workspace root by default.

cachedChecks?: boolean

Enable caching of fs calls. It is enabled by default if no custom watch ignored patterns are provided.

Default

undefined
deny?: string[]

Restrict accessing files that matches the patterns.

This will have higher priority than allow. picomatch patterns are supported.

Default

['.env', '.env.*', '*.crt', '*.pem']
strict?: boolean

Strictly restrict file accessing outside of allowing paths.

Set to false to disable the warning

Default

true