@opensumi/ide-editor 2.13.5-next-1640330245.0 → 2.13.5

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.
@@ -181,7 +181,6 @@
181
181
  border-bottom: 1px solid var(--tab-border);
182
182
  box-sizing: border-box;
183
183
  z-index: 1;
184
-
185
184
  .tab_loading {
186
185
  display: block;
187
186
  position: absolute;
@@ -189,7 +188,6 @@
189
188
  left: 13.5px;
190
189
  }
191
190
  :global(.icon-label::before) {
192
- font-size: calc(1.5 * 14px) !important;
193
191
  transition: transform 0.2s ease-in;
194
192
  }
195
193
  .small::before {
@@ -206,6 +204,7 @@
206
204
  &::before {
207
205
  background-size: 14px;
208
206
  background-position: 2px;
207
+ font-size: 12px;
209
208
  }
210
209
  }
211
210
  .kt_editor_close_icon {
@@ -27,16 +27,10 @@
27
27
  display: flex;
28
28
  align-items: center;
29
29
  white-space: nowrap;
30
-
31
30
  > span:first-child {
32
31
  font-size: 14px;
33
32
  vertical-align: middle;
34
33
  padding-right: 5px;
35
-
36
- &::before {
37
- background-size: 12px;
38
- font-size: calc(1.5 * 12px);
39
- }
40
34
  }
41
35
  &:hover {
42
36
  color: var(--breadcrumb-focusForeground);
@@ -1 +1 @@
1
- {"version":3,"file":"suggest-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/view/suggest-widget.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBACa,+BAAgC,YAAW,0BAA0B;IAEhF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAY;IAErC,UAAU,CAAC,MAAM,EAAE,OAAO;CAkD3B"}
1
+ {"version":3,"file":"suggest-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/view/suggest-widget.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBACa,+BAAgC,YAAW,0BAA0B;IAEhF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAY;IAErC,UAAU,CAAC,MAAM,EAAE,OAAO;CAoD3B"}
@@ -2,16 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EditorSuggestWidgetContribution = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const suggestController_1 = require("@opensumi/monaco-editor-core/esm/vs/editor/contrib/suggest/suggestController");
6
5
  const di_1 = require("@opensumi/di");
7
6
  const ide_core_common_1 = require("@opensumi/ide-core-common");
8
7
  const ide_core_browser_1 = require("@opensumi/ide-core-browser");
9
8
  let EditorSuggestWidgetContribution = class EditorSuggestWidgetContribution {
10
9
  contribute(editor) {
11
10
  const disposable = new ide_core_browser_1.DisposableCollection();
12
- const suggestController = editor.monacoEditor.getContribution(suggestController_1.SuggestController.ID);
13
- if (suggestController && suggestController.widget && suggestController.widget.value) {
14
- const suggestWidget = suggestController.widget.value;
11
+ const suggestController = editor.monacoEditor.getContribution('editor.contrib.suggestController');
12
+ if (suggestController && suggestController['_widget']) {
13
+ const suggestWidget = suggestController['_widget'].getValue();
15
14
  // FIXME: @寻壑 仅通过鼠标选中会走onDidSelect事件,键盘会过acceptSelectedSuggestionOnEnter这个command
16
15
  disposable.push(suggestWidget.onDidSelect((e) => {
17
16
  this.eventBus.fire(new ide_core_browser_1.SuggestEvent({
@@ -1 +1 @@
1
- {"version":3,"file":"suggest-widget.js","sourceRoot":"","sources":["../../../src/browser/view/suggest-widget.ts"],"names":[],"mappings":";;;;AAAA,oHAAiH;AACjH,qCAAqD;AACrD,+DAAsD;AACtD,iEAAgF;AAMhF,IAAa,+BAA+B,GAA5C,MAAa,+BAA+B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Y;oBACvB,IAAI,EAAE,CAAC;iBACR,CAAC,CACH,CAAC;YACJ,CAAC,CAAC,CACH,CAAC;SACH;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AApDC;IADC,IAAA,cAAS,EAAC,2BAAS,CAAC;;iEACgB;AAF1B,+BAA+B;IAD3C,IAAA,eAAU,GAAE;GACA,+BAA+B,CAsD3C;AAtDY,0EAA+B"}
1
+ {"version":3,"file":"suggest-widget.js","sourceRoot":"","sources":["../../../src/browser/view/suggest-widget.ts"],"names":[],"mappings":";;;;AAEA,qCAAqD;AACrD,+DAAsD;AACtD,iEAAgF;AAMhF,IAAa,+BAA+B,GAA5C,MAAa,+BAA+B;IAI1C,UAAU,CAAC,MAAe;QACxB,MAAM,UAAU,GAAG,IAAI,uCAAoB,EAAE,CAAC;QAC9C,MAAM,iBAAiB,GAAG,MAAM,CAAC,YAAY,CAAC,eAAe,CAC3D,kCAAkC,CACnC,CAAC;QACF,IAAI,iBAAiB,IAAI,iBAAiB,CAAC,SAAS,CAAC,EAAE;YACrD,MAAM,aAAa,GAAI,iBAAiB,CAAC,SAAS,CAAS,CAAC,QAAQ,EAAmB,CAAC;YACxF,iFAAiF;YACjF,UAAU,CAAC,IAAI,CACb,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAChB,IAAI,+BAAY,CAAC;oBACf,SAAS,EAAE,aAAa;oBACxB,IAAI,EAAE,CAAC;iBACR,CAAC,CACH,CAAC;YACJ,CAAC,CAAC,CACH,CAAC;YACF,UAAU,CAAC,IAAI,CACb,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAChB,IAAI,+BAAY,CAAC;oBACf,SAAS,EAAE,WAAW;oBACtB,IAAI,EAAE,CAAC;iBACR,CAAC,CACH,CAAC;YACJ,CAAC,CAAC,CACH,CAAC;YACF,UAAU,CAAC,IAAI,CACb,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAChB,IAAI,+BAAY,CAAC;oBACf,SAAS,EAAE,WAAW;oBACtB,IAAI,EAAE,CAAC;iBACR,CAAC,CACH,CAAC;YACJ,CAAC,CAAC,CACH,CAAC;YACF,UAAU,CAAC,IAAI,CACb,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC7B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAChB,IAAI,+BAAY,CAAC;oBACf,SAAS,EAAE,YAAY;oBACvB,IAAI,EAAE,CAAC;iBACR,CAAC,CACH,CAAC;YACJ,CAAC,CAAC,CACH,CAAC;SACH;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AAtDC;IADC,IAAA,cAAS,EAAC,2BAAS,CAAC;;iEACgB;AAF1B,+BAA+B;IAD3C,IAAA,eAAU,GAAE;GACA,+BAA+B,CAwD3C;AAxDY,0EAA+B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-editor",
3
- "version": "2.13.5-next-1640330245.0",
3
+ "version": "2.13.5",
4
4
  "files": [
5
5
  "lib"
6
6
  ],
@@ -16,19 +16,18 @@
16
16
  "url": "git@github.com:opensumi/core.git"
17
17
  },
18
18
  "dependencies": {
19
- "@opensumi/ide-components": "^2.13.5-next-1640330245.0",
20
- "@opensumi/ide-core-common": "^2.13.5-next-1640330245.0",
21
- "@opensumi/ide-core-node": "^2.13.5-next-1640330245.0",
22
- "@opensumi/ide-file-service": "^2.13.5-next-1640330245.0",
23
- "@opensumi/ide-monaco": "^2.13.5-next-1640330245.0",
24
- "@opensumi/ide-overlay": "^2.13.5-next-1640330245.0",
25
- "@opensumi/ide-quick-open": "^2.13.5-next-1640330245.0",
26
- "@opensumi/ide-theme": "^2.13.5-next-1640330245.0",
27
- "@opensumi/ide-workspace": "^2.13.5-next-1640330245.0"
19
+ "@opensumi/ide-components": "2.13.5",
20
+ "@opensumi/ide-core-common": "2.13.5",
21
+ "@opensumi/ide-core-node": "2.13.5",
22
+ "@opensumi/ide-file-service": "2.13.5",
23
+ "@opensumi/ide-monaco": "2.13.5",
24
+ "@opensumi/ide-overlay": "2.13.5",
25
+ "@opensumi/ide-quick-open": "2.13.5",
26
+ "@opensumi/ide-theme": "2.13.5",
27
+ "@opensumi/ide-workspace": "2.13.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@opensumi/ide-core-browser": "^2.13.5-next-1640330245.0",
30
+ "@opensumi/ide-core-browser": "2.13.5",
31
31
  "@opensumi/ide-dev-tool": "^1.3.1"
32
- },
33
- "gitHead": "facce4aa19ad17159be156549b9dd9a52198ae8f"
32
+ }
34
33
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019-present Alibaba Group Holding Limited, Ant Technology Group.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.