File tree Expand file tree Collapse file tree 8 files changed +36
-8
lines changed Expand file tree Collapse file tree 8 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ string
510
510
511
511
# hint.await
512
512
513
- ** Missing description!! **
513
+ If the called function is marked ` ---@async ` , prompt ` await ` at the call.
514
514
515
515
## type
516
516
@@ -628,7 +628,8 @@ integer
628
628
629
629
# hover.expandAlias
630
630
631
- ** Missing description!!**
631
+ Whether to expand the alias. For example, expands ` ---@alias myType boolean|number ` appears as ` boolean|number ` , otherwise it appears as `myType'.
632
+
632
633
633
634
## type
634
635
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ string
510
510
511
511
# hint.await
512
512
513
- ** Missing description!! **
513
+ If the called function is marked ` ---@async ` , prompt ` await ` at the call.
514
514
515
515
## type
516
516
@@ -628,7 +628,8 @@ integer
628
628
629
629
# hover.expandAlias
630
630
631
- ** Missing description!!**
631
+ Whether to expand the alias. For example, expands ` ---@alias myType boolean|number ` appears as ` boolean|number ` , otherwise it appears as `myType'.
632
+
632
633
633
634
## type
634
635
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ string
510
510
511
511
# hint.await
512
512
513
- ** Missing description!! **
513
+ 如果调用的函数被标记为了 ` ---@async ` ,则在调用处提示 ` await ` 。
514
514
515
515
## type
516
516
@@ -628,7 +628,8 @@ integer
628
628
629
629
# hover.expandAlias
630
630
631
- ** Missing description!!**
631
+ 是否展开别名。例如 ` ---@alias myType boolean|number ` 展开后显示为 ` boolean|number ` ,否则显示为 ` myType ` 。
632
+
632
633
633
634
## type
634
635
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ string
510
510
511
511
# hint.await
512
512
513
- ** Missing description!! **
513
+ If the called function is marked ` ---@async ` , prompt ` await ` at the call.
514
514
515
515
## type
516
516
@@ -628,7 +628,8 @@ integer
628
628
629
629
# hover.expandAlias
630
630
631
- ** Missing description!!**
631
+ Whether to expand the alias. For example, expands ` ---@alias myType boolean|number ` appears as ` boolean|number ` , otherwise it appears as `myType'.
632
+
632
633
633
634
## type
634
635
Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ config.hover.previewFields =
169
169
" When hovering to view a table, limits the maximum number of previews for fields."
170
170
config .hover .enumsLimit =
171
171
" When the value corresponds to multiple types, limit the number of types displaying."
172
+ config .hover .expandAlias =
173
+ [[
174
+ Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
175
+ ]]
172
176
config .develop .enable =
173
177
' Developer mode. Do not enable, performance will be affected.'
174
178
config .develop .debuggerPort =
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto =
205
209
' Show hints only when the table is greater than 3 items, or the table is a mixed table.'
206
210
config .hint .arrayIndex .Disable =
207
211
' Disable hints of array index.'
212
+ config .hint .await =
213
+ ' If the called function is marked `---@async`, prompt `await` at the call.'
208
214
config .format .enable =
209
215
' Enable code formatter.'
210
216
config .telemetry .enable =
Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ config.hover.previewFields = -- TODO: need translate!
169
169
" When hovering to view a table, limits the maximum number of previews for fields."
170
170
config .hover .enumsLimit = -- TODO: need translate!
171
171
" When the value corresponds to multiple types, limit the number of types displaying."
172
+ config .hover .expandAlias = -- TODO: need translate!
173
+ [[
174
+ Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
175
+ ]]
172
176
config .develop .enable = -- TODO: need translate!
173
177
' Developer mode. Do not enable, performance will be affected.'
174
178
config .develop .debuggerPort = -- TODO: need translate!
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto = -- TODO: need translate!
205
209
' Show hints only when the table is greater than 3 items, or the table is a mixed table.'
206
210
config .hint .arrayIndex .Disable = -- TODO: need translate!
207
211
' Disable hints of array index.'
212
+ config .hint .await = -- TODO: need translate!
213
+ ' If the called function is marked `---@async`, prompt `await` at the call.'
208
214
config .format .enable = -- TODO: need translate!
209
215
' Enable code formatter.'
210
216
config .telemetry .enable = -- TODO: need translate!
Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ config.hover.previewFields =
169
169
" 悬停提示查看表时,限制表内字段的最大预览数量。"
170
170
config .hover .enumsLimit =
171
171
" 当值对应多个类型时,限制类型的显示数量。"
172
+ config .hover .expandAlias =
173
+ [[
174
+ 是否展开别名。例如 `---@alias myType boolean|number` 展开后显示为 `boolean|number`,否则显示为 `myType`。
175
+ ]]
172
176
config .develop .enable =
173
177
' 开发者模式。请勿开启,会影响性能。'
174
178
config .develop .debuggerPort =
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto =
205
209
' 只有表大于3项,或者表是混合类型时才进行提示。'
206
210
config .hint .arrayIndex .Disable =
207
211
' 禁用数组索引提示。'
212
+ config .hint .await =
213
+ ' 如果调用的函数被标记为了 `---@async` ,则在调用处提示 `await` 。'
208
214
config .format .enable =
209
215
' 启用代码格式化程序。'
210
216
config .telemetry .enable =
Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ config.hover.previewFields =
169
169
" 懸浮提示檢視表時,限制表內欄位的最大預覽數量。"
170
170
config .hover .enumsLimit =
171
171
" 當值對應多個型別時,限制型別的顯示數量。"
172
+ config .hover .expandAlias = -- TODO: need translate!
173
+ [[
174
+ Whether to expand the alias. For example, expands `---@alias myType boolean|number` appears as `boolean|number`, otherwise it appears as `myType'.
175
+ ]]
172
176
config .develop .enable =
173
177
' 開發者模式。請勿開啟,會影響效能。'
174
178
config .develop .debuggerPort =
@@ -205,6 +209,8 @@ config.hint.arrayIndex.Auto =
205
209
' 只有表大於3項,或者表是混合型別時才進行提示。'
206
210
config .hint .arrayIndex .Disable =
207
211
' 停用陣列索引提示。'
212
+ config .hint .await = -- TODO: need translate!
213
+ ' If the called function is marked `---@async`, prompt `await` at the call.'
208
214
config .format .enable =
209
215
' 啟用程式碼格式化程式。'
210
216
config .telemetry .enable =
You can’t perform that action at this time.
0 commit comments