diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-19 15:56:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 15:56:07 -0400 |
commit | afcae364beb2cffa8e583b4ffd3a55b59336cb1b (patch) | |
tree | f98ba0e5af179b9172f130b63fb35cd77c122932 /cli/lsp/tsc.rs | |
parent | a4c76add565b9674ef6880de88013948c61a1ce5 (diff) |
refactor: update to deno_config 0.25 (#24645)
- Gets rid of WorkspaceMemberContext. It's now `Workspace` and
`WorkspaceDirectory`
- Uses the workspace cache in the lsp
* https://github.com/denoland/deno_config/pull/95
* https://github.com/denoland/deno_config/pull/96
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 9dabb6ca5..6c808a5e4 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -5012,7 +5012,7 @@ impl UserPreferences { // Only use workspace settings for quote style if there's no `deno.json`. quote_preference: if config .tree - .workspace_member_ctx_for_specifier(specifier) + .workspace_dir_for_specifier(specifier) .is_some_and(|ctx| ctx.maybe_deno_json().is_some()) { base_preferences.quote_preference @@ -5407,13 +5407,13 @@ mod tests { config .tree .inject_config_file( - deno_config::ConfigFile::new( + deno_config::deno_json::ConfigFile::new( &json!({ "compilerOptions": ts_config, }) .to_string(), temp_dir.uri().join("deno.json").unwrap(), - &deno_config::ConfigParseOptions::default(), + &Default::default(), ) .unwrap(), ) |