Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools - Add VS Code spell checking & recommended extensions #10781

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Timi007
Copy link
Contributor

@Timi007 Timi007 commented Mar 6, 2025

When merged this pull request will:

  • Add VS Code spell checking with some dictionaries
  • Add recommended extensions

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

{
"filename": "**/stringtable.xml",
"includeRegExpList": [
"/<English>(.*)<\\/English>.*/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which flavor is this sentence ? I think (.*) should be (.*?) for fewer problems.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming it's JS RegExp if the extension is written in TypeScript.

"/\\s*(\\* Author:).*/", // Ignore author names in header
"/\\s*authors\\[\\]\\s*=\\s*{(.*)};.*/", // Ignore author names in CfgPatches
"/\\s*author\\s*=.*/", // Ignore author in config
"/.*((Amov)|(Ainj)|(Acin)|(Ainv)).+/", // Ignore animation names
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have each part in parenthesis ? Also the starting A doesn't need duplicating, I think.

Suggested change
"/.*((Amov)|(Ainj)|(Acin)|(Ainv)).+/", // Ignore animation names
"/.*A(mov|in[jv]|cin).+/", // Ignore animation names

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is easier to read. I don't know if I like your edit.

Co-authored-by: Jouni Järvinen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants