Skip to content

Commit

Permalink
Use LogOutputChannel (#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonYeMSFT authored Feb 22, 2024
1 parent fe72ae2 commit 98a67f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1042,11 +1042,6 @@
"description": "The batch size to be used when querying Azure Database resources.",
"default": 50
},
"azureDatabases.enableOutputTimestamps": {
"type": "boolean",
"default": true,
"description": "Prepends each line displayed in the output channel with a timestamp."
},
"cosmosDB.emulator.mongoPort": {
"type": "integer",
"default": 10255,
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'use strict';

import { registerAzureUtilsExtensionVariables } from '@microsoft/vscode-azext-azureutils';
import { AzExtParentTreeItem, AzExtTreeItem, AzureExtensionApi, IActionContext, ITreeItemPickerContext, apiUtils, callWithTelemetryAndErrorHandling, createApiProvider, createAzExtOutputChannel, registerCommandWithTreeNodeUnwrapping, registerErrorHandler, registerEvent, registerReportIssueCommand, registerUIExtensionVariables } from '@microsoft/vscode-azext-utils';
import { AzExtParentTreeItem, AzExtTreeItem, AzureExtensionApi, IActionContext, ITreeItemPickerContext, apiUtils, callWithTelemetryAndErrorHandling, createApiProvider, createAzExtLogOutputChannel, registerCommandWithTreeNodeUnwrapping, registerErrorHandler, registerEvent, registerReportIssueCommand, registerUIExtensionVariables } from '@microsoft/vscode-azext-utils';
import { AzExtResourceType } from '@microsoft/vscode-azureresources-api';
import { platform } from 'os';
import * as vscode from 'vscode';
Expand Down Expand Up @@ -45,7 +45,7 @@ export async function activateInternal(context: vscode.ExtensionContext, perfSta
ext.context = context;
ext.ignoreBundle = ignoreBundle;

ext.outputChannel = createAzExtOutputChannel("Azure Databases", ext.prefix);
ext.outputChannel = createAzExtLogOutputChannel("Azure Databases");
context.subscriptions.push(ext.outputChannel);
registerUIExtensionVariables(ext);
registerAzureUtilsExtensionVariables(ext);
Expand Down
4 changes: 2 additions & 2 deletions src/extensionVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { AzExtTreeDataProvider, AzExtTreeItem, IAzExtOutputChannel } from "@microsoft/vscode-azext-utils";
import { AzExtTreeDataProvider, AzExtTreeItem, IAzExtLogOutputChannel } from "@microsoft/vscode-azext-utils";
import { AzureHostExtensionApi } from "@microsoft/vscode-azext-utils/hostapi";
import { ExtensionContext, SecretStorage, TreeView } from "vscode";
import { DatabasesFileSystem } from "./DatabasesFileSystem";
Expand All @@ -23,7 +23,7 @@ export namespace ext {
export let connectedMongoDB: MongoDatabaseTreeItem | undefined;
export let connectedPostgresDB: PostgresDatabaseTreeItem | undefined;
export let context: ExtensionContext;
export let outputChannel: IAzExtOutputChannel;
export let outputChannel: IAzExtLogOutputChannel;
export let tree: AzExtTreeDataProvider;
export let treeView: TreeView<AzExtTreeItem>;
export let attachedAccountsNode: AttachedAccountsTreeItem;
Expand Down

0 comments on commit 98a67f2

Please sign in to comment.