MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / confirmOverwrite

Method confirmOverwrite

static/panes/editor.ts:1140–1146  ·  view source on GitHub ↗
(yes: () => void)

Source from the content-addressed store, hash-verified

1138 }
1139
1140 confirmOverwrite(yes: () => void): void {
1141 this.alertSystem.ask(
1142 'Changes were made to the code',
1143 'Changes were made to the code while it was being processed. Overwrite changes?',
1144 {yes: yes, no: undefined},
1145 );
1146 }
1147
1148 applyEdit(operation: monaco.editor.IIdentifiedSingleEditOperation): void {
1149 const nullFn = () => {

Callers 1

formatCurrentTextMethod · 0.95

Calls 1

askMethod · 0.80

Tested by

no test coverage detected