/// <summary> /// The view is asking for variable names for its intellisense. /// </summary> /// <param name="sender">Sending object</param> /// <param name="e">Context item arguments</param> public void OnNeedVariableNames(object sender, NeedContextItemsArgs e) { try { if (intellisense.GenerateScriptCompletions(e.Code, e.Offset, e.ControlSpace)) { intellisense.Show(e.Coordinates.Item1, e.Coordinates.Item2); } } catch (Exception err) { explorerPresenter.MainPresenter.ShowError(err); } }
/// <summary> /// The view is asking for variable names for its intellisense. /// </summary> /// <param name="sender">Sending object</param> /// <param name="e">Context item arguments</param> public void OnNeedVariableNames(object sender, NeedContextItemsArgs e) { try { if (e.ControlShiftSpace) { intellisense.ShowScriptMethodCompletion(manager, e.Code, e.Offset, new Point(e.Coordinates.X, e.Coordinates.Y)); } else if (intellisense.GenerateScriptCompletions(e.Code, e.Offset, e.ControlSpace)) { intellisense.Show(e.Coordinates.X, e.Coordinates.Y); } } catch (Exception err) { explorerPresenter.MainPresenter.ShowError(err); } }