Skip to content

Disable Mac help topics in Help menu #18697

Closed

Description

@roblourens

If you search in the Help menu, it will show you general Mac help topics:

image

None of these are from Code, but could be confused with Code-specific help, especially for certain search terms. Is it possible to disable this feature?

image

Activity

  1. bpasero commented on Jan 18, 2017

    @bpasero
    Contributor

    roblourens please report against electron.

  2. added
    upstream
    on Jan 18, 2017
  3. roblourens commented on Jan 18, 2017

    @roblourens
    MemberAuthor
  4. roblourens commented on Jan 25, 2017

    @roblourens
    MemberAuthor

    Response:

    Looks like this can be configured in the .plist file, from my testing if you add an any value then the default help topics aren't displayed.

    Example taken from https://developer.apple.com/library/content/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/registering_help/registering_help.html#//apple_ref/doc/uid/TP30000903-CH207-CHDGHHDF

    <key>CFBundleHelpBookFolder</key>
    <string>SurfWriter.Help</string>
    <key>CFBundleHelpBookName</key>
    <string>com.mycompany.surfwriter.help</string>
    

    It looks like this can be configured in the info.plist file in an app's package. Not sure where that happens in our build.

  5. removed
    upstream
    on Jan 25, 2017
  6. added
    bug
    on Jan 26, 2017
  7. removed this from the Backlog milestone on Jan 26, 2017
  8. bpasero commented on Jan 26, 2017

    @bpasero
    Contributor

    João Moreno (@joaomoreno) might know if we can add this to our plist

  9. added
    macos
    install-update
    on Jan 26, 2017
  10. 8 remaining items

  11. added
    good first issue
    help wanted
    on Apr 26, 2017
  12. shnaramn commented on Apr 26, 2017

    @shnaramn

    I would like to contribute. But I'm relatively new to OSS/git/VSCode. I might take some time/need help, but can I try fixing this?

  13. joaomoreno commented on Apr 27, 2017

    @joaomoreno
    Contributor

    Sure.

  14. JeremyLoy commented on May 11, 2017

    @JeremyLoy
    Contributor

    Found the root cause of the issue.

    TL;DR: This is blocked and needs to be flagged 'upstream'

    The build process for VS Code uses the plugin 'gulp-atom-electron', which unfortunately doesn't expose the ability to alter the Info.plist. See here

    Once the upstream plugin has been patched, it will be trivial to fix this issue.
    roblourens already found the answer; simply adding the keys <key>CFBundleHelpBookFolder</key> <string>SurfWriter.Help</string> <key>CFBundleHelpBookName</key> <string>com.mycompany.surfwriter.help</string> to the info.plist removes the macOS help suggestions.

    The author of 'gulp-atom-electron', João Moreno (@joaomoreno) is in this thread, so if I am wrong, please correct me!

    Until then though, I move to mark this as blocked/upstream and I will move on to something else. Boy was it fun tracking this down though!

  15. joaomoreno commented on May 12, 2017

    @joaomoreno
    Contributor

    Not so sure about that fix... Those keys seem too specific to the SurfWriter application.

    But don't be afraid of creating a PR for gulp-atom-electron!

  16. JeremyLoy commented on May 12, 2017

    @JeremyLoy
    Contributor

    Surfwriter specifically isn't necessary (Not quite sure what the best value is, but I feel that creating a useful Help Book is a Story in and of itself!).

    I have attached a screen shot showing that even garbage values for the keys 'CFBundleHelperBookFolder' and 'CFBundleHelpBookName' produce the desired results, fulfilling this issue's requirements. I'm sure we want something other than garbage values though! Most likely, to point towards an empty HelpBook file in the VSCode src, then another story can be made to fill that with useful info.

    I'll be sure to take a look at gulp-atom-electron this weekend!

    screen shot 2017-05-12 at 9 35 49 am

  17. joaomoreno commented on Jun 13, 2017

    @joaomoreno
    Contributor

    Jeremy Loy (@JeremyLoy) What values should we put to disable the menu?

  18. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buggood first issuehelp wantedinstall-updatemacosverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions