You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can somebody tell me how to create a DiffView for a file using the VSCode API?
Previously i used the IStandaloneDiffEditor from the monaco-editor, but using this the IMarkerService reacts and tells me that i can't define methods and variables twice.
All i want is to click on a button and get the DiffView like that for the active model (no i don't use the workbench):
I have my model. And currently when i create the model, i save the initial code and the current code. I know that using modelRef i can create a Snapshot of the model and use for comparison in the DiffView, but as i said i don't know how to trigger it.
Which Services do i need to make the DiffView appear?
Can somebody provide a basic example of how to create the DiffView? And aside from creating the DiffView int the VSCode API-way, the IMarkerService shouldn't react and bring errors interpreting the code as two diffrent models, right?!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
can somebody tell me how to create a DiffView for a file using the VSCode API?
Previously i used the
IStandaloneDiffEditor
from the monaco-editor, but using this the IMarkerService reacts and tells me that i can't define methods and variables twice.All i want is to click on a button and get the DiffView like that for the active model (no i don't use the workbench):
I have my model. And currently when i create the model, i save the initial code and the current code. I know that using modelRef i can create a Snapshot of the model and use for comparison in the DiffView, but as i said i don't know how to trigger it.
Which Services do i need to make the DiffView appear?
Can somebody provide a basic example of how to create the DiffView? And aside from creating the DiffView int the VSCode API-way, the IMarkerService shouldn't react and bring errors interpreting the code as two diffrent models, right?!
Thank you very much for any example code
Beta Was this translation helpful? Give feedback.
All reactions