Skip to main content

Interface: Features

Defined in: packages/cspell-types/dist/index.d.mts:1223

Features are behaviors or settings that can be explicitly configured.

Extends​

  • Partial<FeaturesActive>
  • Partial<FeaturesDeprecated>
  • Partial<FeaturesExperimental>

Properties​

overrideGlobsMatchFilesOnly?​

optional overrideGlobsMatchFilesOnly?: boolean

Defined in: packages/cspell-types/dist/index.d.mts:1208

Make the filename globs in overrides match only the path they name.

When disabled, a glob also matches the files inside a folder with that name. For example, examples.ts matches a file named examples.ts and every file inside a folder named examples.ts. A glob ending in /**, such as src/**, also matches a file named src.

When enabled:

  • A glob such as examples.ts or /src matches only a file with that name.
  • To apply an override to the files in a folder, end the glob with /, for example src/ or /src/.

Since​

10.5.0

Default​

false

Inherited from​

Partial.overrideGlobsMatchFilesOnly


weighted-suggestions?​

optional weighted-suggestions?: boolean

Defined in: packages/cspell-types/dist/index.d.mts:1184

Enable/disable using weighted suggestions.

Inherited from​

Partial.weighted-suggestions