File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ UNRELEASED]
4
4
5
+ - Add Python support to the CodeQL Model Editor. [ #3676 ] ( https://github.com/github/vscode-codeql/pull/3676 )
5
6
- Update variant analysis view to display the length of the shortest path for path queries. [ #3671 ] ( https://github.com/github/vscode-codeql/pull/3671 )
6
7
7
8
## 1.13.1 - 29 May 2024
Original file line number Diff line number Diff line change @@ -840,7 +840,6 @@ const LLM_GENERATION_DEV_ENDPOINT = new Setting(
840
840
const MODEL_EVALUATION = new Setting ( "evaluation" , MODEL_SETTING ) ;
841
841
const MODEL_PACK_LOCATION = new Setting ( "packLocation" , MODEL_SETTING ) ;
842
842
const MODEL_PACK_NAME = new Setting ( "packName" , MODEL_SETTING ) ;
843
- const ENABLE_PYTHON = new Setting ( "enablePython" , MODEL_SETTING ) ;
844
843
845
844
export type ModelConfigPackVariables = {
846
845
database : string ;
@@ -857,7 +856,6 @@ export interface ModelConfig {
857
856
variables : ModelConfigPackVariables ,
858
857
) : string ;
859
858
getPackName ( languageId : string , variables : ModelConfigPackVariables ) : string ;
860
- enablePython : boolean ;
861
859
}
862
860
863
861
export class ModelConfigListener extends ConfigListener implements ModelConfig {
@@ -919,10 +917,6 @@ export class ModelConfigListener extends ConfigListener implements ModelConfig {
919
917
variables ,
920
918
) ;
921
919
}
922
-
923
- public get enablePython ( ) : boolean {
924
- return ! ! ENABLE_PYTHON . getValue < boolean > ( ) ;
925
- }
926
920
}
927
921
928
922
const GITHUB_DATABASE_SETTING = new Setting ( "githubDatabase" , ROOT_SETTING ) ;
Original file line number Diff line number Diff line change @@ -9,20 +9,16 @@ export const SUPPORTED_LANGUAGES: QueryLanguage[] = [
9
9
QueryLanguage . Java ,
10
10
QueryLanguage . CSharp ,
11
11
QueryLanguage . Ruby ,
12
+ QueryLanguage . Python ,
12
13
] ;
13
14
14
15
export function isSupportedLanguage (
15
16
language : QueryLanguage ,
16
- modelConfig : ModelConfig ,
17
+ _modelConfig : ModelConfig ,
17
18
) {
18
19
if ( SUPPORTED_LANGUAGES . includes ( language ) ) {
19
20
return true ;
20
21
}
21
22
22
- if ( language === QueryLanguage . Python ) {
23
- // Python is only enabled when the config setting is set
24
- return modelConfig . enablePython ;
25
- }
26
-
27
23
return false ;
28
24
}
You can’t perform that action at this time.
0 commit comments