vscode-beancount
vscode-beancount copied to clipboard
Switching between text editors do not reset context
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.