import * as vscode from 'vscode' ; import { BUILDER_VIEW_TYPE , EDITOR_VIEW_TYPE , OPEN_WITH_COMMAND } from '../constants' ; import { telemetryService } from '../telemetry' ; export async function soqlBuilderToggle ( doc ) { telemetryService . sendCommandEvent ( 'soql_builder_toggle' , process . hrtime ( ) ) ; const viewType = vscode . window . activeTextEditor ? BUILDER_VIEW_TYPE : EDITOR_VIEW_TYPE ; vscode . commands . executeCommand ( OPEN_WITH_COMMAND , doc , viewType ) ; }