You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the translation of the marscode ai plugin. After investigation, it was found that the problem lies in the regular expressions corresponding to lines 379 and 19 of the file @theia/plugin-ext/src/hosted/node/hosted-plugin-localization-service.ts. The current regular expression does not support keys containing spaces. However, the translation files of the marscode ai plugin contain keys with spaces, such as "%New Chat%", which will lead to incorrect matching.
Specific Behavior
In the Theia environment, when using this regular expression to match keys with spaces, the translation placeholders cannot be parsed correctly. But in VS Code, the same translation files and placeholders can be parsed normally.
Relevant Code
The regular expression involved in the problem may be similar to the following code:
typescript const NLS_REGEX = /^%([\w\d.-]+)%$/i;
Steps to Reproduce:
Install the marscode ai plugin in the Theia environment.
2.Check the translation files containing keys with spaces (e.g., %New Chat%).
Try to load the plugin and view the translation results. You will find that the translation of keys with spaces is incorrect.
Additional Information
Operating System: windows 10
Theia Version: 1.58.3
The text was updated successfully, but these errors were encountered:
Bug Description:
There is an issue with the translation of the marscode ai plugin. After investigation, it was found that the problem lies in the regular expressions corresponding to lines 379 and 19 of the file
@theia/plugin-ext/src/hosted/node/hosted-plugin-localization-service.ts
. The current regular expression does not support keys containing spaces. However, the translation files of the marscode ai plugin contain keys with spaces, such as"%New Chat%"
, which will lead to incorrect matching.Specific Behavior
In the Theia environment, when using this regular expression to match keys with spaces, the translation placeholders cannot be parsed correctly. But in VS Code, the same translation files and placeholders can be parsed normally.
Relevant Code
The regular expression involved in the problem may be similar to the following code:
typescript const NLS_REGEX = /^%([\w\d.-]+)%$/i;
Steps to Reproduce:
2.Check the translation files containing keys with spaces (e.g., %New Chat%).
Additional Information
The text was updated successfully, but these errors were encountered: