Skip to content

Commit cacffa1

Browse files
committed
Fix rebase conflicts
1 parent 10a14f0 commit cacffa1

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

crates/ark/src/lsp/goto_definition.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ pub(crate) fn goto_definition(
1717
let uri = &params.text_document_position_params.text_document.uri;
1818
let position = params.text_document_position_params.position;
1919

20-
let db = &state.oak;
20+
let db = &state.db;
2121
let encoding = state.config.position_encoding;
2222

23-
let Some(file) = db.file_by_url(&FilePath::from_url(uri)) else {
23+
let Some(file) = db.file_by_path(&FilePath::from_url(uri)) else {
2424
return Ok(None);
2525
};
2626

@@ -55,7 +55,7 @@ fn nav_target_to_link(
5555

5656
Ok(LocationLink {
5757
origin_selection_range: None,
58-
target_uri: target.file.url(db).to_url(),
58+
target_uri: target.file.path(db).to_url(),
5959
target_range,
6060
target_selection_range,
6161
})

crates/ark/src/lsp/tests/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use aether_path::FilePath;
2-
use oak_scan::DbExt;
2+
use oak_scan::DbScan;
33
use tower_lsp::lsp_types;
44

55
use crate::lsp::document::Document;
@@ -17,7 +17,7 @@ pub(super) fn make_state(uri: &lsp_types::Url, doc: &Document) -> WorldState {
1717
pub(super) fn insert_file(state: &mut WorldState, uri: &lsp_types::Url, doc: &Document) {
1818
state.insert_document(uri.clone(), doc.clone());
1919
state
20-
.oak
20+
.db
2121
.upsert_editor(FilePath::from_url(uri), doc.contents.clone());
2222
}
2323

crates/oak_db/src/file_resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl<'db> File {
154154
..
155155
} = index.definitions(scope)[def_id].kind()
156156
{
157-
let target = db.file_by_url(&FilePath::from_url(target_url))?;
157+
let target = db.file_by_path(&FilePath::from_url(target_url))?;
158158
return target.resolve_export(db, Name::new(db, forwarded.as_str()));
159159
}
160160
self.definition(db, scope, def_id)

crates/oak_ide/tests/integration/goto_definition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use biome_rowan::TextSize;
1212
use oak_db::File;
1313
use oak_db::OakDatabase;
1414
use oak_ide::goto_definition;
15-
use oak_scan::DbExt;
15+
use oak_scan::DbScan;
1616
use url::Url;
1717

1818
fn file_url(name: &str) -> Url {

0 commit comments

Comments
 (0)