mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Git - mark git.worktreeIncludeFiles as experimental and reset the default value (#289617)
This commit is contained in:
@@ -3592,11 +3592,12 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": [
|
||||
"**/node_modules/**"
|
||||
],
|
||||
"default": [],
|
||||
"markdownDescription": "%config.worktreeIncludeFiles%",
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%config.worktreeIncludeFiles%"
|
||||
"tags": [
|
||||
"experimental"
|
||||
]
|
||||
},
|
||||
"git.alwaysShowStagedChangesResourceGroup": {
|
||||
"type": "boolean",
|
||||
|
||||
@@ -1902,7 +1902,7 @@ export class Repository implements Disposable {
|
||||
|
||||
private async _getWorktreeIncludePaths(): Promise<Set<string>> {
|
||||
const config = workspace.getConfiguration('git', Uri.file(this.root));
|
||||
const worktreeIncludeFiles = config.get<string[]>('worktreeIncludeFiles', ['**/node_modules/**']);
|
||||
const worktreeIncludeFiles = config.get<string[]>('worktreeIncludeFiles', []);
|
||||
|
||||
if (worktreeIncludeFiles.length === 0) {
|
||||
return new Set<string>();
|
||||
|
||||
Reference in New Issue
Block a user