From 5b6d54a4b229ce0ccfdf17145c9c07a4bb22f53c Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 8 May 2018 16:32:34 -0700 Subject: [PATCH] use _ to mark some unused params --- src/vs/workbench/api/node/extHostConfiguration.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vs/workbench/api/node/extHostConfiguration.ts b/src/vs/workbench/api/node/extHostConfiguration.ts index aa831b81768..8816bf77700 100644 --- a/src/vs/workbench/api/node/extHostConfiguration.ts +++ b/src/vs/workbench/api/node/extHostConfiguration.ts @@ -121,17 +121,17 @@ export class ExtHostConfiguration implements ExtHostConfigurationShape { } return result; }, - set: (target: any, property: string, value: any) => { + set: (_target: any, property: string, value: any) => { cloneTarget(); clonedTarget[property] = value; return true; }, - deleteProperty: (target: any, property: string) => { + deleteProperty: (_target: any, property: string) => { cloneTarget(); delete clonedTarget[property]; return true; }, - defineProperty: (target: any, property: string, descriptor: any) => { + defineProperty: (_target: any, property: string, descriptor: any) => { cloneTarget(); Object.defineProperty(clonedTarget, property, descriptor); return true; @@ -179,10 +179,10 @@ export class ExtHostConfiguration implements ExtHostConfigurationShape { return isObject(target) ? new Proxy(target, { get: (target: any, property: string) => readonlyProxy(target[property]), - set: (target: any, property: string, value: any) => { throw new Error(`TypeError: Cannot assign to read only property '${property}' of object`); }, - deleteProperty: (target: any, property: string) => { throw new Error(`TypeError: Cannot delete read only property '${property}' of object`); }, - defineProperty: (target: any, property: string) => { throw new Error(`TypeError: Cannot define property '${property}' for a readonly object`); }, - setPrototypeOf: (target: any) => { throw new Error(`TypeError: Cannot set prototype for a readonly object`); }, + set: (_target: any, property: string, _value: any) => { throw new Error(`TypeError: Cannot assign to read only property '${property}' of object`); }, + deleteProperty: (_target: any, property: string) => { throw new Error(`TypeError: Cannot delete read only property '${property}' of object`); }, + defineProperty: (_target: any, property: string) => { throw new Error(`TypeError: Cannot define property '${property}' for a readonly object`); }, + setPrototypeOf: (_target: any) => { throw new Error(`TypeError: Cannot set prototype for a readonly object`); }, isExtensible: () => false, preventExtensions: () => true }) : target;