GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Provide backward compat · microsoft/python-language-server@3c8cfb8

This repository was archived by the owner on Apr 14, 2022. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/LanguageServer/Impl
    • Definitions
      • ITelemetryService.cs
    • Services
      • TelemetryService.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/LanguageServer/Impl/Definitions/ITelemetryService.cs‎

Copy file name to clipboardExpand all lines: src/LanguageServer/Impl/Definitions/ITelemetryService.cs
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@
1414
// See the Apache Version 2.0 License for specific language governing
1515
// permissions and limitations under the License.
1616

17+
using System;
1718
using System.Collections.Generic;
1819
using System.Threading.Tasks;
1920

2021
namespace Microsoft.Python.LanguageServer {
22+
[Obsolete]
2123
public interface ITelemetryService {
24+
Task SendTelemetry(object o);
25+
}
26+
public interface ITelemetryService2 {
2227
Task SendTelemetry(TelemetryEvent telemetryEvent);
2328
}
2429

Collapse file

‎src/LanguageServer/Impl/Services/TelemetryService.cs‎

Copy file name to clipboardExpand all lines: src/LanguageServer/Impl/Services/TelemetryService.cs
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,22 @@
1414
// See the Apache Version 2.0 License for specific language governing
1515
// permissions and limitations under the License.
1616

17+
using System;
1718
using System.Threading.Tasks;
18-
using Microsoft.PythonTools.LanguageServer;
1919
using StreamJsonRpc;
2020

2121
namespace Microsoft.Python.LanguageServer.Services {
22-
public sealed class TelemetryService : ITelemetryService {
22+
#pragma warning disable CS0612 // Type or member is obsolete
23+
public sealed class TelemetryService : ITelemetryService, ITelemetryService2 {
24+
#pragma warning restore CS0612 // Type or member is obsolete
2325
private readonly JsonRpc _rpc;
2426
public TelemetryService(JsonRpc rpc) {
2527
_rpc = rpc;
2628
}
29+
30+
[Obsolete]
31+
public Task SendTelemetry(object o) => Task.CompletedTask;
32+
2733
public Task SendTelemetry(TelemetryEvent telemetryEvent)
2834
=> _rpc.NotifyWithParameterObjectAsync("telemetry/event", telemetryEvent);
2935
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.