feat(workspace): add resizable markdown editor/preview split with draggable handle and markdown outlet styling/demo
This commit is contained in:
@@ -378,7 +378,10 @@ export class TypeScriptIntelliSenseManager {
|
||||
const existingModel = this.monacoInstance.editor.getModel(uri);
|
||||
|
||||
if (existingModel) {
|
||||
existingModel.setValue(content);
|
||||
// Only update if content actually changed (prevents cursor reset)
|
||||
if (existingModel.getValue() !== content) {
|
||||
existingModel.setValue(content);
|
||||
}
|
||||
} else {
|
||||
const language = this.getLanguageFromPath(path);
|
||||
this.monacoInstance.editor.createModel(content, language, uri);
|
||||
|
||||
Reference in New Issue
Block a user