We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
async function activate (context) { const state = stateManager(context) const { lastPaletteTitleApplied } = state.read() await state.write({ lastPaletteTitleApplied: 'foo bar' }) } function stateManager (context) { return { read, write } function read () { return { lastPaletteTitleApplied: context.globalState.get('lastPaletteApplied') } } async function write (newState) { await context.globalState.update('lastPaletteApplied', newState.lastPaletteTitleApplied) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
this might help for state management
webview
The text was updated successfully, but these errors were encountered: