add and fix tests

This commit is contained in:
Sandeep Somavarapu
2019-12-12 21:30:00 +01:00
parent 59111abe55
commit 33e545eedd
7 changed files with 693 additions and 310 deletions

View File

@@ -257,7 +257,7 @@ export class ExtHostConfigProvider {
private _toConfigurationChangeEvent(change: IConfigurationChange, previous: { data: IConfigurationData, workspace: Workspace | undefined }): vscode.ConfigurationChangeEvent {
const event = new ConfigurationChangeEvent(change, previous, this._configuration, this._extHostWorkspace.workspace);
return Object.freeze({
affectsConfiguration: (section: string, resource?: URI) => event.affectsConfiguration(section, { resource })
affectsConfiguration: (section: string, resource?: URI) => event.affectsConfiguration(section, resource ? { resource } : undefined)
});
}