Skip to content

Commit c19bacb

Browse files
committed
refactor: no posting update, since we have trackers
1 parent d0c8f0b commit c19bacb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/view/webview.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ export class AssemblyView implements Disposable {
112112
async update() {
113113
const generation = ++this._updateGeneration;
114114

115-
void this.panel.webview.postMessage({ type: "updateStatus", message: "Loading assembly\u2026" });
116-
117115
try {
118116
this._asmContainer.clear();
119117

@@ -148,12 +146,12 @@ export class AssemblyView implements Disposable {
148146
try {
149147
const funcs = await getFunctions(this.fileUri);
150148
const prioritized = prioritizeAssemblyBlocks(this._asmContainer.blocks, funcs);
151-
this._asmContainer.rebuildMaps(prioritized, (file) => matchesSourceFile(file, this.sourceMatchTarget));
152149

153150
let b = prioritized;
154151
if (b.length > 1000) {
155152
b = b.slice(0, 1000);
156153
}
154+
this._asmContainer.rebuildMaps(b, (file) => matchesSourceFile(file, this.sourceMatchTarget));
157155

158156
const html = getAsmContentHtml(b, this._asmContainer.lineToSource, this.sourceMatchTarget);
159157
void this.panel.webview.postMessage({ type: "updateAsm", html });

0 commit comments

Comments
 (0)