This commit is contained in:
Sandeep Somavarapu 2017-11-13 12:19:44 +01:00
parent dc46751d22
commit a91380c3d4
2 changed files with 4 additions and 3 deletions

View file

@ -198,8 +198,9 @@ export function getExcludes(configuration: ISearchConfiguration): glob.IExpressi
}
let allExcludes: glob.IExpression = Object.create(null);
allExcludes = objects.mixin(allExcludes, fileExcludes);
allExcludes = objects.mixin(allExcludes, searchExcludes, true);
// clone the config as it could be frozen
allExcludes = objects.mixin(allExcludes, objects.clone(fileExcludes));
allExcludes = objects.mixin(allExcludes, objects.clone(searchExcludes), true);
return allExcludes;
}

View file

@ -174,7 +174,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService
]
}
*/
this.telemetryService.publicLog('workbenchEditorConfiguration', editorConfig);
this.telemetryService.publicLog('workbenchEditorConfiguration', objects.clone(editorConfig)); // Clone because telemetry service will modify the passed data by adding more details.
} else {
this.tabOptions = {
previewEditors: true,