@opensumi/ide-editor 2.13.4 → 2.13.5-next.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/LICENSE ADDED
@@ -0,0 +1,21 @@
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.
@@ -181,6 +181,7 @@
181
181
  border-bottom: 1px solid var(--tab-border);
182
182
  box-sizing: border-box;
183
183
  z-index: 1;
184
+
184
185
  .tab_loading {
185
186
  display: block;
186
187
  position: absolute;
@@ -188,6 +189,7 @@
188
189
  left: 13.5px;
189
190
  }
190
191
  :global(.icon-label::before) {
192
+ font-size: calc(1.5 * 14px) !important;
191
193
  transition: transform 0.2s ease-in;
192
194
  }
193
195
  .small::before {
@@ -204,7 +206,6 @@
204
206
  &::before {
205
207
  background-size: 14px;
206
208
  background-position: 2px;
207
- font-size: 12px;
208
209
  }
209
210
  }
210
211
  .kt_editor_close_icon {
@@ -27,10 +27,16 @@
27
27
  display: flex;
28
28
  align-items: center;
29
29
  white-space: nowrap;
30
+
30
31
  > span:first-child {
31
32
  font-size: 14px;
32
33
  vertical-align: middle;
33
34
  padding-right: 5px;
35
+
36
+ &::before {
37
+ background-size: 12px;
38
+ font-size: calc(1.5 * 12px);
39
+ }
34
40
  }
35
41
  &:hover {
36
42
  color: var(--breadcrumb-focusForeground);
@@ -1 +1 @@
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"}
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"}
@@ -2,15 +2,16 @@
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");
5
6
  const di_1 = require("@opensumi/di");
6
7
  const ide_core_common_1 = require("@opensumi/ide-core-common");
7
8
  const ide_core_browser_1 = require("@opensumi/ide-core-browser");
8
9
  let EditorSuggestWidgetContribution = class EditorSuggestWidgetContribution {
9
10
  contribute(editor) {
10
11
  const disposable = new ide_core_browser_1.DisposableCollection();
11
- const suggestController = editor.monacoEditor.getContribution('editor.contrib.suggestController');
12
- if (suggestController && suggestController['_widget']) {
13
- const suggestWidget = suggestController['_widget'].getValue();
12
+ const suggestController = editor.monacoEditor.getContribution(suggestController_1.SuggestController.ID);
13
+ if (suggestController && suggestController.widget && suggestController.widget.value) {
14
+ const suggestWidget = suggestController.widget.value;
14
15
  // FIXME: @寻壑 仅通过鼠标选中会走onDidSelect事件,键盘会过acceptSelectedSuggestionOnEnter这个command
15
16
  disposable.push(suggestWidget.onDidSelect((e) => {
16
17
  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":";;;;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"}
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;IAI1C,UAAU,CAAC,MAAe;QACxB,MAAM,UAAU,GAAG,IAAI,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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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-editor",
3
- "version": "2.13.4",
3
+ "version": "2.13.5-next.0+3c9202b",
4
4
  "files": [
5
5
  "lib"
6
6
  ],
@@ -16,18 +16,19 @@
16
16
  "url": "git@github.com:opensumi/core.git"
17
17
  },
18
18
  "dependencies": {
19
- "@opensumi/ide-components": "2.13.4",
20
- "@opensumi/ide-core-common": "2.13.4",
21
- "@opensumi/ide-core-node": "2.13.4",
22
- "@opensumi/ide-file-service": "2.13.4",
23
- "@opensumi/ide-monaco": "2.13.4",
24
- "@opensumi/ide-overlay": "2.13.4",
25
- "@opensumi/ide-quick-open": "2.13.4",
26
- "@opensumi/ide-theme": "2.13.4",
27
- "@opensumi/ide-workspace": "2.13.4"
19
+ "@opensumi/ide-components": "^2.13.5-next.0+3c9202b",
20
+ "@opensumi/ide-core-common": "^2.13.5-next.0+3c9202b",
21
+ "@opensumi/ide-core-node": "^2.13.5-next.0+3c9202b",
22
+ "@opensumi/ide-file-service": "^2.13.5-next.0+3c9202b",
23
+ "@opensumi/ide-monaco": "^2.13.5-next.0+3c9202b",
24
+ "@opensumi/ide-overlay": "^2.13.5-next.0+3c9202b",
25
+ "@opensumi/ide-quick-open": "^2.13.5-next.0+3c9202b",
26
+ "@opensumi/ide-theme": "^2.13.5-next.0+3c9202b",
27
+ "@opensumi/ide-workspace": "^2.13.5-next.0+3c9202b"
28
28
  },
29
29
  "devDependencies": {
30
- "@opensumi/ide-core-browser": "2.13.4",
30
+ "@opensumi/ide-core-browser": "^2.13.5-next.0+3c9202b",
31
31
  "@opensumi/ide-dev-tool": "^1.3.1"
32
- }
32
+ },
33
+ "gitHead": "3c9202b2e97620a266dacd41ccfa1deed58aaccb"
33
34
  }