public bool IsEnabled(Document activeDocument) { var editorContext = GherkinEditorContext.FromDocument(activeDocument, gherkinLanguageServiceFactory); if (editorContext == null) { return(false); } return(CanGoToDefinition(editorContext)); }
public void Invoke(Document activeDocument) { var editorContext = GherkinEditorContext.FromDocument(activeDocument, gherkinLanguageServiceFactory); if (editorContext == null) { return; } GoToDefinition(editorContext); }
private void Invoke(Document activeDocument) { var editorContext = GherkinEditorContext.FromDocument(activeDocument, gherkinLanguageServiceFactory); if (editorContext == null) { return; } GenerateStepDefinitionSkeleton(editorContext); }