feature: 调整插件自动注册逻辑。
This commit is contained in:
@@ -152,6 +152,9 @@ func (s *autoCodeTemplate) generate(ctx context.Context, info request.AutoCode,
|
||||
for key, value := range asts {
|
||||
keys := strings.Split(key, "=>")
|
||||
if len(keys) == 2 {
|
||||
if keys[1] == ast.TypePluginInitializeV2 {
|
||||
continue
|
||||
}
|
||||
var builder strings.Builder
|
||||
parse, _ := value.Parse("", &builder)
|
||||
if parse != nil {
|
||||
|
Reference in New Issue
Block a user