Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/compiler-explorer/compiler-explorer
/ getCurrentEditorLanguage
Method
getCurrentEditorLanguage
static/panes/opt-view.ts:158–160 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
156
157
// Monaco language id of the current editor
158
getCurrentEditorLanguage() {
159
return
this.editor.getModel()?.getLanguageId();
160
}
161
162
override getDefaultPaneName() {
163
return
'Opt Viewer'
;
Callers
1
onCompileResult
Method · 0.95
Calls
1
getLanguageId
Method · 0.80
Tested by
no test coverage detected