Skip to content

Commit 74ade9a

Browse files
Adam-itSaurabh7019
andauthored
Fixes channel output naming. Closes #663 (#665)
## 🎯 Aim The aim is to fix the output naming in order to have one output for SPFx Toolkit extension ## 🔗 Related issue Closes: #663 --------- Co-authored-by: Saurabh Tripathi <[email protected]>
1 parent d8283fe commit 74ade9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/extension.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { ChatTools } from './chat/tools/ChatTools';
1717
import { SpfxAppCLIActions } from './services/actions/SpfxAppCLIActions';
1818
import { IncreaseVersionActions } from './services/actions/IncreaseVersionActions';
1919
import { scheduleFeedbackChecks } from '@grconrad/vscode-extension-feedback';
20+
import { Logger } from './services/dataType/Logger';
2021

2122

2223
const feedbackFormUrl = 'https://forms.office.com/e/ZTfqAissqt';
@@ -46,13 +47,13 @@ export async function activate(context: vscode.ExtensionContext) {
4647

4748
PnPWebview.register();
4849

49-
const channel = vscode.window.createOutputChannel('SPFx Toolkit Extension');
50+
Logger.getInstance();
5051

5152
scheduleFeedbackChecks(
5253
{
5354
memento: context.globalState,
5455
logFn: (text: string) => {
55-
channel.appendLine(text);
56+
Logger.channel?.appendLine(text);
5657
}
5758
},
5859
{
@@ -72,7 +73,7 @@ export async function activate(context: vscode.ExtensionContext) {
7273
).then((disposable: vscode.Disposable) => {
7374
context.subscriptions.push(disposable);
7475
}).catch((reason: any) => {
75-
channel.appendLine(`Failed to schedule feedback checks: ${reason}`);
76+
Logger.channel?.appendLine(`Failed to schedule feedback checks: ${reason}`);
7677
});
7778

7879
workspace.findFiles(PROJECT_FILE, '**/node_modules/**').then(async (files) => {

0 commit comments

Comments
 (0)