fix(lsp): remove duplicate cwd in config path (#10620)

This commit is contained in:
Niclas Overby 2021-05-13 23:56:30 +02:00 committed by GitHub
parent 62c752211c
commit 608c7d68e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 5 deletions

View file

@ -431,7 +431,7 @@ impl Inner {
))
}?;
let config_file = ConfigFile::read(config_url.as_str())
let config_file = ConfigFile::read(config_url.path())
.context("Failed to load configuration file")?;
let (value, maybe_ignored_options) = config_file.as_compiler_options()?;
tsconfig.merge(&value);