|
1 | 1 | /**
|
2 |
| - * A document filter denotes a document by different properties like |
3 |
| - * the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of |
4 |
| - * its resource, or a glob-pattern that is applied to the [path](#TextDocument.fileName). |
| 2 | + * A document filter denotes a document by different properties like the |
| 3 | + * [language](#TextDocument.languageId), the scheme of its resource, or a glob-pattern that is |
| 4 | + * applied to the [path](#TextDocument.fileName). |
5 | 5 | *
|
6 | 6 | * @sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }`
|
7 | 7 | * @sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**package.json' }`
|
8 | 8 | */
|
9 | 9 | export type DocumentFilter =
|
10 | 10 | | {
|
11 |
| - /** A language id, like `typescript`. */ |
| 11 | + /** A language id, such as `typescript`. */ |
12 | 12 | language: string
|
13 |
| - /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ |
| 13 | + /** A URI scheme, such as `file` or `untitled`. */ |
14 | 14 | scheme?: string
|
15 |
| - /** A glob pattern, like `*.{ts,js}`. */ |
| 15 | + /** A glob pattern, such as `*.{ts,js}`. */ |
16 | 16 | pattern?: string
|
17 | 17 | }
|
18 | 18 | | {
|
19 |
| - /** A language id, like `typescript`. */ |
| 19 | + /** A language id, such as `typescript`. */ |
20 | 20 | language?: string
|
21 |
| - /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ |
| 21 | + /** A URI scheme, such as `file` or `untitled`. */ |
22 | 22 | scheme: string
|
23 |
| - /** A glob pattern, like `*.{ts,js}`. */ |
| 23 | + /** A glob pattern, such as `*.{ts,js}`. */ |
24 | 24 | pattern?: string
|
25 | 25 | }
|
26 | 26 | | {
|
27 |
| - /** A language id, like `typescript`. */ |
| 27 | + /** A language id, such as `typescript`. */ |
28 | 28 | language?: string
|
29 |
| - /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ |
| 29 | + /** A URI scheme, such as `file` or `untitled`. */ |
30 | 30 | scheme?: string
|
31 |
| - /** A glob pattern, like `*.{ts,js}`. */ |
| 31 | + /** A glob pattern, such as `*.{ts,js}`. */ |
32 | 32 | pattern: string
|
33 | 33 | }
|
34 | 34 |
|
|
0 commit comments