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

Method updateTitle

static/panes/editor.ts:1929–1936  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1927 }
1928
1929 override updateTitle(): void {
1930 const name = this.getPaneName();
1931 const customName = this.paneName ? this.paneName : name;
1932 if (name.endsWith('CMakeLists.txt')) {
1933 this.changeLanguage('cmake');
1934 }
1935 this.container.setTitle(escapeHTML(customName));
1936 }
1937
1938 // Called every time we change language, so we get the relevant code
1939 updateEditorCode(): void {

Callers 2

onLanguageChangeMethod · 0.95
setFilenameMethod · 0.95

Calls 3

getPaneNameMethod · 0.95
changeLanguageMethod · 0.95
escapeHTMLFunction · 0.85

Tested by

no test coverage detected