Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jun 11, 2024
1 parent 3c109e9 commit afe4382
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions crates/biome_service/src/file_handlers/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use biome_json_syntax::{JsonLanguage, JsonRoot, JsonSyntaxNode};
use biome_parser::AnyParse;
use biome_rowan::{AstNode, NodeCache};
use biome_rowan::{TextRange, TextSize, TokenAtOffset};
use tracing::{debug_span, trace_span};

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
Expand Down Expand Up @@ -428,10 +429,24 @@ fn lint(params: LintParams) -> LintResults {
})
}

fn code_actions(_: CodeActionsParams) -> PullActionsResult {
PullActionsResult {
actions: Vec::new(),
}
fn code_actions(params: CodeActionsParams) -> PullActionsResult {
let CodeActionsParams {
parse,
range,
workspace,
path,
manifest,
language,
} = params;

debug_span!("Code actions JSON", range =? range, path =? path).in_scope(move || {
let tree = parse.tree();
trace_span!("Parsed file", tree =? tree).in_scope(move || {
PullActionsResult {
actions: Vec::new(),
}
})
})
}

fn fix_all(params: FixAllParams) -> Result<FixFileResult, WorkspaceError> {
Expand Down

0 comments on commit afe4382

Please sign in to comment.