提交 e15f6352 编写于 作者: R Rob Lourens

Search provider - Make provider methods optional again

上级 319efad1
...@@ -170,7 +170,7 @@ declare module 'vscode' { ...@@ -170,7 +170,7 @@ declare module 'vscode' {
* @param progress A progress callback that must be invoked for all results. * @param progress A progress callback that must be invoked for all results.
* @param token A cancellation token. * @param token A cancellation token.
*/ */
provideFileSearchResults(query: FileSearchQuery, options: FileSearchOptions, progress: Progress<Uri>, token: CancellationToken): Thenable<void>; provideFileSearchResults?(query: FileSearchQuery, options: FileSearchOptions, progress: Progress<Uri>, token: CancellationToken): Thenable<void>;
/** /**
* Provide results that match the given text pattern. * Provide results that match the given text pattern.
...@@ -179,7 +179,7 @@ declare module 'vscode' { ...@@ -179,7 +179,7 @@ declare module 'vscode' {
* @param progress A progress callback that must be invoked for all results. * @param progress A progress callback that must be invoked for all results.
* @param token A cancellation token. * @param token A cancellation token.
*/ */
provideTextSearchResults(query: TextSearchQuery, options: TextSearchOptions, progress: Progress<TextSearchResult>, token: CancellationToken): Thenable<void>; provideTextSearchResults?(query: TextSearchQuery, options: TextSearchOptions, progress: Progress<TextSearchResult>, token: CancellationToken): Thenable<void>;
} }
export interface FindTextInFilesOptions { export interface FindTextInFilesOptions {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册