mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Use ts-go for building our extensions
Also reverts to use experimental decorators due to stage 3 decorators not being supported yet https://github.com/microsoft/typescript-go/issues/2354 The skipLib check is needed to work around some jsdom types issues
This commit is contained in:
@@ -47,11 +47,11 @@ function _throttle<T>(fn: Function, key: string): Function {
|
||||
return trigger;
|
||||
}
|
||||
|
||||
function decorate(decorator: (fn: Function, key: string) => Function): Function {
|
||||
return function (original: any, context: ClassMethodDecoratorContext) {
|
||||
if (context.kind !== 'method') {
|
||||
function decorate(decorator: (fn: Function, key: string) => Function): MethodDecorator {
|
||||
return (_target: any, key: string | symbol, descriptor: PropertyDescriptor): void => {
|
||||
if (typeof descriptor.value !== 'function') {
|
||||
throw new Error('not supported');
|
||||
}
|
||||
return decorator(original, context.name.toString());
|
||||
descriptor.value = decorator(descriptor.value, String(key));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user