@@ -18,7 +18,7 @@ import {
1818 FIND_RUFF_BINARY_SCRIPT_PATH ,
1919 RUFF_BINARY_NAME ,
2020} from "./constants" ;
21- import { LazyOutputChannel , logger } from "./logger" ;
21+ import { logger } from "./logger" ;
2222import { getDebuggerPath } from "./python" ;
2323import {
2424 getExtensionSettings ,
@@ -39,7 +39,6 @@ import { updateServerKind, updateStatus } from "./status";
3939import { getDocumentSelector } from "./utilities" ;
4040import { execFile } from "child_process" ;
4141import which = require( "which" ) ;
42- import { registerCommand } from "./vscodeapi" ;
4342
4443export type IInitializationOptions = {
4544 settings : ISettings [ ] ;
@@ -416,24 +415,15 @@ async function createServer(
416415let _disposables : Disposable [ ] = [ ] ;
417416
418417export async function startServer (
419- context : vscode . ExtensionContext ,
420418 projectRoot : vscode . WorkspaceFolder ,
421419 workspaceSettings : ISettings ,
422420 serverId : string ,
423421 serverName : string ,
422+ outputChannel : OutputChannel ,
423+ traceOutputChannel : OutputChannel ,
424424) : Promise < LanguageClient | undefined > {
425425 updateStatus ( undefined , LanguageStatusSeverity . Information , true ) ;
426426
427- // Create output channels for the server and trace logs
428- const outputChannel = vscode . window . createOutputChannel ( `${ serverName } Language Server` ) ;
429- context . subscriptions . push ( outputChannel ) ;
430- const traceOutputChannel = new LazyOutputChannel ( `${ serverName } Language Server Trace` ) ;
431- context . subscriptions . push ( traceOutputChannel ) ;
432- // And, a command to show the server logs
433- context . subscriptions . push (
434- registerCommand ( `${ serverId } .showServerLogs` , ( ) => outputChannel . show ( ) ) ,
435- ) ;
436-
437427 const extensionSettings = await getExtensionSettings ( serverId ) ;
438428 const globalSettings = await getGlobalSettings ( serverId ) ;
439429
0 commit comments