fix(sh): exclude ShellSession language#416
Conversation
|
WalkthroughThis pull request updates the linguist-languages dependency in the project and refactors the language support functionality. In the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant LanguageFunc as getSupportedLanguages
Caller->>LanguageFunc: Call with (parser, aceModes, [excludeNames?])
alt excludeNames provided
LanguageFunc->>LanguageFunc: Check if current language exists in excludeNames
LanguageFunc-->>LanguageFunc: Skip languages listed in excludeNames
else No exclusion list
LanguageFunc->>LanguageFunc: Process all supported languages
end
LanguageFunc-->>Caller: Return filtered list of languages
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/common-tags@1.8.2, npm/github-markdown-css@5.4.0 |
Closes #415.
Per the request from #415 (comment), I also updated
linguist-languages.Summary by CodeRabbit
New Features
Chores
linguist-languagesdependency to the latest version for potential bug fixes and improvements.ShellSessionlanguage in theprettier-plugin-sh.