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
4343--- @field outline ? { auto_open : boolean , open_cmd ?: string }
4444--- @field dev_log ? flutter.DevLogOpts
4545--- @field dev_tools ? { autostart : boolean , auto_open_browser : boolean }
46+ --- @field analyzer_web_port ? number
4647
4748local M = {}
4849
Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ local function get_server_config(user_config, callback)
232232
233233 config .cmd = config .cmd or { paths .dart_bin , " language-server" , " --protocol=lsp" }
234234
235+ if config .analyzer_web_port then
236+ table.insert (config .cmd , " --port=" .. tostring (config .analyzer_web_port ))
237+ end
238+
235239 config .filetypes = { FILETYPE }
236240 config .capabilities = merge_config (defaults .capabilities , config .capabilities )
237241 config .init_options = merge_config (defaults .init_options , config .init_options )
You can’t perform that action at this time.
0 commit comments