Skip to content

remove unused vscode commands #4958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions extensions/vscode/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
setupStatusBar,
StatusBarStatus,
} from "./autocomplete/statusBar";
import { ContinueGUIWebviewViewProvider } from "./ContinueGUIWebviewViewProvider";

Check warning on line 30 in extensions/vscode/src/commands.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

There should be no empty line within import group

import { VerticalDiffManager } from "./diff/vertical/manager";
import EditDecorationManager from "./quickEdit/EditDecorationManager";
Expand All @@ -36,9 +36,9 @@
import { getMetaKeyLabel } from "./util/util";
import { VsCodeIde } from "./VsCodeIde";

import { LOCAL_DEV_DATA_VERSION } from "core/data/log";

Check warning on line 39 in extensions/vscode/src/commands.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

`core/data/log` import should occur before import of `core/indexing/walkDir`
import { isModelInstaller } from "core/llm";

Check warning on line 40 in extensions/vscode/src/commands.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

`core/llm` import should occur before import of `core/util/paths`
import { startLocalOllama } from "core/util/ollamaHelper";

Check warning on line 41 in extensions/vscode/src/commands.ts

View workflow job for this annotation

GitHub Actions / vscode-checks

There should be at least one empty line between import groups
import type { VsCodeWebviewProtocol } from "./webviewProtocol";

let fullScreenPanel: vscode.WebviewPanel | undefined;
Expand Down Expand Up @@ -634,16 +634,6 @@
editDecorationManager.clear();
void sidebar.webviewProtocol?.request("exitEditMode", undefined);
},
// "continue.quickEdit": async (args: QuickEditShowParams) => {
// let linesOfCode = undefined;
// if (args.range) {
// linesOfCode = args.range.end.line - args.range.start.line;
// }
// captureCommandTelemetry("quickEdit", {
// linesOfCode,
// });
// quickEdit.show(args);
// },
"continue.writeCommentsForCode": async () => {
captureCommandTelemetry("writeCommentsForCode");

Expand Down Expand Up @@ -708,37 +698,6 @@
vscode.commands.executeCommand("continue.continueGUIView.focus");
sidebar.webviewProtocol?.request("addModel", undefined);
},
"continue.sendMainUserInput": (text: string) => {
sidebar.webviewProtocol?.request("userInput", {
input: text,
});
},
"continue.selectRange": (startLine: number, endLine: number) => {
if (!vscode.window.activeTextEditor) {
return;
}
vscode.window.activeTextEditor.selection = new vscode.Selection(
startLine,
0,
endLine,
0,
);
},
"continue.foldAndUnfold": (
foldSelectionLines: number[],
unfoldSelectionLines: number[],
) => {
vscode.commands.executeCommand("editor.unfold", {
selectionLines: unfoldSelectionLines,
});
vscode.commands.executeCommand("editor.fold", {
selectionLines: foldSelectionLines,
});
},
"continue.sendToTerminal": (text: string) => {
captureCommandTelemetry("sendToTerminal");
ide.runCommand(text);
},
"continue.newSession": () => {
sidebar.webviewProtocol?.request("newSession", undefined);
},
Expand Down
Loading