dseight / vscode-disasexpl

Disassembly Explorer for VS Code
MIT License
48 stars 11 forks source link

Changing the C code tab to a different tab stops matching up lines #31

Open verhovsky opened 8 months ago

verhovsky commented 8 months ago

To reproduce:

Create a simple project:

hello.c:

#include <stdio.h>

int main() {
    printf("hello world\n");
}

Makefile:

CC = cc
CFLAGS = -Wall -Wextra -g

TARGET = hello
SRC = hello.c

all: $(TARGET)

$(TARGET): $(SRC)
    $(CC) $(CFLAGS) -o $@ $^
    $(CC) $(CFLAGS) -fno-verbose-asm -g -o hello.S -S $^

watch:
    while true; do \
        $(MAKE) $(WATCHMAKE); \
        fswatch -1 .; \
    done

clean:
    rm -f $(TARGET) hello.S

Then

  1. Run make
  2. Open the directory in VS Code
  3. Open "hello.c"
  4. open the Makefile (double click so it's in the tab bar)
  5. Run "Disassembly Explorer: Show"
  6. Switch the C code tab to the Makefile and switch back to the C code

Expected:

Moving around the cursor should change the highlighted line in the assembly

Actual:

The assembly tab still shows but it doesn't highlight any lines when I move my cursor

Screenshot 2024-01-12 at 03 04 29 Screenshot 2024-01-12 at 03 04 33 Screenshot 2024-01-12 at 03 04 38

VS Code Version: 1.85.1 Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 Date: 2023-12-13T09:48:16.874Z (1 mo ago) Electron: 25.9.7 ElectronBuildId: 25551756 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin arm64 23.2.0