Type Alias DocumentSelector

DocumentSelector: (string | DocumentFilter)[]

A document selector is the combination of one or many document filters.

let sel:DocumentSelector = [{ language: 'typescript' }, { language: 'json', pattern: '**∕tsconfig.json' }];

The use of a string as a document filter is deprecated

3.16.0.