@@ -10,7 +10,6 @@ import {
1010 languages ,
1111 ProgressLocation ,
1212 ProgressOptions ,
13- ProviderResult ,
1413 QuickPickItem ,
1514 Range ,
1615 Uri ,
@@ -101,7 +100,6 @@ import {
101100 withProgress ,
102101} from "./commandRunner" ;
103102import { CodeQlStatusBarHandler } from "./status-bar" ;
104- import { URLSearchParams } from "url" ;
105103import {
106104 handleDownloadPacks ,
107105 handleInstallPackDependencies ,
@@ -1076,8 +1074,6 @@ async function activateWithInstalledDistribution(
10761074 ) ,
10771075 ) ;
10781076
1079- registerRemoteQueryTextProvider ( ) ;
1080-
10811077 // The "runVariantAnalysis" command is internal-only.
10821078 ctx . subscriptions . push (
10831079 commandRunnerWithProgress (
@@ -1583,21 +1579,6 @@ async function initializeLogging(ctx: ExtensionContext): Promise<void> {
15831579
15841580const checkForUpdatesCommand = "codeQL.checkForUpdatesToCLI" ;
15851581
1586- /**
1587- * This text provider lets us open readonly files in the editor.
1588- *
1589- * TODO: Consolidate this with the 'codeql' text provider in query-history-manager.ts.
1590- */
1591- function registerRemoteQueryTextProvider ( ) {
1592- workspace . registerTextDocumentContentProvider ( "remote-query" , {
1593- provideTextDocumentContent ( uri : Uri ) : ProviderResult < string > {
1594- const params = new URLSearchParams ( uri . query ) ;
1595-
1596- return params . get ( "queryText" ) ;
1597- } ,
1598- } ) ;
1599- }
1600-
16011582const avoidVersionCheck = "avoid-version-check-at-startup" ;
16021583const lastVersionChecked = "last-version-checked" ;
16031584async function assertVSCodeVersionGreaterThan (
0 commit comments