Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T02:37:25.168Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

crates/edit_prediction_cli/evals/vscode--add-class-decorator.md

1.8 KB

+++ repository_url = "https://github.com/microsoft/vscode" revision = "6f6e26fcdf0a7ca5084e0da284cd7a5b2d41ae4d" +++

Edit History

--- a/src/vs/workbench/api/common/extHostTypes.ts
+++ b/src/vs/workbench/api/common/extHostTypes.ts
@@ -18,6 +18,14 @@ import { FileSystemProviderErrorCode, markAsFileSystemProviderError } from 'vs/
 import type * as vscode from 'vscode';

+function es5ClassCompat(target: Function): any {
+	///@ts-expect-error
+	function _() { return Reflect.construct(target, arguments, this.constructor); }
+	Object.defineProperty(_, 'name', Object.getOwnPropertyDescriptor(target, 'name')!);
+	Object.setPrototypeOf(_, target);
+	Object.setPrototypeOf(_.prototype, target.prototype);
+	return _;
+}
+
+@es5ClassCompat
 export class Disposable {
--- a/src/vs/workbench/api/common/extHostTypes.ts
+++ b/src/vs/workbench/api/common/extHostTypes.ts
@@ -50,6 +58,7 @@ export class Disposable {
 	}
 }

+@es5ClassCompat
 export class Position {

 	static Min(...positions: Position[]): Position {
--- a/src/vs/workbench/api/common/extHostTypes.ts
+++ b/src/vs/workbench/api/common/extHostTypes.ts
@@ -220,6 +229,7 @@ export class Position {
 	}
 }

+@es5ClassCompat
 export class Range {

 	static isRange(thing: any): thing is vscode.Range {

Cursor Position

	Prepend = 3
}

export class TextEdit {
// <[CURSOR_POSITION]

	static isTextEdit(thing: any): thing is TextEdit {
		if (thing instanceof TextEdit) {
			return true;

Expected Patch

--- a/src/vs/workbench/api/common/extHostTypes.ts
+++ b/src/vs/workbench/api/common/extHostTypes.ts
@@ -475,6 +485,7 @@ export enum EnvironmentVariableMutatorType {
 	Prepend = 3
 }

+@es5ClassCompat
 export class TextEdit {

 	static isTextEdit(thing: any): thing is TextEdit {
Served at tenant.openagents/omega Member data and write actions are omitted.