feat(workspace): add resizable markdown editor/preview split with draggable handle and markdown outlet styling/demo

This commit is contained in:
2025-12-31 17:03:27 +00:00
parent 11c88f9749
commit 9fa48e511c
10 changed files with 844 additions and 26 deletions

View File

@@ -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);