Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { ChatTools } from './chat/tools/ChatTools';
import { SpfxAppCLIActions } from './services/actions/SpfxAppCLIActions';
import { IncreaseVersionActions } from './services/actions/IncreaseVersionActions';
import { scheduleFeedbackChecks } from '@grconrad/vscode-extension-feedback';
import { Logger } from './services/dataType/Logger';


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

PnPWebview.register();

const channel = vscode.window.createOutputChannel('SPFx Toolkit Extension');
Logger.getInstance();

scheduleFeedbackChecks(
{
memento: context.globalState,
logFn: (text: string) => {
channel.appendLine(text);
Logger.channel?.appendLine(text);
}
},
{
Expand All @@ -72,7 +73,7 @@ export async function activate(context: vscode.ExtensionContext) {
).then((disposable: vscode.Disposable) => {
context.subscriptions.push(disposable);
}).catch((reason: any) => {
channel.appendLine(`Failed to schedule feedback checks: ${reason}`);
Logger.channel?.appendLine(`Failed to schedule feedback checks: ${reason}`);
});

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