appulate / vscode-file-watcher

Extension for Visual Studio Code allows configuring commands that get run whenever a file is saved or folder is changed in vscode.
MIT License
39 stars 22 forks source link

it can't monitor remote peer to update the file content #30

Closed shenxiaolong-code closed 1 year ago

shenxiaolong-code commented 1 year ago

I log in machines A and B.

I update file X on machine A ( which is run the gdb debugger, the file X is updated by gdb command) , I expect to monitor file X on machine B (which is running vscode), but the extension don't work as expected.

BTW, the extension works for the below scenario: I update file X on A machine and monitor file X on machine A.

but it still has an issue: if I only: "cmd": "echo '${file} file content Changed'", it works.

if I call script : "cmd": "source '/home/xiaolongs/linuxScript/vscode/bin/vscode_open_file_goto_line.csh'", it will report below error: [error] /bin/sh: 1: source: not found -- it seems it always uses the bash shell and not the related setting page. ( I am using the tcsh shell )

if I call script : "cmd": "tcsh '/home/xiaolongs/linuxScript/vscode/bin/vscode_open_file_goto_line.csh'", it will report below error: [error] TERM environment variable not set.

listgarten100 commented 1 year ago

@shenxiaolong-code hi, can i see your settings for filewatcher?