diff options
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index b4e02394b..210ef701a 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -3835,12 +3835,6 @@ impl State { } } -#[derive(Debug, Deserialize, Serialize)] -#[serde(rename_all = "camelCase")] -struct SpecifierArgs { - specifier: String, -} - #[op2(fast)] fn op_is_cancelled(state: &mut OpState) -> bool { let state = state.borrow_mut::<State>(); @@ -3873,11 +3867,13 @@ struct LoadResponse { fn op_load<'s>( scope: &'s mut v8::HandleScope, state: &mut OpState, - #[serde] args: SpecifierArgs, + #[string] specifier: &str, ) -> Result<v8::Local<'s, v8::Value>, AnyError> { let state = state.borrow_mut::<State>(); - let mark = state.performance.mark_with_args("tsc.op.op_load", &args); - let specifier = state.specifier_map.normalize(args.specifier)?; + let mark = state + .performance + .mark_with_args("tsc.op.op_load", specifier); + let specifier = state.specifier_map.normalize(specifier)?; let maybe_load_response = if specifier.as_str() == "internal:///missing_dependency.d.ts" { Some(LoadResponse { |