Add Ruby as a fully-supported model editor language
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user