Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
verhovsky opened this issue Jan 12, 2024 · 0 comments
Open

Comments

@verhovsky
Copy link
Contributor

verhovsky commented Jan 12, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant