Skip to content

Docs mistake: FindTextInFilesOptions.useDefaultExcludes defaults to false, not true. #204179

Open

Description

@andreamah
  1. Run an extension with the findTextInFiles API enabled and make a command that runs this:
		const progress: vscode.Progress<vscode.TextSearchResult> = {
			report(item) {
				console.log(item.uri.toString());
			}
		};

		await vscode.workspace.findTextInFiles(
			{ pattern: '[\\S\\s\\n]+', isRegExp: true  },
			{}, result => progress.report(result),
			new vscode.CancellationTokenSource().token
		);
  1. Notice that it doesn't use the default files.exclude to dictate results, but the docs say that it defaults to true.

It makes more sense for it to default to true, and perhaps we can change this because it's still a proposed API.

Activity

  1. added
    bug
    search
    on Feb 2, 2024
  2. added this to the On Deck milestone on Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugsearch

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions