mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
19 lines
375 B
TypeScript
19 lines
375 B
TypeScript
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright 2025 Google LLC
|
||
|
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
|
*/
|
||
|
|
|
||
|
|
import * as vscode from 'vscode';
|
||
|
|
|
||
|
|
export function createLogger(
|
||
|
|
context: vscode.ExtensionContext,
|
||
|
|
logger: vscode.OutputChannel,
|
||
|
|
) {
|
||
|
|
return (message: string) => {
|
||
|
|
if (context.extensionMode === vscode.ExtensionMode.Development) {
|
||
|
|
logger.appendLine(message);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|