Skip to content

Commit 9e96499

Browse files
author
guqiankun
committed
fix: 修复流水线问题
1 parent a63e03a commit 9e96499

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.aci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ node-12:
1717
aciTags: DOCKER
1818
agent:
1919
docker:
20-
image: reg.docker.alibaba-inc.com/dockerlab/node-ci:3.7.11
20+
image: reg.docker.alibaba-inc.com/dockerlab/node-ci:3.8.5
2121
resourceRequirements:
2222
cpu: 4
2323
memory: 12

packages/integrations/src/editor/index.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,24 @@ const App = () => {
133133
onClick={() => {
134134
const commands = editorPlugin.api.commands;
135135
if (commands) {
136-
commands.executeCommand('plugin.command.changeTheme', 'ide-dark');
136+
commands.executeCommand('plugin.command.add', 1);
137137
}
138138
}}
139139
size="small"
140140
>
141141
command test
142142
</Button>
143+
<Button
144+
onClick={() => {
145+
const commands = editorPlugin.api.commands;
146+
if (commands) {
147+
commands.executeCommand('plugin.command.changeTheme', 'ide-dark');
148+
}
149+
}}
150+
size="small"
151+
>
152+
theme change
153+
</Button>
143154
</div>
144155
<div style={{ display: 'flex' }}>
145156
<div style={{ width: '50%', minHeight: 500 }}>

packages/integrations/src/editor/plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const activate = ({ context, commands }: IPluginAPI) => {
1515
context.subscriptions.push(
1616
commands.registerCommand('plugin.command.add', async (x: number) => {
1717
commands.executeCommand('plugin.command.say', 'alex is great');
18-
await commands.executeCommand('theme.toggle');
1918
return x + x;
2019
}),
2120
commands.registerCommand('plugin.command.changeTheme', (value) => {

0 commit comments

Comments
 (0)