@@ -7,8 +7,6 @@ import pWaitFor from "p-wait-for"
77import * as path from "path"
88import * as vscode from "vscode"
99import { handleGrpcRequest , handleGrpcRequestCancel } from "./grpc-handler"
10- import { handleModelsServiceRequest } from "./models"
11- import { EmptyRequest } from "@shared/proto/common"
1210import { buildApiHandler } from "@api/index"
1311import { cleanupLegacyCheckpoints } from "@integrations/checkpoints/CheckpointMigration"
1412import { downloadTask } from "@integrations/misc/export-markdown"
@@ -44,8 +42,6 @@ import { sendStateUpdate } from "./state/subscribeToState"
4442import { sendAddToInputEvent } from "./ui/subscribeToAddToInput"
4543import { sendAuthCallbackEvent } from "./account/subscribeToAuthCallback"
4644import { sendMcpMarketplaceCatalogEvent } from "./mcp/subscribeToMcpMarketplaceCatalog"
47- import { sendOpenRouterModelsEvent } from "./models/subscribeToOpenRouterModels"
48- import { OpenRouterCompatibleModelInfo } from "@/shared/proto/models"
4945
5046/*
5147https://github.com/microsoft/vscode-webview-ui-toolkit-samples/blob/main/default/weather-webview/src/providers/WeatherViewProvider.ts
@@ -207,17 +203,6 @@ export class Controller {
207203 await this . setUserInfo ( message . user || undefined )
208204 await this . postStateToWebview ( )
209205 break
210- case "newTask" :
211- // Code that should run in response to the hello message command
212- //vscode.window.showInformationMessage(message.text!)
213-
214- // Send a message to our webview.
215- // You can send any JSON serializable data.
216- // Could also do this in extension .ts
217- //this.postMessageToWebview({ type: "text", text: `Extension: ${Date.now()}` })
218- // initializing new instance of Cline will make sure that any agentically running promises in old instance don't affect our new task. this essentially creates a fresh slate for the new task
219- await this . initTask ( message . text , message . images , message . files )
220- break
221206 case "apiConfiguration" :
222207 if ( message . apiConfiguration ) {
223208 await updateApiConfiguration ( this . context , message . apiConfiguration )
0 commit comments