Skip to content

Commit 57c130c

Browse files
author
guqiankun.gqk
committed
chore: 使用editor-plugin-blame插件
1 parent e2572e8 commit 57c130c

3 files changed

Lines changed: 4 additions & 15 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@
156156
},
157157
{
158158
"publisher": "cloud-ide-ext",
159-
"name": "acr-editor-blame",
160-
"version": "0.0.3"
159+
"name": "editor-plugin-blame",
160+
"version": "0.2.5"
161161
}
162162
]
163163
}

packages/integrations/src/antcode-cr/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import acrPlugin from '../common/plugin';
2929
import CodeBlamePlugin, { ExtensionCommand } from '../common/code-blame.plugin';
3030
import CodeScaningPlugin from '../common/code-scaning.plugin';
3131
import CodeScaning from '@alipay/alex/extensions/cloud-ide-ext.antcode-scaning';
32-
import CodeBlame from '@alipay/alex/extensions/cloud-ide-ext.acr-editor-blame';
32+
import CodeBlame from '@alipay/alex/extensions/cloud-ide-ext.editor-plugin-blame';
3333
import { mockService } from './antcode/mock.service';
3434
import './style.less';
3535

packages/integrations/src/common/code-blame.plugin.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { IPluginModule, IPluginAPI } from '@alipay/alex/lib/editor';
22

33
export enum ExtensionCommand {
4-
toggleBlame = 'code.blame.toggleBlame',
4+
acrToggleBlame = 'code.blame.acrToggleBlame',
55
linkToCommit = 'code.blame.linktocommit',
66
onActive = 'code.blame.extension.active',
7-
setPerference = 'code.blame.setPerference',
87
setProjectData = 'code.blame.setProjectData',
98
getBlameData = 'code.blame.getBlameData',
109
}
@@ -60,14 +59,4 @@ export default class IDEPlugin implements IPluginModule {
6059
* 注销插件,可在此时机清理副作用
6160
*/
6261
deactivate() {}
63-
64-
/**
65-
* 修改配置项
66-
* @param name 配置项名称
67-
* @param value 值
68-
* @param global 是否全局生效
69-
*/
70-
setPerference(name: string, value: string, global?: boolean) {
71-
this.commands.executeCommand(ExtensionCommand.setPerference, name, value, !!global);
72-
}
7362
}

0 commit comments

Comments
 (0)