mirror of
https://github.com/google/gn-language-server.git
synced 2025-12-23 12:26:43 +00:00
Use Url::from_file_path
This commit is contained in:
parent
fd16a049b8
commit
99f48fc3ba
1 changed files with 2 additions and 5 deletions
|
|
@ -224,11 +224,8 @@ mod tests {
|
|||
CompletionParams {
|
||||
text_document_position: TextDocumentPositionParams {
|
||||
text_document: TextDocumentIdentifier {
|
||||
uri: Url::parse(&format!(
|
||||
"file://{}",
|
||||
testdata("workspaces/completion/BUILD.gn").display()
|
||||
))
|
||||
.unwrap(),
|
||||
uri: Url::from_file_path(testdata("workspaces/completion/BUILD.gn"))
|
||||
.unwrap(),
|
||||
},
|
||||
position: Position::new(36, 0),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue