Skip to content

Commit 35dfd74

Browse files
committed
use query instead of fragment for memory dump
fix #199
1 parent 95fa94b commit 35dfd74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function examineMemory() {
7272
}
7373
const pickedFile = (file) => {
7474
vscode.window.showInputBox({ placeHolder: "Memory Location or Range", validateInput: range => getMemoryRange(range) === undefined ? "Range must either be in format 0xF00-0xF01, 0xF100+32 or 0xABC154" : "" }).then(range => {
75-
vscode.window.showTextDocument(vscode.Uri.parse("debugmemory://" + file + "#" + getMemoryRange(range)));
75+
vscode.window.showTextDocument(vscode.Uri.parse("debugmemory://" + file + "?" + getMemoryRange(range)));
7676
});
7777
};
7878
if (files.length == 1)
@@ -92,7 +92,7 @@ class MemoryContentProvider implements vscode.TextDocumentContentProvider {
9292
const conn = net.connect(path.join(os.tmpdir(), "code-debug-sockets", uri.authority.toLowerCase()));
9393
let from, to;
9494
let highlightAt = -1;
95-
const splits = uri.fragment.split("&");
95+
const splits = uri.query.split("&");
9696
if (splits[0].split("=")[0] == "at") {
9797
const loc = parseInt(splits[0].split("=")[1].substr(2), 16);
9898
highlightAt = 64;

0 commit comments

Comments
 (0)