We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a635c7f commit 979cce9Copy full SHA for 979cce9
1 file changed
packages/salesforcedx-vscode-soql/src/commands/queryUtils.ts
@@ -37,9 +37,8 @@ const pickApiForQuery = async (
37
export class GetQueryAndApiInputs implements ParametersGatherer<QueryAndApiInputs> {
38
public async gather(): Promise<CancelResponse | ContinueResponse<QueryAndApiInputs>> {
39
const editor = vscode.window.activeTextEditor;
40
- const query = !editor
41
- ? await vscode.window.showInputBox(INPUT_BOX_OPTIONS)
42
- : editor.selection.isEmpty
+ const query =
+ !editor || editor.selection.isEmpty
43
? await vscode.window.showInputBox(INPUT_BOX_OPTIONS)
44
: editor.document.getText(editor.selection);
45
if (!query) {
0 commit comments