docs - add note about backslash in patterns

This commit is contained in:
Benjamin Pasero 2018-12-19 07:27:14 +01:00
parent bbe2fdb262
commit 187998c50b

5
src/vs/vscode.d.ts vendored
View file

@ -1854,6 +1854,11 @@ declare module 'vscode' {
* * `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
* * `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, )
* * `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
*
* Note: a backslash (`\`) is not valid within a glob pattern. If you have an existing file
* path to match against, consider to use the [relative pattern](#RelativePattern) support
* that takes care of converting any backslash into slash. Otherwise, make sure to convert
* any backslash to slash when creating the glob pattern.
*/
export type GlobPattern = string | RelativePattern;