@opensumi/ide-extension 3.7.2-next-1739848467.0 → 3.7.2-next-1739859371.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-extension",
3
- "version": "3.7.2-next-1739848467.0",
3
+ "version": "3.7.2-next-1739859371.0",
4
4
  "files": [
5
5
  "lib",
6
6
  "hosted"
@@ -23,18 +23,18 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@opensumi/events": "^1.0.0",
26
- "@opensumi/ide-connection": "3.7.2-next-1739848467.0",
27
- "@opensumi/ide-core-browser": "3.7.2-next-1739848467.0",
28
- "@opensumi/ide-core-node": "3.7.2-next-1739848467.0",
29
- "@opensumi/ide-debug": "3.7.2-next-1739848467.0",
30
- "@opensumi/ide-file-search": "3.7.2-next-1739848467.0",
31
- "@opensumi/ide-file-service": "3.7.2-next-1739848467.0",
32
- "@opensumi/ide-logs": "3.7.2-next-1739848467.0",
33
- "@opensumi/ide-markdown": "3.7.2-next-1739848467.0",
34
- "@opensumi/ide-task": "3.7.2-next-1739848467.0",
35
- "@opensumi/ide-terminal-next": "3.7.2-next-1739848467.0",
36
- "@opensumi/ide-utils": "3.7.2-next-1739848467.0",
37
- "@opensumi/ide-webview": "3.7.2-next-1739848467.0",
26
+ "@opensumi/ide-connection": "3.7.2-next-1739859371.0",
27
+ "@opensumi/ide-core-browser": "3.7.2-next-1739859371.0",
28
+ "@opensumi/ide-core-node": "3.7.2-next-1739859371.0",
29
+ "@opensumi/ide-debug": "3.7.2-next-1739859371.0",
30
+ "@opensumi/ide-file-search": "3.7.2-next-1739859371.0",
31
+ "@opensumi/ide-file-service": "3.7.2-next-1739859371.0",
32
+ "@opensumi/ide-logs": "3.7.2-next-1739859371.0",
33
+ "@opensumi/ide-markdown": "3.7.2-next-1739859371.0",
34
+ "@opensumi/ide-task": "3.7.2-next-1739859371.0",
35
+ "@opensumi/ide-terminal-next": "3.7.2-next-1739859371.0",
36
+ "@opensumi/ide-utils": "3.7.2-next-1739859371.0",
37
+ "@opensumi/ide-webview": "3.7.2-next-1739859371.0",
38
38
  "address": "^1.1.2",
39
39
  "glob-to-regexp": "0.4.1",
40
40
  "is-running": "^2.1.0",
@@ -45,28 +45,28 @@
45
45
  "v8-inspect-profiler": "^0.1.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@opensumi/ide-ai-native": "3.7.2-next-1739848467.0",
49
- "@opensumi/ide-comments": "3.7.2-next-1739848467.0",
50
- "@opensumi/ide-components": "3.7.2-next-1739848467.0",
48
+ "@opensumi/ide-ai-native": "3.7.2-next-1739859371.0",
49
+ "@opensumi/ide-comments": "3.7.2-next-1739859371.0",
50
+ "@opensumi/ide-components": "3.7.2-next-1739859371.0",
51
51
  "@opensumi/ide-core-browser": "workspace:*",
52
- "@opensumi/ide-core-common": "3.7.2-next-1739848467.0",
53
- "@opensumi/ide-decoration": "3.7.2-next-1739848467.0",
54
- "@opensumi/ide-dev-tool": "3.7.2-next-1739848467.0",
55
- "@opensumi/ide-editor": "3.7.2-next-1739848467.0",
56
- "@opensumi/ide-extension-storage": "3.7.2-next-1739848467.0",
57
- "@opensumi/ide-file-tree-next": "3.7.2-next-1739848467.0",
58
- "@opensumi/ide-i18n": "3.7.2-next-1739848467.0",
59
- "@opensumi/ide-main-layout": "3.7.2-next-1739848467.0",
60
- "@opensumi/ide-monaco": "3.7.2-next-1739848467.0",
61
- "@opensumi/ide-output": "3.7.2-next-1739848467.0",
62
- "@opensumi/ide-overlay": "3.7.2-next-1739848467.0",
63
- "@opensumi/ide-quick-open": "3.7.2-next-1739848467.0",
64
- "@opensumi/ide-scm": "3.7.2-next-1739848467.0",
65
- "@opensumi/ide-testing": "3.7.2-next-1739848467.0",
66
- "@opensumi/ide-theme": "3.7.2-next-1739848467.0",
67
- "@opensumi/ide-toolbar": "3.7.2-next-1739848467.0",
68
- "@opensumi/ide-workspace": "3.7.2-next-1739848467.0",
69
- "@opensumi/ide-workspace-edit": "3.7.2-next-1739848467.0"
52
+ "@opensumi/ide-core-common": "3.7.2-next-1739859371.0",
53
+ "@opensumi/ide-decoration": "3.7.2-next-1739859371.0",
54
+ "@opensumi/ide-dev-tool": "3.7.2-next-1739859371.0",
55
+ "@opensumi/ide-editor": "3.7.2-next-1739859371.0",
56
+ "@opensumi/ide-extension-storage": "3.7.2-next-1739859371.0",
57
+ "@opensumi/ide-file-tree-next": "3.7.2-next-1739859371.0",
58
+ "@opensumi/ide-i18n": "3.7.2-next-1739859371.0",
59
+ "@opensumi/ide-main-layout": "3.7.2-next-1739859371.0",
60
+ "@opensumi/ide-monaco": "3.7.2-next-1739859371.0",
61
+ "@opensumi/ide-output": "3.7.2-next-1739859371.0",
62
+ "@opensumi/ide-overlay": "3.7.2-next-1739859371.0",
63
+ "@opensumi/ide-quick-open": "3.7.2-next-1739859371.0",
64
+ "@opensumi/ide-scm": "3.7.2-next-1739859371.0",
65
+ "@opensumi/ide-testing": "3.7.2-next-1739859371.0",
66
+ "@opensumi/ide-theme": "3.7.2-next-1739859371.0",
67
+ "@opensumi/ide-toolbar": "3.7.2-next-1739859371.0",
68
+ "@opensumi/ide-workspace": "3.7.2-next-1739859371.0",
69
+ "@opensumi/ide-workspace-edit": "3.7.2-next-1739859371.0"
70
70
  },
71
- "gitHead": "305bfb1bdf3000e2296de450972eb24f5ebbba89"
71
+ "gitHead": "3ec13e282e0fa712a5923012f1c9840083e63b3d"
72
72
  }
@@ -1,15 +0,0 @@
1
- import vscode, { CancellationToken } from 'vscode';
2
- import { Uri as URI } from '@opensumi/ide-core-common';
3
- import { ExtensionDocumentDataManager, IExtensionDescription, IdentifiableInlineEdit } from '../../../../common/vscode';
4
- import { CommandsConverter } from '../ext.host.command';
5
- export declare class InlineEditAdapter {
6
- private readonly _documents;
7
- private readonly _provider;
8
- private readonly _commands;
9
- private readonly _references;
10
- private languageTriggerKindToVSCodeTriggerKind;
11
- provideInlineEdits(uri: URI, context: vscode.InlineEditContext, token: CancellationToken): Promise<IdentifiableInlineEdit | undefined>;
12
- disposeEdit(pid: number): void;
13
- constructor(_extension: IExtensionDescription, _documents: ExtensionDocumentDataManager, _provider: vscode.InlineEditProvider, _commands: CommandsConverter);
14
- }
15
- //# sourceMappingURL=inlineEdit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inlineEdit.d.ts","sourceRoot":"","sources":["../../../../../src/hosted/api/vscode/language/inlineEdit.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAAmB,GAAG,IAAI,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAIxH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,iBAAiB;IA2F1B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,SAAS;IA5F5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAGvB;IAEL,OAAO,CAAC,sCAAsC,CAG5C;IAEI,kBAAkB,CACtB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,MAAM,CAAC,iBAAiB,EACjC,KAAK,EAAE,iBAAiB,GACvB,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC;IAqE9C,WAAW,CAAC,GAAG,EAAE,MAAM;gBAMrB,UAAU,EAAE,qBAAqB,EAChB,UAAU,EAAE,4BAA4B,EACxC,SAAS,EAAE,MAAM,CAAC,kBAAkB,EACpC,SAAS,EAAE,iBAAiB;CAEhD"}
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InlineEditAdapter = void 0;
4
- const tslib_1 = require("tslib");
5
- const ide_core_common_1 = require("@opensumi/ide-core-common");
6
- const typeConvert = tslib_1.__importStar(require("../../../../common/vscode/converter"));
7
- const ext_types_1 = require("../../../../common/vscode/ext-types");
8
- class InlineEditAdapter {
9
- async provideInlineEdits(uri, context, token) {
10
- var _a;
11
- const doc = this._documents.getDocument(uri);
12
- const result = await this._provider.provideInlineEdit(doc, {
13
- triggerKind: this.languageTriggerKindToVSCodeTriggerKind[context.triggerKind],
14
- requestUuid: context.requestUuid,
15
- }, token);
16
- if (!result) {
17
- // undefined and null are valid results
18
- return undefined;
19
- }
20
- if (token.isCancellationRequested) {
21
- // cancelled -> return without further ado, esp no caching
22
- // of results as they will leak
23
- return undefined;
24
- }
25
- let disposableStore;
26
- const pid = this._references.createReferenceId({
27
- dispose() {
28
- disposableStore === null || disposableStore === void 0 ? void 0 : disposableStore.dispose();
29
- },
30
- item: result,
31
- });
32
- let acceptCommand;
33
- if (result.accepted) {
34
- if (!disposableStore) {
35
- disposableStore = new ide_core_common_1.DisposableStore();
36
- }
37
- acceptCommand = this._commands.toInternal(result.accepted, disposableStore);
38
- }
39
- let rejectCommand;
40
- if (result.rejected) {
41
- if (!disposableStore) {
42
- disposableStore = new ide_core_common_1.DisposableStore();
43
- }
44
- rejectCommand = this._commands.toInternal(result.rejected, disposableStore);
45
- }
46
- let shownCommand;
47
- if (result.shown) {
48
- if (!disposableStore) {
49
- disposableStore = new ide_core_common_1.DisposableStore();
50
- }
51
- shownCommand = this._commands.toInternal(result.shown, disposableStore);
52
- }
53
- if (!disposableStore) {
54
- disposableStore = new ide_core_common_1.DisposableStore();
55
- }
56
- const langResult = {
57
- pid,
58
- text: result.text,
59
- range: typeConvert.Range.from(result.range),
60
- showRange: typeConvert.Range.from(result.showRange),
61
- accepted: acceptCommand,
62
- rejected: rejectCommand,
63
- shown: shownCommand,
64
- commands: (_a = result.commands) === null || _a === void 0 ? void 0 : _a.map((c) => this._commands.toInternal(c, disposableStore)),
65
- };
66
- return langResult;
67
- }
68
- disposeEdit(pid) {
69
- const data = this._references.disposeReferenceId(pid);
70
- data === null || data === void 0 ? void 0 : data.dispose();
71
- }
72
- constructor(_extension, _documents, _provider, _commands) {
73
- this._documents = _documents;
74
- this._provider = _provider;
75
- this._commands = _commands;
76
- this._references = new ReferenceMap();
77
- this.languageTriggerKindToVSCodeTriggerKind = {
78
- [ext_types_1.InlineEditTriggerKind.Automatic]: ext_types_1.InlineEditTriggerKind.Automatic,
79
- [ext_types_1.InlineEditTriggerKind.Invoke]: ext_types_1.InlineEditTriggerKind.Invoke,
80
- };
81
- }
82
- }
83
- exports.InlineEditAdapter = InlineEditAdapter;
84
- class ReferenceMap {
85
- constructor() {
86
- this._references = new Map();
87
- this._idPool = 1;
88
- }
89
- createReferenceId(value) {
90
- const id = this._idPool++;
91
- this._references.set(id, value);
92
- return id;
93
- }
94
- disposeReferenceId(referenceId) {
95
- const value = this._references.get(referenceId);
96
- this._references.delete(referenceId);
97
- return value;
98
- }
99
- get(referenceId) {
100
- return this._references.get(referenceId);
101
- }
102
- }
103
- //# sourceMappingURL=inlineEdit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inlineEdit.js","sourceRoot":"","sources":["../../../../../src/hosted/api/vscode/language/inlineEdit.ts"],"names":[],"mappings":";;;;AAEA,+DAAwE;AAGxE,yFAAmE;AACnE,mEAA4E;AAI5E,MAAa,iBAAiB;IAW5B,KAAK,CAAC,kBAAkB,CACtB,GAAQ,EACR,OAAiC,EACjC,KAAwB;;QAExB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,CACnD,GAAG,EACH;YACE,WAAW,EAAE,IAAI,CAAC,sCAAsC,CAAC,OAAO,CAAC,WAAW,CAAC;YAC7E,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,EACD,KAAK,CACN,CAAC;QAEF,IAAI,CAAC,MAAM,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