MCPcopy Create free account
hub / github.com/pwa-builder/PWABuilder / updated

Method updated

components/code-editor/src/code-editor.ts:91–105  ·  view source on GitHub ↗
(changedProperties: Map<string, any>)

Source from the content-addressed store, hash-verified

89 }
90
91 updated(changedProperties: Map<string, any>) {
92 if (changedProperties.has('startText')) {
93 this.editorState = getEditorState(this.startText || '', this.editorStateType, [], !this.readOnly);
94
95 if (this.editorView) {
96 this.editorView.setState(this.editorState);
97 } else {
98 this.editorView = new EditorView({
99 state: this.editorState,
100 root: this.shadowRoot || undefined,
101 parent: this.shadowRoot?.getElementById(this.editorId) || undefined,
102 });
103 }
104 }
105 }
106
107 async copyCode() {
108

Callers

nothing calls this directly

Calls 1

getEditorStateFunction · 0.90

Tested by

no test coverage detected