[英]Adding monaco editor in devops work items extension
we try to use monaco editor ( diff editor ) in order to compare devops work items version in 2 different history point in time (with REST API asOf
parameter).我们尝试使用摩纳哥编辑器( 差异编辑器)来比较 2 个不同历史时间点的 devops 工作项版本(使用 REST API
asOf
参数)。
we have a proof of concept working on laptop and standalone html page but we would like to embded it as an devops extension.我们有一个在笔记本电脑和独立 html 页面上工作的概念证明,但我们希望将其嵌入为 devops 扩展。
I can't find guidance ( I'm new to devops extension ) on how to achieve this, especially that monaco editor is already available.我找不到关于如何实现这一点的指导(我是 devops 扩展的新手),尤其是 monaco 编辑器已经可用。
I found references to VSS/Features/Monaco
, tried to use it without luck.我找到了对
VSS/Features/Monaco
的引用,但没有运气就尝试使用它。
VSS.init();
VSS.require(["VSS/Features/Monaco"], function (monaco) {
var diffEditor = monaco.editor.createDiffEditor(document.getElementById('editor'), {
enableSplitViewResizing: false
});
});
There is no reference VSS/Features/Monaco
in DevOps. DevOps 中没有参考
VSS/Features/Monaco
。 Since monaco provide api , you may call the monaco api in the js:由于 monaco 提供api ,您可以在 js 中调用 monaco api :
https://microsoft.github.io/monaco-editor/api/modules/monaco.editor.html#creatediffeditor https://microsoft.github.io/monaco-editor/api/modules/monaco.editor.html#creatediffeditor
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.