Skip to content

Commit a107d58

Browse files
committed
Revert "use backslash when writing pattern samples inside jsdoc, fixes microsoft#38464"
This reverts commit d56e250.
1 parent 56196d4 commit a107d58

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/vs/vscode.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,13 +1714,13 @@ declare module 'vscode' {
17141714

17151715
/**
17161716
* A file glob pattern to match file paths against. This can either be a glob pattern string
1717-
* (like `**\*.{ts,js}` or `*.{ts,js}`) or a [relative pattern](#RelativePattern).
1717+
* (like `***.{ts,js}` or `*.{ts,js}`) or a [relative pattern](#RelativePattern).
17181718
*
17191719
* Glob patterns can have the following syntax:
17201720
* * `*` to match one or more characters in a path segment
17211721
* * `?` to match on one character in a path segment
17221722
* * `**` to match any number of path segments, including none
1723-
* * `{}` to group conditions (e.g. `**\*.{ts,js}` matches all TypeScript and JavaScript files)
1723+
* * `{}` to group conditions (e.g. `***.{ts,js}` matches all TypeScript and JavaScript files)
17241724
* * `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
17251725
* * `[!...]` 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`)
17261726
*/
@@ -1732,7 +1732,7 @@ declare module 'vscode' {
17321732
* its resource, or a glob-pattern that is applied to the [path](#TextDocument.fileName).
17331733
*
17341734
* @sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }`
1735-
* @sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**\package.json' }`
1735+
* @sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**package.json' }`
17361736
*/
17371737
export interface DocumentFilter {
17381738

@@ -1758,7 +1758,7 @@ declare module 'vscode' {
17581758
* and [language filters](#DocumentFilter).
17591759
*
17601760
* @sample `let sel:DocumentSelector = 'typescript'`;
1761-
* @sample `let sel:DocumentSelector = ['typescript', { language: 'json', pattern: '**\tsconfig.json' }]`;
1761+
* @sample `let sel:DocumentSelector = ['typescript', { language: 'json', pattern: '**tsconfig.json' }]`;
17621762
*/
17631763
export type DocumentSelector = string | DocumentFilter | (string | DocumentFilter)[];
17641764

@@ -5260,7 +5260,7 @@ declare module 'vscode' {
52605260
/**
52615261
* Find files across all [workspace folders](#workspace.workspaceFolders) in the workspace.
52625262
*
5263-
* @sample `findFiles('**\*.js', '**\node_modules\**', 10)`
5263+
* @sample `findFiles('***.js', '**node_modules**', 10)`
52645264
* @param include A [glob pattern](#GlobPattern) that defines the files to search for. The glob pattern
52655265
* will be matched against the file paths of resulting matches relative to their workspace. Use a [relative pattern](#RelativePattern)
52665266
* to restrict the search results to a [workspace folder](#WorkspaceFolder).

0 commit comments

Comments
 (0)