MCPcopy Index your code
hub / github.com/compiler-explorer/compiler-explorer / initLibraries

Method initLibraries

static/panes/executor.ts:896–911  ·  view source on GitHub ↗
(state: PaneState & ExecutorState)

Source from the content-addressed store, hash-verified

894 }
895
896 async initLibraries(state: PaneState & ExecutorState): Promise<void> {
897 this.libsWidget = new LibsWidget(
898 this.currentLangId,
899 this.compiler,
900 this.libsButton,
901 state,
902 this.onLibsChanged.bind(this),
903 await LibUtils.getSupportedLibraries(
904 this.compiler ? this.compiler.libsArr : [],
905 this.currentLangId,
906 this.compiler?.remote ?? undefined,
907 ),
908 );
909 // Wait for the lazily-loaded libraries to be selected before compiling or persisting state.
910 await this.libsWidget.stateLoaded;
911 }
912
913 onFontScale(): void {
914 this.updateState();

Callers 1

postInitMethod · 0.95

Calls 1

getSupportedLibrariesMethod · 0.80

Tested by

no test coverage detected