如何从扩展依赖项中定义的其他扩展名中检索Vscode扩展的值?
我计划编写两个VS代码扩展。扩展名-1具有共享数据,从扩展-2中,我想读取这些键/值。为此,我在扩展-1中定义了以下
- context.globalstate.update(“键”,value);
我在扩展-2中以此上下文进行检索
- 。 //这使我不确定
是否有任何方法可以将父母扩展为孩子的价值观?
I am planning to write two VS Code extensions. Extension - 1 has sharing data and from Extension -2, I want to read those keys/values. For this, I am defining in Extension -1 to set a value like this
- context.globalState.update("key", value);
and I am retrieving this in Extension -2 like this
- context.globalState.get("key"); // This is giving me undefined
Is there any way to get the values from parent extension to child?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论