chore(wezterm): ignore diagnostics for undefined-field in cwd_uri

This commit is contained in:
Price Hiller 2023-08-31 18:34:56 -05:00
parent f4880596aa
commit f4a6a72fde
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -70,7 +70,9 @@ wezterm.on("update-right-status", function(window, pane)
if type(cwd_uri) == "userdata" then if type(cwd_uri) == "userdata" then
-- Running on a newer version of wezterm and we have -- Running on a newer version of wezterm and we have
-- a URL object here, making this simple! -- a URL object here, making this simple!
---@diagnostic disable-next-line: undefined-field
cwd = cwd_uri.file_path cwd = cwd_uri.file_path
---@diagnostic disable-next-line: undefined-field
hostname = cwd_uri.host or wezterm.hostname() hostname = cwd_uri.host or wezterm.hostname()
else else
-- an older version of wezterm, 20230712-072601-f4abf8fd or earlier, -- an older version of wezterm, 20230712-072601-f4abf8fd or earlier,