microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
70cfd5650973cc6872aaae01ea2db7a924e6b67b

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/debugger/direct/directSessionWrapper.ts

25lines · modecode

1// 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(
8 debugSessionOpts: IChromeDebugSessionOpts,
9 telemetryReporter: ReassignableTelemetryReporter
10 ): typeof ChromeDebugSession {
11
12 return class extends ChromeDebugSession {
13
14 private telemetryReporter: ReassignableTelemetryReporter;
15
16 constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean) {
17 super(debuggerLinesAndColumnsStartAt1, isServer, debugSessionOpts);
18 this.telemetryReporter = telemetryReporter;
19 }
20
21 public getTelemetryReporter(): ReassignableTelemetryReporter {
22 return this.telemetryReporter;
23 }
24 };
25}
26