Path: blob/main/extensions/copilot/src/extension/survey/vscode-node/surveyCommands.ts
13399 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import * as vscode from 'vscode';6import { ISurveyService } from '../../../platform/survey/common/surveyService';7import { Disposable } from '../../../util/vs/base/common/lifecycle';89export const SURVEY_SIGNAL_USAGE_ID = 'github.copilot.survey.signalUsage';1011export class SurveyCommandContribution extends Disposable {12constructor(@ISurveyService private readonly _surveyService: ISurveyService) {13super();14this._register(vscode.commands.registerCommand(SURVEY_SIGNAL_USAGE_ID, (source: string, languageId?: string) => {15this._surveyService.signalUsage(source, languageId);16}));17}18}192021