I have a vscode.TextDocument and want to check if the file matches a glob.
const documentFilter: vscode.DocumentFilter = {
pattern: '**/*.md',
};
const matches = vscode.languages.match(documentFilter, document) !== 0;
Glob | vscode.d.ts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With