Skip to content

Commit

Permalink
Update packages (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 authored Mar 22, 2024
1 parent 370cffe commit 700a13c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 60 deletions.
80 changes: 40 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vscode/extension-telemetry",
"description": "A module for Visual Studio Code extensions to report consistent telemetry.",
"version": "0.9.5",
"version": "0.9.6",
"author": {
"name": "Microsoft Corporation"
},
Expand All @@ -20,9 +20,9 @@
"compile": "tsc -p src/browser/tsconfig.json && tsc -p src/node/tsconfig.json"
},
"dependencies": {
"@microsoft/1ds-core-js": "^4.0.6",
"@microsoft/1ds-post-js": "^4.0.6",
"@microsoft/applicationinsights-web-basic": "^3.0.8"
"@microsoft/1ds-core-js": "^4.1.2",
"@microsoft/1ds-post-js": "^4.1.2",
"@microsoft/applicationinsights-web-basic": "^3.1.2"
},
"devDependencies": {
"@types/mocha": "^10.0.3",
Expand Down
17 changes: 1 addition & 16 deletions src/common/1dsClientFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import type { AppInsightsCore, IExtendedConfiguration, IPerfManager } from "@microsoft/1ds-core-js";
import type { AppInsightsCore, IExtendedConfiguration } from "@microsoft/1ds-core-js";
import type { IChannelConfiguration, IXHROverride, PostChannel } from "@microsoft/1ds-post-js";
import type * as vscode from "vscode";
import type { BaseTelemetryClient } from "./baseTelemetrySender";
Expand All @@ -21,18 +21,6 @@ const getAICore = async (key: string, vscodeAPI: typeof vscode, xhrOverride?: IX
const appInsightsCore = new oneDs.AppInsightsCore();
const collectorChannelPlugin: PostChannel = new postPlugin.PostChannel();

// Dummy perf manager to fix memory leaks
const perfManager: IPerfManager = {
create: function (_src, _payload, _isAsync) {
return null;
},
fire: function (_perfEvent) {
},
setCtx: function (_key, _value) {
},
getCtx: function (_key) {
}
};
// Configure the app insights core to send to collector++ and disable logging of debug info
const coreConfig: IExtendedConfiguration = {
instrumentationKey: key,
Expand All @@ -41,9 +29,6 @@ const getAICore = async (key: string, vscodeAPI: typeof vscode, xhrOverride?: IX
loggingLevelConsole: 0,
disableCookiesUsage: true,
disableDbgExt: true,
createPerfMgr: () => {
return perfManager;
},
disableInstrumentationKeyValidation: true,
channels: [[
collectorChannelPlugin
Expand Down

0 comments on commit 700a13c

Please sign in to comment.