@opensumi/ide-components 3.4.5-next-1729664938.0 → 3.4.5-next-1729826189.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -6802,7 +6802,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n//#
6802
6802
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
6803
6803
 
6804
6804
  "use strict";
6805
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ChatAgentViewServiceToken = exports.ChatServiceToken = exports.IntelligentCompletionsRegistryToken = exports.TerminalRegistryToken = exports.ProblemFixRegistryToken = exports.RenameCandidatesProviderRegistryToken = exports.ResolveConflictRegistryToken = exports.ChatRenderRegistryToken = exports.ChatFeatureRegistryToken = exports.InlineChatFeatureRegistryToken = exports.CancelResponse = exports.ErrorResponse = exports.ReplyResponse = exports.AIBackSerivcePath = exports.AIBackSerivceToken = exports.ECompletionType = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\ntslib_1.__exportStar(__webpack_require__(/*! ./reporter */ \"../core-common/lib/types/ai-native/reporter.js\"), exports);\nvar ECompletionType;\n(function (ECompletionType) {\n /**\n * 行补全\n */\n ECompletionType[ECompletionType[\"Line\"] = 0] = \"Line\";\n /**\n * 片段补全\n */\n ECompletionType[ECompletionType[\"Snippet\"] = 1] = \"Snippet\";\n /**\n * 块补全\n */\n ECompletionType[ECompletionType[\"Block\"] = 2] = \"Block\";\n})(ECompletionType = exports.ECompletionType || (exports.ECompletionType = {}));\nexports.AIBackSerivceToken = Symbol('AIBackSerivceToken');\nexports.AIBackSerivcePath = 'AIBackSerivcePath';\nclass ReplyResponse {\n get message() {\n return this._message;\n }\n constructor(_message) {\n this._message = _message;\n }\n static is(response) {\n return response instanceof ReplyResponse || (typeof response === 'object' && response.message !== undefined);\n }\n extractCodeContent() {\n const regex = /```\\w*([\\s\\S]+?)\\s*```/;\n const match = regex.exec(this.message);\n return match ? match[1].trim() : this.message.trim();\n }\n updateMessage(msg) {\n this._message = msg;\n }\n}\nexports.ReplyResponse = ReplyResponse;\nclass ErrorResponse {\n constructor(error, message) {\n this.error = error;\n this.message = message;\n }\n static is(response) {\n return response instanceof ErrorResponse || (typeof response === 'object' && response.error !== undefined);\n }\n}\nexports.ErrorResponse = ErrorResponse;\nclass CancelResponse {\n constructor(message) {\n this.message = message;\n this.cancellation = true;\n }\n static is(response) {\n return response instanceof CancelResponse || (typeof response === 'object' && response.cancellation !== undefined);\n }\n}\nexports.CancelResponse = CancelResponse;\n/**\n * DI Token\n */\nexports.InlineChatFeatureRegistryToken = Symbol('InlineChatFeatureRegistryToken');\nexports.ChatFeatureRegistryToken = Symbol('ChatFeatureRegistryToken');\nexports.ChatRenderRegistryToken = Symbol('ChatRenderRegistryToken');\nexports.ResolveConflictRegistryToken = Symbol('ResolveConflictRegistryToken');\nexports.RenameCandidatesProviderRegistryToken = Symbol('RenameCandidatesProviderRegistryToken');\nexports.ProblemFixRegistryToken = Symbol('ProblemFixRegistryToken');\nexports.TerminalRegistryToken = Symbol('TerminalRegistryToken');\nexports.IntelligentCompletionsRegistryToken = Symbol('IntelligentCompletionsRegistryToken');\nexports.ChatServiceToken = Symbol('ChatServiceToken');\nexports.ChatAgentViewServiceToken = Symbol('ChatAgentViewServiceToken');\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/types/ai-native/index.js?");
6805
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.ECodeEditsSourceTyping = exports.ChatAgentViewServiceToken = exports.ChatServiceToken = exports.IntelligentCompletionsRegistryToken = exports.TerminalRegistryToken = exports.ProblemFixRegistryToken = exports.RenameCandidatesProviderRegistryToken = exports.ResolveConflictRegistryToken = exports.ChatRenderRegistryToken = exports.ChatFeatureRegistryToken = exports.InlineChatFeatureRegistryToken = exports.CancelResponse = exports.ErrorResponse = exports.ReplyResponse = exports.AIBackSerivcePath = exports.AIBackSerivceToken = exports.ECompletionType = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\ntslib_1.__exportStar(__webpack_require__(/*! ./reporter */ \"../core-common/lib/types/ai-native/reporter.js\"), exports);\nvar ECompletionType;\n(function (ECompletionType) {\n /**\n * 行补全\n */\n ECompletionType[ECompletionType[\"Line\"] = 0] = \"Line\";\n /**\n * 片段补全\n */\n ECompletionType[ECompletionType[\"Snippet\"] = 1] = \"Snippet\";\n /**\n * 块补全\n */\n ECompletionType[ECompletionType[\"Block\"] = 2] = \"Block\";\n})(ECompletionType = exports.ECompletionType || (exports.ECompletionType = {}));\nexports.AIBackSerivceToken = Symbol('AIBackSerivceToken');\nexports.AIBackSerivcePath = 'AIBackSerivcePath';\nclass ReplyResponse {\n get message() {\n return this._message;\n }\n constructor(_message) {\n this._message = _message;\n }\n static is(response) {\n return response instanceof ReplyResponse || (typeof response === 'object' && response.message !== undefined);\n }\n extractCodeContent() {\n const regex = /```\\w*([\\s\\S]+?)\\s*```/;\n const match = regex.exec(this.message);\n return match ? match[1].trim() : this.message.trim();\n }\n updateMessage(msg) {\n this._message = msg;\n }\n}\nexports.ReplyResponse = ReplyResponse;\nclass ErrorResponse {\n constructor(error, message) {\n this.error = error;\n this.message = message;\n }\n static is(response) {\n return response instanceof ErrorResponse || (typeof response === 'object' && response.error !== undefined);\n }\n}\nexports.ErrorResponse = ErrorResponse;\nclass CancelResponse {\n constructor(message) {\n this.message = message;\n this.cancellation = true;\n }\n static is(response) {\n return response instanceof CancelResponse || (typeof response === 'object' && response.cancellation !== undefined);\n }\n}\nexports.CancelResponse = CancelResponse;\n/**\n * DI Token\n */\nexports.InlineChatFeatureRegistryToken = Symbol('InlineChatFeatureRegistryToken');\nexports.ChatFeatureRegistryToken = Symbol('ChatFeatureRegistryToken');\nexports.ChatRenderRegistryToken = Symbol('ChatRenderRegistryToken');\nexports.ResolveConflictRegistryToken = Symbol('ResolveConflictRegistryToken');\nexports.RenameCandidatesProviderRegistryToken = Symbol('RenameCandidatesProviderRegistryToken');\nexports.ProblemFixRegistryToken = Symbol('ProblemFixRegistryToken');\nexports.TerminalRegistryToken = Symbol('TerminalRegistryToken');\nexports.IntelligentCompletionsRegistryToken = Symbol('IntelligentCompletionsRegistryToken');\nexports.ChatServiceToken = Symbol('ChatServiceToken');\nexports.ChatAgentViewServiceToken = Symbol('ChatAgentViewServiceToken');\n// ## Code Edits start ##\nvar ECodeEditsSourceTyping;\n(function (ECodeEditsSourceTyping) {\n ECodeEditsSourceTyping[\"LinterErrors\"] = \"lint_errors\";\n ECodeEditsSourceTyping[\"LineChange\"] = \"line_change\";\n})(ECodeEditsSourceTyping = exports.ECodeEditsSourceTyping || (exports.ECodeEditsSourceTyping = {}));\n// ## Code Edits ends ##\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/types/ai-native/index.js?");
6806
6806
 
6807
6807
  /***/ }),
6808
6808
 
@@ -6813,7 +6813,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
6813
6813
  /***/ ((__unused_webpack_module, exports) => {
6814
6814
 
6815
6815
  "use strict";
6816
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.IAIReporter = exports.MergeConflictEditorMode = exports.ActionTypeEnum = exports.ActionSourceEnum = exports.AISerivceType = exports.AI_REPORTER_NAME = void 0;\nexports.AI_REPORTER_NAME = 'AI';\nvar AISerivceType;\n(function (AISerivceType) {\n AISerivceType[\"Chat\"] = \"chat\";\n AISerivceType[\"InlineChat\"] = \"inlineChat\";\n AISerivceType[\"CodeAction\"] = \"codeAction\";\n AISerivceType[\"InlineChatInput\"] = \"inlineChatInput\";\n AISerivceType[\"CustomReplay\"] = \"customReplay\";\n AISerivceType[\"Completion\"] = \"completion\";\n AISerivceType[\"Agent\"] = \"agent\";\n AISerivceType[\"MergeConflict\"] = \"mergeConflict\";\n AISerivceType[\"Rename\"] = \"rename\";\n AISerivceType[\"TerminalAICommand\"] = \"terminalAICommand\";\n AISerivceType[\"ProblemFix\"] = \"problemFix\";\n})(AISerivceType = exports.AISerivceType || (exports.AISerivceType = {}));\nvar ActionSourceEnum;\n(function (ActionSourceEnum) {\n // 聊天面板\n ActionSourceEnum[\"Chat\"] = \"chat\";\n // 编辑器内联 Chat\n ActionSourceEnum[\"InlineChat\"] = \"inlineChat\";\n // 编辑器内联 ChatInput\n ActionSourceEnum[\"InlineChatInput\"] = \"inlineChatInput\";\n // 编辑器内 Action\n ActionSourceEnum[\"CodeAction\"] = \"codeAction\";\n // 终端\n ActionSourceEnum[\"Terminal\"] = \"terminal\";\n // 下拉补全 | 自动补全\n ActionSourceEnum[\"Completion\"] = \"completion\";\n // 编辑器内悬停操作\n ActionSourceEnum[\"Hover\"] = \"hover\";\n})(ActionSourceEnum = exports.ActionSourceEnum || (exports.ActionSourceEnum = {}));\nvar ActionTypeEnum;\n(function (ActionTypeEnum) {\n // 自动补全\n ActionTypeEnum[\"Completion\"] = \"completion\";\n // 下拉补全\n ActionTypeEnum[\"DropdownCompletion\"] = \"dropdownCompletion\";\n // ai重命名\n ActionTypeEnum[\"Rename\"] = \"rename\";\n // Chat面板 插入代码\n ActionTypeEnum[\"ChatInsertCode\"] = \"chatInsertCode\";\n // Chat面板 复制代码\n ActionTypeEnum[\"ChatCopyCode\"] = \"chatCopyCode\";\n // Chat面板 欢迎语的Action\n ActionTypeEnum[\"Welcome\"] = \"welcome\";\n // Chat面板 回复消息的Action\n ActionTypeEnum[\"Followup\"] = \"followup\";\n // 发送消息\n ActionTypeEnum[\"Send\"] = \"send\";\n // 生成代码后的行动点:全部采纳\n ActionTypeEnum[\"Accept\"] = \"accept\";\n // 生成代码后的行动点:单模块采纳\n ActionTypeEnum[\"lineAccept\"] = \"lineAccept\";\n // 生成代码后的行动点:全部拒绝\n ActionTypeEnum[\"Discard\"] = \"discard\";\n // 生成代码后的行动点:全部拒绝\n ActionTypeEnum[\"LineDiscard\"] = \"lineDiscard\";\n // 生成代码后的行动点:重新生成\n ActionTypeEnum[\"Regenerate\"] = \"regenerate\";\n // 悬停的问题修复\n ActionTypeEnum[\"HoverFix\"] = \"hoverFix\";\n // 包含业务自定义的Action\n})(ActionTypeEnum = exports.ActionTypeEnum || (exports.ActionTypeEnum = {}));\nvar MergeConflictEditorMode;\n(function (MergeConflictEditorMode) {\n MergeConflictEditorMode[\"3way\"] = \"3way\";\n MergeConflictEditorMode[\"traditional\"] = \"traditional\";\n})(MergeConflictEditorMode = exports.MergeConflictEditorMode || (exports.MergeConflictEditorMode = {}));\nexports.IAIReporter = Symbol('IAIReporter');\n//# sourceMappingURL=reporter.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/types/ai-native/reporter.js?");
6816
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.IAIReporter = exports.MergeConflictEditorMode = exports.ActionTypeEnum = exports.ActionSourceEnum = exports.AISerivceType = exports.AI_REPORTER_NAME = void 0;\nexports.AI_REPORTER_NAME = 'AI';\nvar AISerivceType;\n(function (AISerivceType) {\n AISerivceType[\"Chat\"] = \"chat\";\n AISerivceType[\"InlineChat\"] = \"inlineChat\";\n AISerivceType[\"CodeAction\"] = \"codeAction\";\n AISerivceType[\"InlineChatInput\"] = \"inlineChatInput\";\n AISerivceType[\"CustomReplay\"] = \"customReplay\";\n AISerivceType[\"Completion\"] = \"completion\";\n AISerivceType[\"Agent\"] = \"agent\";\n AISerivceType[\"MergeConflict\"] = \"mergeConflict\";\n AISerivceType[\"Rename\"] = \"rename\";\n AISerivceType[\"TerminalAICommand\"] = \"terminalAICommand\";\n AISerivceType[\"ProblemFix\"] = \"problemFix\";\n AISerivceType[\"CodeEdits\"] = \"codeEdits\";\n})(AISerivceType = exports.AISerivceType || (exports.AISerivceType = {}));\nvar ActionSourceEnum;\n(function (ActionSourceEnum) {\n // 聊天面板\n ActionSourceEnum[\"Chat\"] = \"chat\";\n // 编辑器内联 Chat\n ActionSourceEnum[\"InlineChat\"] = \"inlineChat\";\n // 编辑器内联 ChatInput\n ActionSourceEnum[\"InlineChatInput\"] = \"inlineChatInput\";\n // 编辑器内 Action\n ActionSourceEnum[\"CodeAction\"] = \"codeAction\";\n // 终端\n ActionSourceEnum[\"Terminal\"] = \"terminal\";\n // 下拉补全 | 自动补全\n ActionSourceEnum[\"Completion\"] = \"completion\";\n // 编辑器内悬停操作\n ActionSourceEnum[\"Hover\"] = \"hover\";\n})(ActionSourceEnum = exports.ActionSourceEnum || (exports.ActionSourceEnum = {}));\nvar ActionTypeEnum;\n(function (ActionTypeEnum) {\n // 自动补全\n ActionTypeEnum[\"Completion\"] = \"completion\";\n // 下拉补全\n ActionTypeEnum[\"DropdownCompletion\"] = \"dropdownCompletion\";\n // ai重命名\n ActionTypeEnum[\"Rename\"] = \"rename\";\n // Chat面板 插入代码\n ActionTypeEnum[\"ChatInsertCode\"] = \"chatInsertCode\";\n // Chat面板 复制代码\n ActionTypeEnum[\"ChatCopyCode\"] = \"chatCopyCode\";\n // Chat面板 欢迎语的Action\n ActionTypeEnum[\"Welcome\"] = \"welcome\";\n // Chat面板 回复消息的Action\n ActionTypeEnum[\"Followup\"] = \"followup\";\n // 发送消息\n ActionTypeEnum[\"Send\"] = \"send\";\n // 生成代码后的行动点:全部采纳\n ActionTypeEnum[\"Accept\"] = \"accept\";\n // 生成代码后的行动点:单模块采纳\n ActionTypeEnum[\"lineAccept\"] = \"lineAccept\";\n // 生成代码后的行动点:全部拒绝\n ActionTypeEnum[\"Discard\"] = \"discard\";\n // 生成代码后的行动点:全部拒绝\n ActionTypeEnum[\"LineDiscard\"] = \"lineDiscard\";\n // 生成代码后的行动点:重新生成\n ActionTypeEnum[\"Regenerate\"] = \"regenerate\";\n // 悬停的问题修复\n ActionTypeEnum[\"HoverFix\"] = \"hoverFix\";\n // 包含业务自定义的Action\n})(ActionTypeEnum = exports.ActionTypeEnum || (exports.ActionTypeEnum = {}));\nvar MergeConflictEditorMode;\n(function (MergeConflictEditorMode) {\n MergeConflictEditorMode[\"3way\"] = \"3way\";\n MergeConflictEditorMode[\"traditional\"] = \"traditional\";\n})(MergeConflictEditorMode = exports.MergeConflictEditorMode || (exports.MergeConflictEditorMode = {}));\nexports.IAIReporter = Symbol('IAIReporter');\n//# sourceMappingURL=reporter.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../core-common/lib/types/ai-native/reporter.js?");
6817
6817
 
6818
6818
  /***/ }),
6819
6819
 
@@ -7077,7 +7077,7 @@ eval("\n/* ---------------------------------------------------------------------
7077
7077
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7078
7078
 
7079
7079
  "use strict";
7080
- eval("\n/* ---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// Some code copied and modified from https://github.com/microsoft/vscode/blob/1.44.0/src/vs/base/common/cancellation.ts\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.CancellationTokenSource = exports.CancellationToken = void 0;\nconst event_1 = __webpack_require__(/*! ./event */ \"../utils/lib/event.js\");\nconst shortcutEvent = Object.freeze(function (callback, context) {\n const handle = setTimeout(callback.bind(context), 0);\n return {\n dispose() {\n clearTimeout(handle);\n },\n };\n});\nvar CancellationToken;\n(function (CancellationToken) {\n function isCancellationToken(thing) {\n if (thing === CancellationToken.None || thing === CancellationToken.Cancelled) {\n return true;\n }\n if (thing instanceof MutableToken) {\n return true;\n }\n if (!thing || typeof thing !== 'object') {\n return false;\n }\n return (typeof thing.isCancellationRequested === 'boolean' &&\n typeof thing.onCancellationRequested === 'function');\n }\n CancellationToken.isCancellationToken = isCancellationToken;\n function resolveIfCancelled(token, value) {\n return new Promise((resolve) => {\n const listener = token.onCancellationRequested(() => {\n listener.dispose();\n resolve(value);\n });\n });\n }\n CancellationToken.resolveIfCancelled = resolveIfCancelled;\n CancellationToken.None = Object.freeze({\n isCancellationRequested: false,\n onCancellationRequested: event_1.Event.None,\n });\n CancellationToken.Cancelled = Object.freeze({\n isCancellationRequested: true,\n onCancellationRequested: shortcutEvent,\n });\n})(CancellationToken = exports.CancellationToken || (exports.CancellationToken = {}));\nclass MutableToken {\n constructor() {\n this._isCancelled = false;\n this._emitter = null;\n }\n cancel() {\n if (!this._isCancelled) {\n this._isCancelled = true;\n if (this._emitter) {\n this._emitter.fire(undefined);\n this.dispose();\n }\n }\n }\n get isCancellationRequested() {\n return this._isCancelled;\n }\n get onCancellationRequested() {\n if (this._isCancelled) {\n return shortcutEvent;\n }\n if (!this._emitter) {\n this._emitter = new event_1.Emitter();\n }\n return this._emitter.event;\n }\n dispose() {\n if (this._emitter) {\n this._emitter.dispose();\n this._emitter = null;\n }\n }\n}\nclass CancellationTokenSource {\n constructor(parent) {\n this._token = undefined;\n this._parentListener = undefined;\n this._parentListener = parent && parent.onCancellationRequested(this.cancel, this);\n }\n get token() {\n if (!this._token) {\n // be lazy and create the token only when\n // actually needed\n this._token = new MutableToken();\n }\n return this._token;\n }\n cancel() {\n if (!this._token) {\n // save an object by returning the default\n // cancelled token when cancellation happens\n // before someone asks for the token\n this._token = CancellationToken.Cancelled;\n }\n else if (this._token instanceof MutableToken) {\n // actually cancel\n this._token.cancel();\n }\n }\n dispose(cancel = false) {\n if (cancel) {\n this.cancel();\n }\n if (this._parentListener) {\n this._parentListener.dispose();\n }\n if (!this._token) {\n // ensure to initialize with an empty token if we had none\n this._token = CancellationToken.None;\n }\n else if (this._token instanceof MutableToken) {\n // actually dispose\n this._token.dispose();\n }\n }\n}\nexports.CancellationTokenSource = CancellationTokenSource;\n//# sourceMappingURL=cancellation.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../utils/lib/cancellation.js?");
7080
+ eval("\n/* ---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// Some code copied and modified from https://github.com/microsoft/vscode/blob/1.87.2/src/vs/base/common/cancellation.ts\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.CancellationTokenSource = exports.CancellationToken = void 0;\nconst event_1 = __webpack_require__(/*! ./event */ \"../utils/lib/event.js\");\nconst shortcutEvent = Object.freeze(function (callback, context) {\n const handle = setTimeout(callback.bind(context), 0);\n return {\n dispose() {\n clearTimeout(handle);\n },\n };\n});\nvar CancellationToken;\n(function (CancellationToken) {\n function isCancellationToken(thing) {\n if (thing === CancellationToken.None || thing === CancellationToken.Cancelled) {\n return true;\n }\n if (thing instanceof MutableToken) {\n return true;\n }\n if (!thing || typeof thing !== 'object') {\n return false;\n }\n return (typeof thing.isCancellationRequested === 'boolean' &&\n typeof thing.onCancellationRequested === 'function');\n }\n CancellationToken.isCancellationToken = isCancellationToken;\n CancellationToken.None = Object.freeze({\n isCancellationRequested: false,\n onCancellationRequested: event_1.Event.None,\n });\n CancellationToken.Cancelled = Object.freeze({\n isCancellationRequested: true,\n onCancellationRequested: shortcutEvent,\n });\n})(CancellationToken = exports.CancellationToken || (exports.CancellationToken = {}));\nclass MutableToken {\n constructor() {\n this._isCancelled = false;\n this._emitter = null;\n }\n cancel() {\n if (!this._isCancelled) {\n this._isCancelled = true;\n if (this._emitter) {\n this._emitter.fire(undefined);\n this.dispose();\n }\n }\n }\n get isCancellationRequested() {\n return this._isCancelled;\n }\n get onCancellationRequested() {\n if (this._isCancelled) {\n return shortcutEvent;\n }\n if (!this._emitter) {\n this._emitter = new event_1.Emitter();\n }\n return this._emitter.event;\n }\n dispose() {\n if (this._emitter) {\n this._emitter.dispose();\n this._emitter = null;\n }\n }\n}\nclass CancellationTokenSource {\n constructor(parent) {\n this._token = undefined;\n this._parentListener = undefined;\n this._parentListener = parent && parent.onCancellationRequested(this.cancel, this);\n }\n get token() {\n if (!this._token) {\n // be lazy and create the token only when\n // actually needed\n this._token = new MutableToken();\n }\n return this._token;\n }\n cancel() {\n if (!this._token) {\n // save an object by returning the default\n // cancelled token when cancellation happens\n // before someone asks for the token\n this._token = CancellationToken.Cancelled;\n }\n else if (this._token instanceof MutableToken) {\n // actually cancel\n this._token.cancel();\n }\n }\n dispose(cancel = false) {\n var _a;\n if (cancel) {\n this.cancel();\n }\n (_a = this._parentListener) === null || _a === void 0 ? void 0 : _a.dispose();\n if (!this._token) {\n // ensure to initialize with an empty token if we had none\n this._token = CancellationToken.None;\n }\n else if (this._token instanceof MutableToken) {\n // actually dispose\n this._token.dispose();\n }\n }\n}\nexports.CancellationTokenSource = CancellationTokenSource;\n//# sourceMappingURL=cancellation.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../utils/lib/cancellation.js?");
7081
7081
 
7082
7082
  /***/ }),
7083
7083
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-components",
3
- "version": "3.4.5-next-1729664938.0",
3
+ "version": "3.4.5-next-1729826189.0",
4
4
  "description": "@opensumi/ide-components",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@ant-design/icons": "^4.6.4",
19
- "@opensumi/ide-core-common": "3.4.5-next-1729664938.0",
20
- "@opensumi/ide-utils": "3.4.5-next-1729664938.0",
19
+ "@opensumi/ide-core-common": "3.4.5-next-1729826189.0",
20
+ "@opensumi/ide-utils": "3.4.5-next-1729826189.0",
21
21
  "@opensumi/react-custom-scrollbars-2": "^4.3.4",
22
22
  "@rc-component/mini-decimal": "^1.0.1",
23
23
  "fuzzy": "^0.1.3",
@@ -38,10 +38,10 @@
38
38
  "react-window": "^1.8.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@opensumi/ide-dev-tool": "3.4.5-next-1729664938.0",
41
+ "@opensumi/ide-dev-tool": "3.4.5-next-1729826189.0",
42
42
  "@types/marked": "^4.0.7",
43
43
  "@types/react-window": "^1.8.5",
44
44
  "prop-types": "^15.8.1"
45
45
  },
46
- "gitHead": "18a5a737f36b0aa80504c723168f39b2380fd932"
46
+ "gitHead": "19e3e7d437e19da79a5c8c253a83b58a6b10cd76"
47
47
  }