MCPcopy Create free account
hub / github.com/DTStack/molecule / setGroupEditorValue

Method setGroupEditorValue

src/services/workbench/editorService.ts:393–401  ·  view source on GitHub ↗
(group: IEditorGroup, value: string)

Source from the content-addressed store, hash-verified

391 }
392
393 public setGroupEditorValue(group: IEditorGroup, value: string) {
394 const model = group.editorInstance?.getModel();
395 if (!model) return;
396
397 const currentValue = model?.getValue();
398 if (currentValue !== value) {
399 model?.setValue(value);
400 }
401 }
402
403 public closeTab(tabId: UniqueId, groupId: UniqueId) {
404 const groupIndex = this.getGroupIndexById(groupId);

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.80

Tested by

no test coverage detected