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

Switching between text editors do not reset context

Open wbkang opened this issue 4 years ago • 0 comments

I have two unrelated beancount files in the same workspace. When I switch between the two editors, I expect the autocomplete to respect the current file, but instead what happens is that the autocomplete shows for the previously opened file until I click save.

I made and tested a fix by myself that seems to work (in extension.ts):

  context.subscriptions.push(
      vscode.window.onDidChangeActiveTextEditor(
          (e) => extension.refreshData(context)
      )
  );

Please let me know if I am on the right path, then I can just submit a PR. Thank you.

wbkang avatar Nov 23 '21 18:11 wbkang