Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Mar 6, 2024
1 parent b92ba4f commit 7677479
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/biome_service/src/workspace/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ impl WorkspaceServer {
.get(path)
.map(|doc| doc.file_source_index)
.and_then(|index| self.get_source(index))
.unwrap_or(
DocumentFileSource::from_path(path)
)
.unwrap_or(DocumentFileSource::from_path(path))
}

/// Return an error factory function for unsupported features at a given path
Expand Down Expand Up @@ -387,9 +385,11 @@ impl Workspace for WorkspaceServer {

/// Add a new file to the workspace
fn open_file(&self, params: OpenFileParams) -> Result<(), WorkspaceError> {
let index = self.set_source(params
.document_file_source
.unwrap_or(DocumentFileSource::from_path(&params.path)));
let index = self.set_source(
params
.document_file_source
.unwrap_or(DocumentFileSource::from_path(&params.path)),
);
self.syntax.remove(&params.path);
self.documents.insert(
params.path,
Expand Down

0 comments on commit 7677479

Please sign in to comment.