mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Fix portsAttributes.unconfigured setting name
And fix setting update not read Fixes #118991
This commit is contained in:
@@ -154,7 +154,7 @@ interface PortAttributes extends Attributes {
|
||||
|
||||
export class PortsAttributes extends Disposable {
|
||||
private static SETTING = 'remote.portsAttributes';
|
||||
private static DEFAULTS = 'remote.portsAttributes.unconfigured';
|
||||
private static DEFAULTS = 'remote.unconfiguredPortsAttributes';
|
||||
private static RANGE = /^(\d+)\-(\d+)$/;
|
||||
private portsAttributes: PortAttributes[] = [];
|
||||
private defaultPortAttributes: Attributes | undefined;
|
||||
@@ -164,7 +164,7 @@ export class PortsAttributes extends Disposable {
|
||||
constructor(private readonly configurationService: IConfigurationService) {
|
||||
super();
|
||||
this._register(configurationService.onDidChangeConfiguration(e => {
|
||||
if (e.affectsConfiguration(PortsAttributes.SETTING)) {
|
||||
if (e.affectsConfiguration(PortsAttributes.SETTING) || e.affectsConfiguration(PortsAttributes.DEFAULTS)) {
|
||||
this.updateAttributes();
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user