Skip to content

Commit 860d1c3

Browse files
author
轻游
committed
PullRequest: 94 feat/update-opensumi
1 parent 56b42de commit 860d1c3

330 files changed

Lines changed: 3820 additions & 3786 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
## [1.9.12](https://code.alipay.com/cloud-ide/crew-dragon/compare/v1.9.12-0...v1.9.12) (2022-05-24)
1+
# [2.0.0-beta.3](https://code.alipay.com/cloud-ide/crew-dragon/compare/v1.9.9...v2.0.0-beta.3) (2022-03-24)
22

33

44
### Bug Fixes
55

6-
* 修复流水线问题 ([925ac9f](https://code.alipay.com/cloud-ide/crew-dragon/commits/925ac9fca307266b8ef9fe7b77e2bc04bb317bdd))
7-
* 修复editor主题初始化未注册fromExtension ([69a33ce](https://code.alipay.com/cloud-ide/crew-dragon/commits/69a33ce76fe502ab1ccce906460c393519296414))
8-
9-
6+
* ci ([13e12db](https://code.alipay.com/cloud-ide/crew-dragon/commits/13e12db7983e34b972466997d678a3a15bc01f28))
107

118
## [1.9.12-0](https://code.alipay.com/cloud-ide/crew-dragon/compare/v1.9.11...v1.9.12-0) (2022-05-13)
129

@@ -35,6 +32,12 @@
3532

3633
### Features
3734

35+
* update opensumi 2.14.2 ([ee577dc](https://code.alipay.com/cloud-ide/crew-dragon/commits/ee577dcc1fdd513f5742308f8e718489f8a7bc82))
36+
37+
38+
39+
# [2.0.0-beta.2](https://code.alipay.com/cloud-ide/crew-dragon/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2022-03-03)
40+
# [2.0.0-beta.1](https://code.alipay.com/cloud-ide/crew-dragon/compare/v1.9.8...v2.0.0-beta.1) (2022-03-02)
3841
* 新增 editor 包用于 script 引入 ([2cf4953](https://code.alipay.com/cloud-ide/crew-dragon/commits/2cf4953f7676fa25ee73fa42543b0b3e0d3a2ac5))
3942

4043

@@ -44,6 +47,12 @@
4447

4548
### Bug Fixes
4649

50+
* 修改缺失文件内容监听 ([a1dcebe](https://code.alipay.com/cloud-ide/crew-dragon/commits/a1dcebe47a81f7861fa6307042b2d0626b13aab3))
51+
52+
53+
### Features
54+
55+
* update opensumi 2.14.2 ([ee577dc](https://code.alipay.com/cloud-ide/crew-dragon/commits/ee577dcc1fdd513f5742308f8e718489f8a7bc82))
4756
* 修复 snippet 路径协议问题 ([4a3ddf6](https://code.alipay.com/cloud-ide/crew-dragon/commits/4a3ddf6a5a9efb1fd2ac1a6b7025417da9f005ef))
4857

4958

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ yarn release:next
6666

6767
### ACR 开发
6868
```bash
69+
70+
npx alex ext i cloud-ide-ext.antcode-scaning
71+
npx alex ext i cloud-ide-ext.editor-plugin-blame
72+
6973
npm run acr
7074
```
7175
接口使用的是 Ant Code 测试环境 http://code.test.alipay.net

copy.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

jest.setup.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ global.self = global;
4040
global.TextEncoder = TextEncoder;
4141
global.TextDecoder = TextDecoder;
4242

43+
// https://jestjs.io/docs/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom
44+
Object.defineProperty(window, 'matchMedia', {
45+
writable: true,
46+
value: jest.fn().mockImplementation((query) => ({
47+
matches: false,
48+
media: query,
49+
onchange: null,
50+
addListener: jest.fn(), // deprecated
51+
removeListener: jest.fn(), // deprecated
52+
addEventListener: jest.fn(),
53+
removeEventListener: jest.fn(),
54+
dispatchEvent: jest.fn(),
55+
})),
56+
});
57+
4358
class MockLocalStorage {
4459
constructor() {
4560
this.store = {};

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "alex",
3-
"version": "1.9.12",
3+
"version": "2.0.0-beta.3",
44
"workspaces": [
55
"packages/*"
66
],
77
"private": true,
88
"description": "Ant Codespaces for browser",
99
"main": "index.js",
1010
"engines": {
11-
"kaitian": "2.5.5"
11+
"kaitian": "2.16.1"
1212
},
1313
"scripts": {
1414
"type-check": "tsc --skipLibCheck --noEmit",
1515
"preinstall": "node scripts/preinstall && npm run prepare:env",
16-
"prepare:env": "yum --version && sudo yum -y install unzip gcc-c++ libX11-devel libxkbfile-devel || echo 'no yum'",
16+
"prepare:env": "yum --version && sudo yum -y install unzip gcc-c++ libX11-devel libxkbfile-devel libsecret-devel || echo 'no yum'",
1717
"init": "npm run clean && npm run generate && npm run build && npm run ext",
1818
"start": "npm run dev",
1919
"start:acr": "INTEGRATION=antcode-cr npm run start",
@@ -151,13 +151,13 @@
151151
},
152152
{
153153
"publisher": "cloud-ide-ext",
154-
"name": "antcode-scaning",
155-
"version": "0.0.8"
154+
"name": "editor-plugin-blame",
155+
"version": "0.2.5"
156156
},
157157
{
158158
"publisher": "cloud-ide-ext",
159-
"name": "editor-plugin-blame",
160-
"version": "0.2.5"
159+
"name": "antcode-scaning",
160+
"version": "0.0.12"
161161
}
162162
]
163163
}

packages/acr/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alipay/alex-acr",
3-
"version": "1.9.12",
3+
"version": "2.0.0-beta.3",
44
"description": "@alipay/alex-acr",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -9,7 +9,7 @@
99
],
1010
"scripts": {},
1111
"publishConfig": {
12-
"registry": "https://registry.npm.alibaba-inc.com"
12+
"registry": "https://registry.antfin-inc.com"
1313
},
1414
"tnpm": {
1515
"mode": "yarn",
@@ -19,9 +19,9 @@
1919
"@alipay/yuyan-monitor-web": "^2.0.28"
2020
},
2121
"dependencies": {
22-
"@alipay/alex": "1.9.12",
23-
"@alipay/alex-core": "1.9.12",
24-
"@alipay/alex-shared": "1.9.12",
22+
"@alipay/alex": "2.0.0-beta.3",
23+
"@alipay/alex-core": "2.0.0-beta.3",
24+
"@alipay/alex-shared": "2.0.0-beta.3",
2525
"@alipay/geek-theme": "^1.6.0",
2626
"@alipay/lsif-client": "^2.0.0",
2727
"crypto-js": "^4.0.0",

packages/acr/src/antcode-cr.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as React from 'react';
22
import * as ReactDOM from 'react-dom';
3-
import { Injector } from '@ali/common-di';
4-
import { URI } from '@ali/ide-core-common';
5-
import { join } from '@ali/ide-core-common/lib/path';
6-
import { equals } from '@ali/ide-core-common/lib/arrays';
3+
import { Injector } from '@opensumi/di';
4+
import { URI } from '@opensumi/ide-core-common';
5+
import { join } from '@opensumi/ide-core-common/lib/path';
6+
import { equals } from '@opensumi/ide-core-common/lib/arrays';
77
// internal patched
88
import { disposeMode, disposableCollection } from '@alipay/alex/lib/core/patch';
99

packages/acr/src/app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { Injector } from '@ali/common-di';
2-
import { IPreferences } from '@ali/ide-core-browser';
1+
import { Injector } from '@opensumi/di';
2+
import { IPreferences } from '@opensumi/ide-core-browser';
33
import { IAppConfig, getDefaultAppConfig } from '@alipay/alex';
44

55
import { renderApp } from './render-app';
66

77
// 引入公共样式文件
8-
import '@ali/ide-core-browser/lib/style/entry.less';
8+
import '@opensumi/ide-core-browser/lib/style/entry.less';
99

1010
import { layoutConfig, LayoutComponent } from './config/layout';
1111
import { modules } from './config/module';

packages/acr/src/color-token/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { registerColor } from '@ali/ide-theme';
1+
import { registerColor } from '@opensumi/ide-theme';
22

33
registerColor(
44
'volcano.warning',

packages/acr/src/common/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { URI, BasicEvent } from '@ali/ide-core-common';
1+
import { URI, BasicEvent } from '@opensumi/ide-core-common';
22
import { Diff } from './antcode';
33
import { FileOpenMethod } from './types';
44

0 commit comments

Comments
 (0)