@@ -13,7 +13,7 @@ import {
1313 workspace ,
1414} from "vscode" ;
1515import { LanguageClient } from "vscode-languageclient/node" ;
16- import { arch , platform , homedir } from "os" ;
16+ import { arch , homedir , platform } from "os" ;
1717import { ensureDir } from "fs-extra" ;
1818import { join } from "path" ;
1919import { dirSync } from "tmp-promise" ;
@@ -35,13 +35,13 @@ import {
3535} from "./config" ;
3636import {
3737 AstViewer ,
38- install ,
38+ createIDEServer ,
3939 getQueryEditorCommands ,
40+ install ,
4041 TemplatePrintAstProvider ,
4142 TemplatePrintCfgProvider ,
4243 TemplateQueryDefinitionProvider ,
4344 TemplateQueryReferenceProvider ,
44- createIDEServer ,
4545} from "./language-support" ;
4646import { DatabaseManager } from "./databases/local-databases" ;
4747import { DatabaseUI } from "./databases/local-databases-ui" ;
@@ -68,15 +68,15 @@ import {
6868 getErrorStack ,
6969} from "./common/helpers-pure" ;
7070import {
71- ResultsView ,
72- WebviewReveal ,
7371 LocalQueries ,
7472 QuickEvalCodeLensProvider ,
73+ ResultsView ,
74+ WebviewReveal ,
7575} from "./local-queries" ;
7676import {
7777 BaseLogger ,
78- showAndLogExceptionWithTelemetry ,
7978 showAndLogErrorMessage ,
79+ showAndLogExceptionWithTelemetry ,
8080 showAndLogInformationMessage ,
8181 showAndLogWarningMessage ,
8282} from "./common/logging" ;
@@ -88,10 +88,6 @@ import {
8888} from "./common/logging/vscode" ;
8989import { QueryHistoryManager } from "./query-history/query-history-manager" ;
9090import { CompletedLocalQueryInfo } from "./query-results" ;
91- import {
92- LegacyQueryRunner ,
93- QueryServerClient as LegacyQueryServerClient ,
94- } from "./query-server/legacy" ;
9591import { QLTestAdapterFactory } from "./query-testing/test-adapter" ;
9692import { TestUIService } from "./query-testing/test-ui" ;
9793import { CompareView } from "./compare/compare-view" ;
@@ -1242,29 +1238,17 @@ async function createQueryServer(
12421238 { title : "CodeQL query server" , location : ProgressLocation . Window } ,
12431239 task ,
12441240 ) ;
1245- if ( await cliServer . cliConstraints . supportsNewQueryServer ( ) ) {
1246- const qs = new QueryServerClient (
1247- app ,
1248- qlConfigurationListener ,
1249- cliServer ,
1250- qsOpts ,
1251- progressCallback ,
1252- ) ;
1253- ctx . subscriptions . push ( qs ) ;
1254- await qs . startQueryServer ( ) ;
1255- return new NewQueryRunner ( qs ) ;
1256- } else {
1257- const qs = new LegacyQueryServerClient (
1258- app ,
1259- qlConfigurationListener ,
1260- cliServer ,
1261- qsOpts ,
1262- progressCallback ,
1263- ) ;
1264- ctx . subscriptions . push ( qs ) ;
1265- await qs . startQueryServer ( ) ;
1266- return new LegacyQueryRunner ( qs ) ;
1267- }
1241+
1242+ const qs = new QueryServerClient (
1243+ app ,
1244+ qlConfigurationListener ,
1245+ cliServer ,
1246+ qsOpts ,
1247+ progressCallback ,
1248+ ) ;
1249+ ctx . subscriptions . push ( qs ) ;
1250+ await qs . startQueryServer ( ) ;
1251+ return new NewQueryRunner ( qs ) ;
12681252}
12691253
12701254function getContextStoragePath ( ctx : ExtensionContext ) {
0 commit comments