Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Sort method snippet of type after type
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Dec 19, 2017
1 parent 8a7a3fa commit 30b01ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goSuggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class GoCompletionItemProvider implements vscode.CompletionItemProvider {
auxItem.label = 'func (*' + suggest.name + ')';
auxItem.filterText = suggest.name;
auxItem.detail = 'Method snippet';
auxItem.sortText = 'a';
auxItem.sortText = 'b';
let prefix = 'func (' + suggest.name[0].toLowerCase() + ' *' + suggest.name + ')';
let snippet = prefix + ' ${1:methodName}(${2}) ${3} \{\n\t$0\n\}';
auxItem.insertText = new vscode.SnippetString(snippet);
Expand Down

0 comments on commit 30b01ce

Please sign in to comment.