Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching between text editors do not reset context #65

Open
wbkang opened this issue Nov 23, 2021 · 0 comments
Open

Switching between text editors do not reset context #65

wbkang opened this issue Nov 23, 2021 · 0 comments

Comments

@wbkang
Copy link

wbkang commented Nov 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant