mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Merge #431
431: fixes for LSP file system operations r=matklad a=vemoo fixes for #131 Co-authored-by: Bernardo <berublan@gmail.com>
This commit is contained in:
commit
53ffa2a030
@ -26,7 +26,8 @@ export async function handle(change: SourceChange) {
|
||||
const toReveal = change.cursorPosition;
|
||||
await vscode.workspace.applyEdit(wsEdit);
|
||||
if (toOpen) {
|
||||
const doc = await vscode.workspace.openTextDocument(toOpen);
|
||||
const toOpenUri = vscode.Uri.parse(toOpen);
|
||||
const doc = await vscode.workspace.openTextDocument(toOpenUri);
|
||||
await vscode.window.showTextDocument(doc);
|
||||
} else if (toReveal) {
|
||||
const uri = Server.client.protocol2CodeConverter.asUri(
|
||||
|
Loading…
Reference in New Issue
Block a user