Skip to content

Commit 4d1e61a

Browse files
committed
Remove remote query text provider
1 parent 8f9e420 commit 4d1e61a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

extensions/ql-vscode/src/extension.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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";
103102
import { CodeQlStatusBarHandler } from "./status-bar";
104-
import { URLSearchParams } from "url";
105103
import {
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

15841580
const 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-
16011582
const avoidVersionCheck = "avoid-version-check-at-startup";
16021583
const lastVersionChecked = "last-version-checked";
16031584
async function assertVSCodeVersionGreaterThan(

0 commit comments

Comments
 (0)