Skip to content

Commit 2b812ee

Browse files
committed
Change workspace.searchLimit default to 10
1 parent e6dee37 commit 2b812ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ Provides type hint auto-completion for Python, with completion items for built-i
88

99
## Features
1010

11-
* Estimates the correct type to provide as a completion item.
11+
* Provides type hint completion items for built-in types, estimated types and the typing module.
1212

13-
* Searches Python files in the workspace for type estimation purposes.
13+
* Estimates the correct type to provide as a completion item.
1414

15-
* Can provide completion items for the typing module if it is imported.
15+
* Can search Python files in the workspace for type estimation purposes.
1616

1717
## Settings
1818

1919
| Name | Description | Default
2020
|---|---|---|
2121
| workspace.searchEnabled | _(boolean)_ If enabled, other files in the workspace are searched when estimating types for a parameter. Disabling this will increase performance, but may reduce estimation accuracy. | true
22-
| workspace.searchLimit | _(number)_ The maximum number of files searched in a workspace search. | 20
22+
| workspace.searchLimit | _(number)_ The maximum number of files searched in a workspace search. Has no effect if workspace searching is disabled. | 10
2323

2424
## Known Issues
2525

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
},
5151
"workspace.searchLimit": {
5252
"type": "number",
53-
"default": 20,
54-
"description": "The maximum number of files searched in a workspace search."
53+
"default": 10,
54+
"description": "The maximum number of files searched in a workspace search. Has no effect if workspace searching is disabled."
5555
}
5656
}
5757
}

src/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { workspace, Event, EventEmitter } from "vscode";
66
export class TypeHintSettings {
77

88
private _workspaceSearchEnabled = true;
9-
private _workspaceSearchLimit = 20;
9+
private _workspaceSearchLimit = 10;
1010

1111
constructor() {
1212
workspace.onDidChangeConfiguration(() => {

0 commit comments

Comments
 (0)