We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6779fa3 commit 7b4bf4aCopy full SHA for 7b4bf4a
src/vs/workbench/api/common/extHostTypes.ts
@@ -19,6 +19,12 @@ import { IRelativePatternDto } from 'vs/workbench/api/common/extHost.protocol';
19
import { CellEditType, ICellPartialMetadataEdit, IDocumentMetadataEdit } from 'vs/workbench/contrib/notebook/common/notebookCommon';
20
import type * as vscode from 'vscode';
21
22
+/**
23
+ * @deprecated
24
+ *
25
+ * This utility ensures that old JS code that uses functions for classes still works. Existing usages cannot be removed
26
+ * but new ones must not be added
27
+ * */
28
function es5ClassCompat(target: Function): any {
29
///@ts-expect-error
30
function _() { return Reflect.construct(target, arguments, this.constructor); }
0 commit comments