@@ -1475,7 +1475,8 @@ declare module 'vscode' {
1475
1475
* A function that represents an event to which you subscribe by calling it with
1476
1476
* a listener function as argument.
1477
1477
*
1478
- * @sample `item.onDidChange(function(event) { console.log("Event happened: " + event); });`
1478
+ * @example
1479
+ * item.onDidChange(function(event) { console.log("Event happened: " + event); });
1479
1480
*/
1480
1481
export interface Event < T > {
1481
1482
@@ -1920,8 +1921,11 @@ declare module 'vscode' {
1920
1921
* the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
1921
1922
* its resource, or a glob-pattern that is applied to the [path](#TextDocument.fileName).
1922
1923
*
1923
- * @sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }`
1924
- * @sample A language filter that applies to all package.json paths: `{ language: 'json', scheme: 'untitled', pattern: '**/package.json' }`
1924
+ * @example <caption>A language filter that applies to typescript files on disk</caption>
1925
+ * { language: 'typescript', scheme: 'file' }
1926
+ *
1927
+ * @example <caption>A language filter that applies to all package.json paths</caption>
1928
+ * { language: 'json', scheme: 'untitled', pattern: '**/package.json' }
1925
1929
*/
1926
1930
export interface DocumentFilter {
1927
1931
@@ -1951,7 +1955,8 @@ declare module 'vscode' {
1951
1955
* a feature works without further context, e.g. without the need to resolve related
1952
1956
* 'files'.
1953
1957
*
1954
- * @sample `let sel:DocumentSelector = { scheme: 'file', language: 'typescript' }`;
1958
+ * @example
1959
+ * let sel:DocumentSelector = { scheme: 'file', language: 'typescript' };
1955
1960
*/
1956
1961
export type DocumentSelector = DocumentFilter | string | Array < DocumentFilter | string > ;
1957
1962
@@ -9724,7 +9729,9 @@ declare module 'vscode' {
9724
9729
/**
9725
9730
* Find files across all [workspace folders](#workspace.workspaceFolders) in the workspace.
9726
9731
*
9727
- * @sample `findFiles('**/*.js', '**/node_modules/**', 10)`
9732
+ * @example
9733
+ * findFiles('**/*.js', '**/node_modules/**', 10)
9734
+ *
9728
9735
* @param include A [glob pattern](#GlobPattern) that defines the files to search for. The glob pattern
9729
9736
* will be matched against the file paths of resulting matches relative to their workspace. Use a [relative pattern](#RelativePattern)
9730
9737
* to restrict the search results to a [workspace folder](#WorkspaceFolder).
0 commit comments