egoist/vue-monaco

Toggling diffEditor is not working

colinblaise opened this issue · 1 comments

I have the following code:

<MonacoEditor
              class="monaco-editor"
              language="powershell"
              theme="vs-dark"
              ref="monaco-editor"
              :value="value"
              :options="monacoOptions"
              @change="onChange"
              :original="originalValue"
              :diffEditor="showDiffEditor"
 />

Toggling showDiffEditor does not swap between the normal editor and the diff editor.

Is this expected to work?

Bit late, but I think this is a monaco issue and not related to this package. Does rerendering with v-if or changing the key work?