Skip to content

Commit 2ce17a5

Browse files
author
Jackson Kearl
committed
Remove empty logging from telemetry2 searches.
1 parent 4eab357 commit 2ce17a5

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.vscode/searches/ts36031.code-search

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Query: \\w+\\?\\..+![(.[]
22
# Flags: RegExp
33
# ContextLines: 2
4-
54
src/vs/base/browser/ui/tree/asyncDataTree.ts:
65
270 } : undefined,
76
271 isChecked: options.ariaProvider!.isChecked ? (e) => {

src/vs/workbench/contrib/search/browser/searchEditorActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const openNewSearchEditor =
4646
}
4747
}
4848

49-
telemetryService.publicLog2<{}, {}>('searchEditor/openNewSearchEditor');
49+
telemetryService.publicLog2('searchEditor/openNewSearchEditor');
5050

5151
const input = instantiationService.invokeFunction(getOrMakeSearchEditorInput, { config: { query: selected } });
5252
await editorService.openEditor(input, { pinned: true });
@@ -65,7 +65,7 @@ export const createEditorFromSearchResult =
6565
const labelService = accessor.get(ILabelService);
6666

6767

68-
telemetryService.publicLog2<{}, {}>('searchEditor/createEditorFromSearchResult');
68+
telemetryService.publicLog2('searchEditor/createEditorFromSearchResult');
6969

7070
const labelFormatter = (uri: URI): string => labelService.getUriLabel(uri, { relative: true });
7171

src/vs/workbench/contrib/search/browser/searchEditorInput.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class SearchEditorInput extends EditorInput {
118118
async saveAs(group: GroupIdentifier, options?: ITextFileSaveOptions): Promise<IEditorInput | undefined> {
119119
const path = await this.fileDialogService.pickFileToSave(await this.suggestFileName(), options?.availableFileSystems);
120120
if (path) {
121-
this.telemetryService.publicLog2<{}, {}>('searchEditor/saveSearchResults');
121+
this.telemetryService.publicLog2('searchEditor/saveSearchResults');
122122
if (await this.textFileService.saveAs(this.resource, path, options)) {
123123
this.setDirty(false);
124124
if (!isEqual(path, this.resource)) {
@@ -266,7 +266,7 @@ export class SearchEditorContribution implements IWorkbenchContribution {
266266
return undefined;
267267
}
268268

269-
this.telemetryService.publicLog2<{}, {}>('searchEditor/openSavedSearchEditor');
269+
this.telemetryService.publicLog2('searchEditor/openSavedSearchEditor');
270270
const input = instantiationService.invokeFunction(getOrMakeSearchEditorInput, { uri: resource });
271271
const opened = editorService.openEditor(input, { ...options, pinned: resource.scheme === searchEditorScheme, ignoreOverrides: true }, group);
272272
return { override: Promise.resolve(opened) };

0 commit comments

Comments
 (0)