From b97beca2e573cf6ed813e99faf5763eff9ddcd0a Mon Sep 17 00:00:00 2001 From: Sebastian Elsner <902798+sebastianelsner@users.noreply.github.com> Date: Mon, 13 May 2024 08:15:17 +0200 Subject: [PATCH] Fixing #212 --- src/extension/file-interaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/file-interaction.ts b/src/extension/file-interaction.ts index a0543af5..33b45071 100644 --- a/src/extension/file-interaction.ts +++ b/src/extension/file-interaction.ts @@ -141,7 +141,7 @@ export class FileInteractionCache { } put(filePath: string): void { - this._currentFile = filePath.replace('.git', '') + this._currentFile = filePath.replace('.git', '').replace('.hg', '') const fileExtension = this._currentFile.split('.').pop() if (this._interactions.get(this._currentFile)) return if (this._currentFile.includes('.') && fileExtension) {