Change protocol to be written to remote settings

This commit is contained in:
Alex Ross
2021-06-25 12:02:42 +02:00
parent 1ef0e4c7d3
commit c0cf0a12c6
2 changed files with 4 additions and 4 deletions

View File

@@ -337,7 +337,7 @@ export class PortsAttributes extends Disposable {
}
}
public async addAttributes(port: number, attributes: Partial<Attributes>) {
public async addAttributes(port: number, attributes: Partial<Attributes>, target: ConfigurationTarget) {
let settingValue = this.configurationService.inspect(PortsAttributes.SETTING);
const userValue: any = settingValue.userLocalValue;
let newUserValue: any;
@@ -354,7 +354,7 @@ export class PortsAttributes extends Disposable {
newUserValue[`${port}`][attribute] = (<any>attributes)[attribute];
}
return this.configurationService.updateValue(PortsAttributes.SETTING, newUserValue, ConfigurationTarget.USER_LOCAL);
return this.configurationService.updateValue(PortsAttributes.SETTING, newUserValue, target);
}
}