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

Method getCurrentState

static/panes/tool.ts:357–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355 }
356
357 override getCurrentState() {
358 const options = this.getEffectiveOptions();
359 const state: NewToolSettings = {
360 ...super.getCurrentState(),
361 wrap: options.wrap,
362 toolId: this.toolId,
363 args: this.getInputArgs(),
364 stdin: this.getInputStdin(),
365 stdinPanelShown: (this.monacoStdin && this.monacoEditorOpen) || !this.panelStdin.hasClass('d-none'),
366 monacoStdin: this.monacoStdin,
367 monacoEditorOpen: this.monacoEditorOpen,
368 monacoEditorHasBeenAutoOpened: this.monacoEditorHasBeenAutoOpened,
369 argsPanelShown: !this.panelArgs.hasClass('d-none'),
370 };
371 return state;
372 }
373
374 setLanguage(languageId: false | string) {
375 if (languageId) {

Callers 2

constructorMethod · 0.95
closeMethod · 0.95

Calls 3

getEffectiveOptionsMethod · 0.95
getInputArgsMethod · 0.95
getInputStdinMethod · 0.95

Tested by

no test coverage detected