Options
All
  • Public
  • Public/Protected
  • All
Menu

A document filter denotes a document by different properties like the language, the scheme of its resource, or a glob-pattern that is applied to the path.

example
A language filter that applies to typescript files on disk { language: 'typescript', scheme: 'file' }
example
A language filter that applies to all package.json paths { language: 'json', pattern: '**​/package.json' }

层级

  • DocumentFilter

索引

Properties(3)

Properties(3)

Optional Readonly language

language: string

A language id, like typescript.

Optional Readonly scheme

scheme: string

A Uri scheme, like file or untitled.

Optional Readonly pattern

pattern: GlobPattern

A glob pattern that is matched on the absolute path of the document. Use a relative pattern to filter documents to a workspace folder.

VS Code 插件开发中文文档 | VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc | 站长统计