Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,31 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.


## Questions, issues, feature requests, and contributions

- If you have a question about how to accomplish something with the extension, please [ask on our Discussions page](https://github.com/microsoft/vscode-python/discussions/categories/q-a).
- If you come across a problem with the extension, please [file an issue](https://github.com/microsoft/vscode-python).
- Contributions are always welcome! Please see our [contributing guide](https://github.com/Microsoft/vscode-python/blob/main/CONTRIBUTING.md) for more details.
- Any and all feedback is appreciated and welcome!
- If someone has already [filed an issue](https://github.com/Microsoft/vscode-python) that encompasses your feedback, please leave a 👍/👎 reaction on the issue.
- Otherwise please start a [new discussion](https://github.com/microsoft/vscode-python/discussions/categories/ideas).
- If you're interested in the development of the extension, you can read about our [development process](https://github.com/Microsoft/vscode-python/blob/main/CONTRIBUTING.md#development-process).

## Data and telemetry

The Microsoft Python Extension for Visual Studio Code collects usage
data and sends it to Microsoft to help improve our products and
services. Read our
[privacy statement](https://privacy.microsoft.com/privacystatement) to
learn more. This extension respects the `telemetry.enableTelemetry`
setting which you can learn more about at
https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
Any use of third-party trademarks or logos are subject to those third-party's policies.
263 changes: 256 additions & 7 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@vscode/extension-telemetry": "^0.9.7",
"@vscode/test-cli": "^0.0.10",
"fs-extra": "^11.2.0",
"stack-trace": "0.0.10",
Expand Down
4 changes: 4 additions & 0 deletions src/common/telemetry/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum EventNames {}

// Map all events to their properties
export interface IEventNamePropertyMapping {}
24 changes: 24 additions & 0 deletions src/common/telemetry/reporter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type TelemetryReporter from '@vscode/extension-telemetry';

class ReporterImpl {
private static telemetryReporter: TelemetryReporter | undefined;
static getTelemetryReporter() {
const tel = require('@vscode/extension-telemetry');
// eslint-disable-next-line @typescript-eslint/naming-convention
const Reporter = tel.default as typeof TelemetryReporter;
ReporterImpl.telemetryReporter = new Reporter(
'0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255',
[
{
lookup: /(errorName|errorMessage|errorStack)/g,
},
],
);

return ReporterImpl.telemetryReporter;
}
}

export function getTelemetryReporter() {
return ReporterImpl.getTelemetryReporter();
}
Loading