MCPcopy
hub / github.com/alibaba/pont / regenerate

Method regenerate

packages/vscode-pont/src/commands/index.ts:203–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202 @command('pont.regenerate')
203 async regenerate() {
204 await showProgress('生成接口代码', async (report) => {
205 report('执行中...');
206 const currentManager = this.manager.getCurrentOriginManage();
207 currentManager.updateDataSourceByRemoteDataSource();
208 await this.manager.generateCode();
209 await currentManager.updateDiffs();
210 getPontOriginsProvider().refresh(this.manager);
211 report('完成');
212 });
213 }
214
215 @command('pont.syncRemoteAndGenerate')
216 async syncRemoteAndGenerate() {

Callers

nothing calls this directly

Calls 7

showProgressFunction · 0.90
getPontOriginsProviderFunction · 0.90
updateDiffsMethod · 0.80
refreshMethod · 0.80
generateCodeMethod · 0.45

Tested by

no test coverage detected