import * as vscode from 'vscode' ; import { BUILDER_VIEW_TYPE , EDITOR_VIEW_TYPE , OPEN_WITH_COMMAND } from '../constants' ; import { telemetryService } from '../telemetry' ; export async function soqlOpenNew ( ) { telemetryService . sendCommandEvent ( 'soql_builder_open_new' , process . hrtime ( ) ) ; if ( vscode . workspace ) { const fileName = 'untitled.soql' ; const newUri = vscode . Uri . file ( fileName ) . with ( { scheme : 'untitled' , path : fileName } ) ; vscode . commands . executeCommand ( OPEN_WITH_COMMAND , newUri , BUILDER_VIEW_TYPE ) ; } }