Skip to content

Commit

Permalink
re-sort go-zero create menu order
Browse files Browse the repository at this point in the history
  • Loading branch information
kesonan committed Mar 10, 2023
1 parent 267d75f commit 576788a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'cn.xiaoheiban'
version '1.1.3'
version '1.1.4'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class ApiCreateFileAction extends CreateFileFromTemplateAction implements DumbAware {
public static final String FILE_TEMPLATE = "Api File";
public static final String APPLICATION_TEMPLATE = "Api Template";
private static final String NEW_API_FILE = "New Api File";
private static final String NEW_API_FILE = "New API File";

private static final String DEFAULT_API_TEMPLATE_PROPERTY = "DefaultApiTemplateProperty";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class KeywordCompletionContributor extends CompletionContributor implements DumbAware {
private static final String[] keywords = new String[]{"syntax", "import", "map", "type", "bool", "uint8", "uint16", "uint32", "uint64", "int8", "int16", "int32", "int64", "float32", "float64", "complex64", "complex128", "string", "int", "uint", "uintptr", "byte", "rune",
"get", "head", "post", "put", "patch", "delete", "connect", "options", "trace", "title", "desc", "author", "email", "version", "summary", "title", "desc", "author", "email", "version", "summary",
"group", "jwt", "doc", "server", "service", "info", "handler", "middleware","jwtTransition","prefix","any","timeout"};
"group", "jwt", "doc", "server", "service", "info", "handler", "middleware","jwtTransition","prefix","any","timeout","maxBytes"};

public KeywordCompletionContributor() {
for (String keyword : keywords) {
Expand Down
16 changes: 8 additions & 8 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
</extensions>

<actions>
<action id="Api.NewApiFile" class="cn.xiaoheiban.action.ApiCreateFileAction"
text="API File" description="Create new Api file">
<add-to-group group-id="NewGroup" anchor="before" relative-to-action="NewFile"/>
<action id="Api.NewProtoFile" class="cn.xiaoheiban.action.ProtoCreateFileAction"
text="Proto File" description="Create new Proto file" icon="AllIcons.Actions.PrettyPrint">
<add-to-group group-id="NewGroup" anchor="after" relative-to-action="NewFile"/>
</action>

<action id="Api.NewProtoFile" class="cn.xiaoheiban.action.ProtoCreateFileAction"
text="Proto File" description="Create new Proto file">
<add-to-group group-id="NewGroup" anchor="before" relative-to-action="NewFile"/>
<action id="Api.NewApiFile" class="cn.xiaoheiban.action.ApiCreateFileAction"
text="API File" description="Create new Api file">
<add-to-group group-id="NewGroup" anchor="after" relative-to-action="NewFile"/>
</action>

<group id="GoZeroEditorGroup" text="Go Zero" popup="true">
Expand All @@ -92,8 +92,8 @@
description="Generate model code"/>
</group>

<group id="GoZeroProjectNewGroup" text="Go Zero" popup="true">
<add-to-group group-id="NewGroup" anchor="after" relative-to-action="NewFile"/>
<group id="GoZeroProjectNewGroup" text="Go Zero" popup="true" icon="AllIcons.Actions.ProjectDirectory">
<add-to-group group-id="NewGroup" anchor="after" relative-to-action="NewDir"/>
<action class="cn.xiaoheiban.action.ApiNewAction" id="ProjectApiNewAction" text="API Greet Service"
description="Generate Api greet service"/>
<action class="cn.xiaoheiban.action.RpcNewAction" id="ProjectRpcNewAction" text="ZRPC Greet Service"
Expand Down

0 comments on commit 576788a

Please sign in to comment.