Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c3d923f

Browse files
author
Monte Goulding
authored
Merge pull request #1967 from livecode/bugfix-21179
[[ Bug 21179 ]] Add show documentation to extension context menu
2 parents 7de3bb9 + b68ef8c commit c3d923f

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4936,11 +4936,21 @@ on revIDEGoToDictionaryEntry pLibrary, pTag, pType
49364936
revIDEMessageSend "ideOpenPalette", "dictionary"
49374937
end revIDEGoToDictionaryEntry
49384938

4939-
on revIDEGoToWidgetAPI pKind
4939+
command revIDEGoToExtensionAPI pKind
4940+
local tType
4941+
put revIDEExtensionProperty(pKind, "type") into tType
4942+
__GoToExtensionAPI pKind, tType
4943+
end revIDEGoToExtensionAPI
4944+
4945+
private command __GoToExtensionAPI pKind, pType
49404946
local tName, tLibrary
49414947
put revIDEExtensionProperty(pKind, "title") into tName
49424948
put tolower(pKind) into tLibrary
4943-
revIDEGoToDictionaryEntry tLibrary, tName, "widget"
4949+
revIDEGoToDictionaryEntry tLibrary, tName, pType
4950+
end __GoToExtensionAPI
4951+
4952+
command revIDEGoToWidgetAPI pKind
4953+
__GoToExtensionAPI pKind, "widget"
49444954
end revIDEGoToWidgetAPI
49454955

49464956
on revIDEGoToObjectAPI pObjectID

Toolset/palettes/extension manager/revideextensionmanagerrowbehavior.livecodescript

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ private function __MenuActionsForRow pDataA
133133
put tLoadOnStartup after tActions
134134
end if
135135

136+
put "Show Documentation" & return after tActions
137+
136138
local tSampleList
137139
if pDataA["samples"] is not empty then
138140
put "Sample Stacks" & return after tActions
@@ -281,6 +283,9 @@ on menuPick pAction
281283
put the cSampleStacks of me into tSampleStacks
282284
launchExtensionSampleStack tSampleStacks[tSample]
283285
break
286+
case "Show Documentation"
287+
revIDEGoToExtensionAPI tKind
288+
break
284289
end switch
285290
end menuPick
286291

notes/bugfix-21179.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add 'show documentation' option to contextual menu in extension manager

0 commit comments

Comments
 (0)