diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-02-18 15:37:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 15:37:05 +1100 |
commit | 2225e83da2d118678e3df1e2801af195166bc65a (patch) | |
tree | 0d33bdf77e19872a72fca4364281c6cc14ec5724 /cli/tsc.rs | |
parent | 78e34d49120d8cc2583d8d6d28ae9b74f9765533 (diff) |
fix(lsp): handle data URLs properly (#9522)
Fixes #9514
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r-- | cli/tsc.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs index 535447c54..5b6d00310 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -383,7 +383,10 @@ fn resolve(state: &mut State, args: Value) -> Result<Value, AnyError> { } else { resolved_specifier.to_string() }; - resolved.push((resolved_specifier_str, media_type.as_ts_extension())); + resolved.push(( + resolved_specifier_str, + media_type.as_ts_extension().into(), + )); } // in certain situations, like certain dynamic imports, we won't have // the source file in the graph, so we will return a fake module to |