microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
legacy

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/debugger/direct/directSessionWrapper.ts

25lines · modeblame

549baae2RedMickey6 years ago1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import { ChromeDebugSession, IChromeDebugSessionOpts } from "vscode-chrome-debug-core";
5import { ReassignableTelemetryReporter } from "../../common/telemetryReporters";
6
7export function makeDirectSession(
8debugSessionOpts: IChromeDebugSessionOpts,
9telemetryReporter: ReassignableTelemetryReporter
10): typeof ChromeDebugSession {
11
12return class extends ChromeDebugSession {
13
14private telemetryReporter: ReassignableTelemetryReporter;
15
16constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean) {
17super(debuggerLinesAndColumnsStartAt1, isServer, debugSessionOpts);
18this.telemetryReporter = telemetryReporter;
19}
20
21public getTelemetryReporter(): ReassignableTelemetryReporter {
22return this.telemetryReporter;
23}
24};
25}