Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -9,6 +8,7 @@ import { isCanary } from "../config";
export const SUPPORTED_LANGUAGES: QueryLanguage[] = [
QueryLanguage.Java,
QueryLanguage.CSharp,
QueryLanguage.Ruby,
];

export function isSupportedLanguage(
Expand All @@ -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;
Expand Down