mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 05:19:47 -06:00
Matt suggestions
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ export class ApiHandler {
|
||||
handleLanguages(req: express.Request, res: express.Response) {
|
||||
const availableLanguages = this.usedLangIds.map(val => {
|
||||
const lang = this.languages[val];
|
||||
const newLangObj: Language & {defaultCompiler?: string} = Object.assign({}, lang);
|
||||
const newLangObj: Language = Object.assign({}, lang);
|
||||
if (this.options) {
|
||||
newLangObj.defaultCompiler = this.options.options.defaultCompiler[unwrap(lang).id];
|
||||
}
|
||||
|
||||
@@ -106,4 +106,6 @@ export interface Language {
|
||||
monacoDisassembly: string | null;
|
||||
/** Brief description of the language */
|
||||
tooltip?: string;
|
||||
/** Default compiler for the language. This is populated when handed to the frontend. */
|
||||
defaultCompiler?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user