Skip to content

Commit

Permalink
Update plugin/core/types.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ilia <[email protected]>
  • Loading branch information
rchl and istudyatuni authored Nov 12, 2023
1 parent 0181f82 commit f49c935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def basescope2languageid(base_scope: str) -> str:
break
scope_parts.pop()
if not result:
# If no match use last compoent of the scope as the language ID.
# If no match use last component of the scope as the language ID.
result = base_scope.split(".")[-1]
return result if isinstance(result, str) else ""

Expand Down

0 comments on commit f49c935

Please sign in to comment.