@@ -12,42 +12,63 @@ import (
1212var  examplePackageSummary  =  PackageSummary {
1313	Functions : newSymbolIndex ([]* CompletionItem {
1414		{
15- 			Label :      "SomeFunc" ,
16- 			Kind :       Function ,
17- 			Detail :     "func(val string) string" ,
18- 			InsertText : "SomeFunc()" ,
15+ 			Label :           "SomeFunc" ,
16+ 			Kind :            Function ,
17+ 			Detail :          "func(val string) string" ,
18+ 			InsertText :      "SomeFunc(${1:val})" ,
19+ 			InsertTextRules : InsertAsSnippet ,
1920			Documentation : NewMarkdownString (
2021				"SomeFunc is test function sample\n with doc that contains code sample:"  + 
2122					"\n \n ```\n \t a := \" foo\" \n \t fmt.PrintLn(a)\n \n ```\n end\n \n " ,
2223			),
2324		},
2425		{
25- 			Label :         "ChanArrFunc" ,
26- 			Kind :          Function ,
27- 			Detail :        "func(items ...string) chan string" ,
28- 			InsertText :    "ChanArrFunc()" ,
29- 			Documentation : NewMarkdownString ("ChanArrFunc is stub\n \n " ),
26+ 			Label :           "ChanArrFunc" ,
27+ 			Kind :            Function ,
28+ 			Detail :          "func(items ...string) chan string" ,
29+ 			InsertText :      "ChanArrFunc(${1:items})" ,
30+ 			InsertTextRules : InsertAsSnippet ,
31+ 			Documentation :   NewMarkdownString ("ChanArrFunc is stub\n \n " ),
3032		},
3133		{
32- 			Label :         "SomeFunc2" ,
33- 			Kind :          Function ,
34- 			Detail :        "func(m map[string]interface{}, v *int) []interface{}" ,
35- 			InsertText :    "SomeFunc2()" ,
36- 			Documentation : NewMarkdownString ("SomeFunc2 is func stub\n \n " ),
34+ 			Label :           "SomeFunc2" ,
35+ 			Kind :            Function ,
36+ 			Detail :          "func(m map[string]interface{}, v *int) []interface{}" ,
37+ 			InsertText :      "SomeFunc2(${1:m}, ${2:v})" ,
38+ 			InsertTextRules : InsertAsSnippet ,
39+ 			Documentation :   NewMarkdownString ("SomeFunc2 is func stub\n \n " ),
3740		},
3841		{
39- 			Label :         "IfaceFunc" ,
40- 			Kind :          Function ,
41- 			Detail :        "func() Action" ,
42- 			InsertText :    "IfaceFunc()" ,
43- 			Documentation : NewMarkdownString ("IfaceFunc is stub with unterminated code block\n ```\n \t 2 + 2\n \n ```\n " ),
42+ 			Label :           "IfaceFunc" ,
43+ 			Kind :            Function ,
44+ 			Detail :          "func() Action" ,
45+ 			InsertText :      "IfaceFunc()" ,
46+ 			InsertTextRules : InsertAsSnippet ,
47+ 			Documentation :   NewMarkdownString ("IfaceFunc is stub with unterminated code block\n ```\n \t 2 + 2\n \n ```\n " ),
4448		},
4549		{
46- 			Label :         "FuncReturnFuncAndIface" ,
47- 			Kind :          Function ,
48- 			Detail :        "func() (func() (string, error), interface{\n f func()\n })" ,
49- 			InsertText :    "FuncReturnFuncAndIface()" ,
50- 			Documentation : NewMarkdownString ("FuncReturnFuncAndIface is stub\n \n " ),
50+ 			Label :           "FuncReturnFuncAndIface" ,
51+ 			Kind :            Function ,
52+ 			Detail :          "func() (func() (string, error), interface{\n f func()\n })" ,
53+ 			InsertText :      "FuncReturnFuncAndIface()" ,
54+ 			InsertTextRules : InsertAsSnippet ,
55+ 			Documentation :   NewMarkdownString ("FuncReturnFuncAndIface is stub\n \n " ),
56+ 		},
57+ 		{
58+ 			Label :           "XXX" ,
59+ 			Kind :            Function ,
60+ 			Detail :          "func(a string, b string)" ,
61+ 			InsertText :      "XXX(${1:a}, ${2:b})" ,
62+ 			InsertTextRules : InsertAsSnippet ,
63+ 			Documentation :   NewMarkdownString ("XXX is function example\n \n " ),
64+ 		},
65+ 		{
66+ 			Label :           "FuncUnnamedParams" ,
67+ 			Kind :            Function ,
68+ 			Detail :          "func(string)" ,
69+ 			InsertText :      "FuncUnnamedParams($1)" ,
70+ 			InsertTextRules : InsertAsSnippet ,
71+ 			Documentation :   NewMarkdownString ("FuncUnnamedParams is function with unnamed params\n \n " ),
5172		},
5273	}),
5374	Values : newSymbolIndex ([]* CompletionItem {
0 commit comments