mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(lsp): treat empty import map value config as none (#16224)
Ref: denoland/vscode_deno#718 Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
d2c8b5f087
commit
2b35cb3f2f
1 changed files with 6 additions and 2 deletions
|
@ -500,8 +500,12 @@ impl Inner {
|
|||
|
||||
pub async fn update_import_map(&mut self) -> Result<(), AnyError> {
|
||||
let mark = self.performance.mark("update_import_map", None::<()>);
|
||||
let maybe_import_map_url = if let Some(import_map_str) =
|
||||
self.config.get_workspace_settings().import_map
|
||||
|
||||
let maybe_import_map_url = if let Some(import_map_str) = self
|
||||
.config
|
||||
.get_workspace_settings()
|
||||
.import_map
|
||||
.and_then(|s| if s.is_empty() { None } else { Some(s) })
|
||||
{
|
||||
lsp_log!(
|
||||
"Setting import map from workspace settings: \"{}\"",
|
||||
|
|
Loading…
Reference in a new issue