|
2045 | 2045 | }, |
2046 | 2046 | "go.inlayHints.assignVariableTypes": { |
2047 | 2047 | "type": "boolean", |
2048 | | - "description": "Enable/disable inlay hints for variable types in assign statements.", |
| 2048 | + "markdownDescription": "Enable/disable inlay hints for variable types in assign statements.\n```go\n\ni /*int*/, j /*int*/ := 0, len(r)-1\n```", |
2049 | 2049 | "default": false |
2050 | 2050 | }, |
2051 | 2051 | "go.inlayHints.compositeLiteralFields": { |
2052 | 2052 | "type": "boolean", |
2053 | | - "description": "Enable/disable inlay hints for composite literal field names.", |
| 2053 | + "markdownDescription": "Enable/disable inlay hints for composite literal field names.\n```go\n\nfor _, c := range []struct {in, want string}{\n\t{/*in:*/ \"Hello, world\", /*want:*/ \"dlrow ,olleH\"},\n\t{/*in:*/ \"Hello, 世界\", /*want:*/ \"界世 ,olleH\"},\n\t{/*in:*/ \"\", /*want:*/ \"\"},\n} {\n\t...\n}\n```", |
2054 | 2054 | "default": false |
2055 | 2055 | }, |
2056 | 2056 | "go.inlayHints.compositeLiteralTypes": { |
2057 | 2057 | "type": "boolean", |
2058 | | - "description": "Enable/disable inlay hints for composite literal types.", |
| 2058 | + "markdownDescription": "Enable/disable inlay hints for composite literal types.\n```go\n\nfor _, c := range []struct {in, want string}{\n\t/*struct{ in, want string }*/{\"Hello, world\", \"dlrow ,olleH\"},\n\t/*struct{ in, want string }*/{\"Hello, 世界\", \"界世 ,olleH\"},\n\t/*struct{ in, want string }*/{\"\", \"\"},\n} {\n\t...\n}\n```", |
2059 | 2059 | "default": false |
2060 | 2060 | }, |
2061 | 2061 | "go.inlayHints.constantValues": { |
2062 | 2062 | "type": "boolean", |
2063 | | - "description": "Enable/disable inlay hints for constant values.", |
| 2063 | + "markdownDescription": "Enable/disable inlay hints for constant values.\n```go\n\nconst (\n\tKindNone = iota\t/*= 0*/\n\tKindPrint\t/*= 1*/\n\tKindPrintf\t/*= 2*/\n\tKindErrorf\t/*= 3*/\n)\n```", |
2064 | 2064 | "default": false |
2065 | 2065 | }, |
2066 | 2066 | "go.inlayHints.functionTypeParameters": { |
2067 | 2067 | "type": "boolean", |
2068 | | - "description": "Enable/disable inlay hints for implicit type parameters on generic functions.", |
| 2068 | + "markdownDescription": "Enable/disable inlay hints for implicit type parameters on generic functions.\n```go\n\nfunc myFunc[T any](a T) { ... }\n\nfunc main() {\n\tmyFunc/*[int]*/(1)\n}\n```", |
2069 | 2069 | "default": false |
2070 | 2070 | }, |
2071 | 2071 | "go.inlayHints.parameterNames": { |
2072 | 2072 | "type": "boolean", |
2073 | | - "description": "Enable/disable inlay hints for parameter names.", |
| 2073 | + "markdownDescription": "Enable/disable inlay hints for parameter names.\n```go\n\nhttp.HandleFunc(/*pattern:*/ \"/\", /*handler:*/ indexHandler)\n```", |
2074 | 2074 | "default": false |
2075 | 2075 | }, |
2076 | 2076 | "go.inlayHints.rangeVariableTypes": { |
2077 | 2077 | "type": "boolean", |
2078 | | - "description": "Enable/disable inlay hints for variable types in range statements.", |
| 2078 | + "markdownDescription": "Enable/disable inlay hints for variable types in range statements.\n```go\n\nfor k /*int*/, v /*string*/ := range []string{} { ... }\n```", |
2079 | 2079 | "default": false |
2080 | 2080 | }, |
2081 | 2081 | "gopls": { |
|
0 commit comments