Merge pull request #3584 from github/koesie10/add-ruby-as-supported-model-editor-language

Add Ruby as a fully-supported model editor language
This commit is contained in:
Koen Vlaswinkel
2024-04-30 12:42:52 +02:00
committed by GitHub

View File

@@ -1,6 +1,5 @@
import { QueryLanguage } from "../common/query-language";
import type { ModelConfig } from "../config";
import { isCanary } from "../config";
/**
* Languages that are always supported by the model editor. These languages
@@ -9,6 +8,7 @@ import { isCanary } from "../config";
export const SUPPORTED_LANGUAGES: QueryLanguage[] = [
QueryLanguage.Java,
QueryLanguage.CSharp,
QueryLanguage.Ruby,
];
export function isSupportedLanguage(
@@ -19,11 +19,6 @@ export function isSupportedLanguage(
return true;
}
if (language === QueryLanguage.Ruby) {
// Ruby is only enabled when in canary mode
return isCanary();
}
if (language === QueryLanguage.Python) {
// Python is only enabled when the config setting is set
return modelConfig.enablePython;