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
貌似 updateTab 没有去更新非当前 tab 的数据是一个 bug。
临时解决方法:在 updateTab 调用后调用 model.setValue
model.setValue
import { editor, Uri } from '@dtinsight/molecule/esm/monaco'; const tab = molecule.editor.getTabById(tabId, 1) as any tab.data = newData molecule.editor.updateTab(tab, 1); // 以上只能更新当前 tab 的内容 const model = editor.getModel(Uri.parse(tab.id)); // 获取 tab 对应的 model if (model) { model.setValue('test'); }
Originally posted by @mortalYoung in #878 (comment)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
临时解决方法:在 updateTab 调用后调用
model.setValue
Originally posted by @mortalYoung in #878 (comment)
The text was updated successfully, but these errors were encountered: