Skip to content

Commit 7d564b5

Browse files
authored
Merge pull request #3584 from github/koesie10/add-ruby-as-supported-model-editor-language
Add Ruby as a fully-supported model editor language
2 parents 013bf65 + 64f0115 commit 7d564b5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

extensions/ql-vscode/src/model-editor/supported-languages.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { QueryLanguage } from "../common/query-language";
22
import type { ModelConfig } from "../config";
3-
import { isCanary } from "../config";
43

54
/**
65
* Languages that are always supported by the model editor. These languages
@@ -9,6 +8,7 @@ import { isCanary } from "../config";
98
export const SUPPORTED_LANGUAGES: QueryLanguage[] = [
109
QueryLanguage.Java,
1110
QueryLanguage.CSharp,
11+
QueryLanguage.Ruby,
1212
];
1313

1414
export function isSupportedLanguage(
@@ -19,11 +19,6 @@ export function isSupportedLanguage(
1919
return true;
2020
}
2121

22-
if (language === QueryLanguage.Ruby) {
23-
// Ruby is only enabled when in canary mode
24-
return isCanary();
25-
}
26-
2722
if (language === QueryLanguage.Python) {
2823
// Python is only enabled when the config setting is set
2924
return modelConfig.enablePython;

0 commit comments

Comments
 (0)