File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ local utils = lazy.require("flutter-tools.utils") ---@module "flutter-tools.util
43
43
--- @field outline ? { auto_open : boolean , open_cmd ?: string }
44
44
--- @field dev_log ? flutter.DevLogOpts
45
45
--- @field dev_tools ? { autostart : boolean , auto_open_browser : boolean }
46
+ --- @field analyzer_web_port ? number
46
47
47
48
local M = {}
48
49
Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ local function get_server_config(user_config, callback)
232
232
233
233
config .cmd = config .cmd or { paths .dart_bin , " language-server" , " --protocol=lsp" }
234
234
235
+ if config .analyzer_web_port then
236
+ table.insert (config .cmd , " --port=" .. tostring (config .analyzer_web_port ))
237
+ end
238
+
235
239
config .filetypes = { FILETYPE }
236
240
config .capabilities = merge_config (defaults .capabilities , config .capabilities )
237
241
config .init_options = merge_config (defaults .init_options , config .init_options )
You can’t perform that action at this time.
0 commit comments