Skip to content

Commit 3d81e76

Browse files
author
guqiankun.gqk
committed
feat: markdown 能力增强
1 parent 084b2bc commit 3d81e76

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@
219219
"publisher": "opensumi-lite-extensions",
220220
"name": "code-runner-for-web",
221221
"version": "0.1.5-patch.1"
222+
},
223+
{
224+
"publisher": "alex",
225+
"name": "vditor-markdown",
226+
"version": "0.0.1"
222227
}
223228
]
224229
}

packages/integrations/src/startup/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import referencesView from '@alipay/alex/extensions/opensumi-lite-extensions.ref
3232
import emmet from '@alipay/alex/extensions/opensumi-lite-extensions.emmet';
3333
import codeswing from '@alipay/alex/extensions/vscode-extensions.codeswing';
3434
import codeRunner from '@alipay/alex/extensions/opensumi-lite-extensions.code-runner-for-web';
35+
import vditor from '@alipay/alex/extensions/alex.vditor-markdown';
3536

3637
import { LocalExtensionModule } from '../common/local-extension.module';
3738
import * as Plugin from '../editor/plugin';
@@ -122,6 +123,7 @@ const App = () => (
122123
html,
123124
json,
124125
markdown,
126+
vditor,
125127
typescript,
126128
codeservice,
127129
gitlens,

packages/integrations/src/startup/web-scm.plugin.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { IPluginAPI } from '@alipay/alex/lib/editor';
22
import * as localforage from 'localforage';
33
import type { Uri } from '@alipay/alex';
4+
import { Deferred } from '@alipay/alex/lib/modules/opensumi__ide-core-browser';
45

56
export const PLUGIN_ID = 'web-scm';
67

@@ -37,6 +38,7 @@ export const activate = ({ commands }: IPluginAPI) => {
3738
if (!localforage.supports(localforage.INDEXEDDB)) {
3839
throw new Error('[SCM] IndexedDB Not Support');
3940
}
41+
const workerReady = new Deferred<void>();
4042

4143
// 只存储在IndexedDB
4244
localforage.config({
@@ -93,4 +95,8 @@ export const activate = ({ commands }: IPluginAPI) => {
9395
// 埋点数据
9496
console.log(' >>> log', code, msg, extra);
9597
});
98+
99+
commands.registerCommand('alex.gty.workerReady', () => {
100+
return workerReady.resolve();
101+
});
96102
};

0 commit comments

Comments
 (0)