File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 1790
1790
"when" : " false"
1791
1791
},
1792
1792
{
1793
- "command" : " codeQL.trimCache" ,
1794
- "when" : " codeql.supportsTrimCache"
1793
+ "command" : " codeQL.trimCache"
1795
1794
}
1796
1795
],
1797
1796
"editor/context" : [
Original file line number Diff line number Diff line change @@ -1755,14 +1755,6 @@ export class CodeQLCliServer implements Disposable {
1755
1755
this . _versionChangedListeners . forEach ( ( listener ) =>
1756
1756
listener ( newVersionAndFeatures ) ,
1757
1757
) ;
1758
- // this._version is only undefined upon config change, so we reset CLI-based context key only when necessary.
1759
- await this . app . commands . execute (
1760
- "setContext" ,
1761
- "codeql.supportsTrimCache" ,
1762
- newVersionAndFeatures . version . compare (
1763
- CliVersionConstraint . CLI_VERSION_WITH_TRIM_CACHE ,
1764
- ) >= 0 ,
1765
- ) ;
1766
1758
} catch ( e ) {
1767
1759
this . _versionChangedListeners . forEach ( ( listener ) =>
1768
1760
listener ( undefined ) ,
@@ -1917,13 +1909,7 @@ function shouldDebugCliServer() {
1917
1909
export class CliVersionConstraint {
1918
1910
// The oldest version of the CLI that we support. This is used to determine
1919
1911
// whether to show a warning about the CLI being too old on startup.
1920
- public static OLDEST_SUPPORTED_CLI_VERSION = new SemVer ( "2.14.6" ) ;
1921
-
1922
- /**
1923
- * CLI version where the query server supports the `evaluation/trimCache` method
1924
- * with `codeql database cleanup --mode=trim` semantics.
1925
- */
1926
- public static CLI_VERSION_WITH_TRIM_CACHE = new SemVer ( "2.15.1" ) ;
1912
+ public static OLDEST_SUPPORTED_CLI_VERSION = new SemVer ( "v2.15.5" ) ;
1927
1913
1928
1914
public static CLI_VERSION_WITHOUT_MRVA_EXTENSIBLE_PREDICATE_HACK = new SemVer (
1929
1915
"2.16.1" ,
Original file line number Diff line number Diff line change 3
3
" v2.17.6" ,
4
4
" v2.16.6" ,
5
5
" v2.15.5" ,
6
- " v2.14.6" ,
7
6
" nightly"
8
7
]
You can’t perform that action at this time.
0 commit comments