Skip to content

SCM: Support input box spell checking #35571

Closed

Description

@borekb

For longer commit messages it would be great to have a spell checker there. Ideally, VSCode would provide that out of the box but if the direction is to leave spell checking up to extensions (and there are already some great ones out there, like Spell Right by Bartosz Antosik (@bartosz-antosik)), there could be an API for that.

Possibly related: Offline spell checker for VSCode #20266

UPDATE: since 2020, Electron supports spell checking natively, see below.

Activity

  1. added
    scm
    and removed on Oct 4, 2017
  2. added
    feature-request
    on Oct 5, 2017
  3. joaomoreno commented on Oct 5, 2017

    @joaomoreno
    Contributor
  4. einarolafs commented on Apr 12, 2018

    @einarolafs

    This would be a very valuable feature, there is nothing worse than creating a spelling mistake in a commit and discovering many commits later.

  5. added
    help wanted
    on Sep 14, 2018
  6. changed the title [-]Spell check commit messages[/-] [+]SCM: Support input box spell checking[/+] on Sep 14, 2018
  7. skprabhanjan commented on Sep 17, 2018

    @skprabhanjan
    Contributor
  8. skprabhanjan commented on Sep 20, 2018

    @skprabhanjan
    Contributor

    João Moreno (@joaomoreno) , I tried various ways of using that module but keep getting an error("Activating extension 'vscode.git' failed: Cannot find module 'electron-spellchecker'.), can you please share any example of how to install and use an external module like electron-spellchecker?
    Thanks :)

  9. joaomoreno commented on Sep 24, 2018

    @joaomoreno
    Contributor

    Is that module special? Does it need to run in Electron itself? Note that extensions do not run in Electron, but in an extension host.

  10. skprabhanjan commented on Sep 24, 2018

    @skprabhanjan
    Contributor

    João Moreno (@joaomoreno) , I got the point that extensions run in extensions host, is there any way to install and use this module there ?
    I also think that "electron-spellchecker" derives some information from electron (https://electron-userland.github.io/electron-spellchecker/docs/class/src/context-menu-builder.js~ContextMenuBuilder.html) as described here.
    Also is there any external module used in any extension so that I can refer something from that ?
    Thanks :)

  11. 51 remaining items

  12. lszomoru commented on Jul 18, 2022

    @lszomoru
    Member

    The author of the Code Spell Checker extension published an update (v2.3.1) that contains my proposed changes so you can enable spell checking in the commit input box by adding vscode to the allowed schemas, and scminput to the enabled languages:

      "cSpell.allowedSchemas": ["file", "gist", "sftp", "untitled", "vscode-notebook-cell", "vscode-userdata", "vscode"],
      "cSpell.enabledLanguageIds": ["scminput"],
  13. Jason3S commented on Jul 18, 2022

    @Jason3S

    Ladislau Szomoru (@lszomoru),

    It is better to use:

      "cSpell.allowedSchemas": ["file", "gist", "sftp", "untitled", "vscode-notebook-cell", "vscode-userdata", "vscode"],
      "cSpell.enableFiletypes": ["scminput"],

    image

    Because of limitations in the way VS Code merges settings, lists are overwritten instead of merged. So, setting enabledLanguageIds will disable all other file types.

  14. Jason3S commented on Jul 18, 2022

    @Jason3S

    Ladislau Szomoru (@lszomoru),

    I'll turn it on by default, but it does generate an error when trying to fix any issues.

    image

    I'll take a look if it is anything on the extension side of things.

  15. lszomoru commented on Jul 18, 2022

    @lszomoru
    Member

    Jason Dent (@Jason3S), I already have an issue tracking improvements that I need to make to the Problems view in order to fully support problem markers that are being generated for the SCM input text document. If you run in any other issues please add them to that issue. Thanks!

  16. lszomoru commented on Jul 26, 2022

    @lszomoru
    Member

    Today's Insiders release (2022-070-26) contains a change so that we adopt a dedicated scheme, vscode-scm for the text document associated with the commit input. This enables extension authors to easily identify such documents. In case you are using the Code Spell Checker extension please update your user settings to:

      "cSpell.allowedSchemas": ["file", "gist", "sftp", "untitled", "vscode-notebook-cell", "vscode-userdata", "vscode-scm"],
      "cSpell.enableFiletypes": ["scminput"],

    Jason Dent (@Jason3S), with this change, you can add the vscode scheme back to the blocked list and add the vscode-scm scheme to the default list of schemes that are being processed. I have also pushed a commit so that problem markers for documents using the vscode-scm scheme will not appear in the problems view.

  17. Jason3S commented on Jul 26, 2022

    @Jason3S

    Ladislau Szomoru (@lszomoru), I'll update Code Spell Checker.

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

Metadata

Metadata

Labels

feature-requeston-testplanscm

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions