MCPcopy Create free account
hub / github.com/outerbase/studio / lock

Method lock

src/components/editor/prompt-plugin.tsx:350–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348 protected view?: EditorView;
349
350 public lock() {
351 requestAnimationFrame(() => {
352 if (this.view) {
353 this.view.dispatch({
354 effects: this.lockCompartment.reconfigure([
355 EditorState.readOnly.of(true),
356 ]),
357 });
358 }
359 });
360 }
361
362 public unlock() {
363 requestAnimationFrame(() => {

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected