提交 7326ed0f 编写于 作者: J Johannes Rieken

debt - more unused telemetry removal

上级 56992696
......@@ -10,7 +10,6 @@ import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import Severity from 'vs/base/common/severity';
import { TPromise } from 'vs/base/common/winjs.base';
import { IEditorService } from 'vs/platform/editor/common/editor';
import { fromPromise, stopwatch } from 'vs/base/common/event';
import { IInstantiationService, optional } from 'vs/platform/instantiation/common/instantiation';
import { IContextKey, IContextKeyService, RawContextKey } from 'vs/platform/contextkey/common/contextkey';
import { IMessageService } from 'vs/platform/message/common/message';
......@@ -143,7 +142,7 @@ export class ReferencesController implements editorCommon.IEditorContribution {
const requestId = ++this._requestIdPool;
const promise = modelPromise.then(model => {
modelPromise.then(model => {
// still current request? widget still open?
if (requestId !== this._requestIdPool || !this._widget) {
......@@ -192,20 +191,6 @@ export class ReferencesController implements editorCommon.IEditorContribution {
}, error => {
this._messageService.show(Severity.Error, error);
});
const onDone = stopwatch(fromPromise(promise));
const mode = this._editor.getModel().getLanguageIdentifier().language;
/* __GDPR__
"findReferences" : {
"durarion" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"mode": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
onDone(duration => this._telemetryService.publicLog('findReferences', {
duration,
mode
}));
}
public closeWidget(): void {
......
......@@ -10,7 +10,6 @@ import { onUnexpectedError } from 'vs/base/common/errors';
import { isFalsyOrEmpty } from 'vs/base/common/arrays';
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { ContextKeyExpr, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
import { ICommandService } from 'vs/platform/commands/common/commands';
import { IEditorContribution, ScrollType } from 'vs/editor/common/editorCommon';
......@@ -90,7 +89,6 @@ export class SuggestController implements IEditorContribution {
constructor(
private _editor: ICodeEditor,
@ICommandService private _commandService: ICommandService,
@ITelemetryService private _telemetryService: ITelemetryService,
@IContextKeyService private _contextKeyService: IContextKeyService,
@IInstantiationService private _instantiationService: IInstantiationService,
) {
......@@ -224,15 +222,6 @@ export class SuggestController implements IEditorContribution {
}
this._alertCompletionItem(item);
/* __GDPR__
"suggestSnippetInsert" : {
"suggestionType" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"${include}": [
"${EditorTelemetryData}"
]
}
*/
this._telemetryService.publicLog('suggestSnippetInsert', { ...this._editor.getTelemetryData(), suggestionType: suggestion.type });
}
private _alertCompletionItem({ suggestion }: ICompletionItem): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册