vscode-perforce icon indicating copy to clipboard operation
vscode-perforce copied to clipboard

Watch for file status change

Open unional opened this issue 7 years ago • 4 comments

When a file is changed and then committed using p4v, the file in the editor still have change marks: image

They don't go away even if I close the file and reopen. They are removed only when I close and reopen vscode.

unional avatar Apr 17 '17 23:04 unional

This is related to the quick diff editor gutter decorations, computed by VS Code itself.

@joaomoreno any idea why the editor would used a cached version of the 'Original' resource?

stef-levesque avatar Apr 18 '17 13:04 stef-levesque

@stef-levesque As part of the TextDocumentContentProvider interface, you need to ping Code that the original resource has changed, by firing the onDidChange event. It appears the extension isn't firing it ever. 👍

joaomoreno avatar Apr 19 '17 07:04 joaomoreno

Nice catch, thanks !

stef-levesque avatar Apr 19 '17 14:04 stef-levesque

Is there any workaround for this in the mean time, other than reopening vscode?

madakk avatar Jan 27 '18 15:01 madakk