Add NativeCommands Service

This commit is contained in:
Josh Johnson 2018-05-03 22:47:41 -04:00
parent a4366a5061
commit b9d6659a26
7 changed files with 31 additions and 22 deletions

View file

@ -1,10 +1,10 @@
import { commands, window, workspace } from "vscode";
import { window, workspace } from "vscode";
import { Disposable, Range, TextEditor, TextEditorEdit, Uri } from "vscode";
import * as constants from "../../constants";
import { ChildProcess } from "../child-process";
import { Configuration } from "../../common";
import { Configuration, NativeCommands } from "../../common";
export async function executeXQuery(editor: TextEditor, edit: TextEditorEdit): Promise<void> {
// this disposable will be used for creating status bar messages
@ -22,7 +22,7 @@ export async function executeXQuery(editor: TextEditor, edit: TextEditorEdit): P
const action = await window.showWarningMessage("An XQuery execution engine has not been defined.", "Define Now");
if (action === "Define Now") {
commands.executeCommand(constants.nativeCommands.openGlobalSettings);
NativeCommands.openGlobalSettings();
}
return;