Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot open the editor screen on keys that are present in a currently opened file #1384

@philip-schrenk

Description

@philip-schrenk

Describe the bug
I have a monorepo setup with three workspaces: two apps and one shared library. All in Vue.
Every workspace has some of their own locales, with app-1 having by for the the most.
Setup:

/apps
	/app-1
		/src/plugins/i18n
			...locales.json
	/app-2
		/src/i18n
			...locales.json
/packages
	/pkg
		/src/plugins/i18n
			...locales.json

Whenever i execute "i18n Ally: Open Editor" and select a key that is present in a file that is currently opened in the editor, it just wont open the editor and instead send me to the file the key is used in (or do nothing if the opened file is currently focused).

This project setup is a monorepo, however, I can verify that this is still the case with my previously split up repos.

Extension Version
2.13.1

Framework/i18n package you are using
vue-i18n

To Reproduce
Steps to reproduce the behavior:

  1. Open a file with i18n-keys
  2. Go to 'i18n-Ally: Open Editor'
  3. Select a key present in that opened file

Device Infomation

  • OS: Arch-Linux/Manjaro
  • Version: 6.12.77-1-MANJARO
  • VS Code Version: 1.105.1

Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information

No related output was produced. Only the output from reloading after adding all three paths to the config:

――――――

🧰 Config "i18n-ally.localesPaths" changed, reloading
🔁 Reloading loader
🧩 Enabled frameworks: Vue
🧬 Enabled parsers: json, yaml, json5

🚀 Initializing loader "(project root)"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(?<ext>json|ya?ml|json5)$/

📂 Loading locales under apps/app-1/src/plugins/i18n
	📑 Loading (de) de.json [1776164557425.356]
	📑 Loading (en) en.json [1775822697786.5068]

👀 Watching change on apps/app-1/src/plugins/i18n

📂 Loading locales under apps/app-2/src/i18n
	📑 Loading (de) de.json [1775822697803.1736]
	📑 Loading (en) en.json [1775822697803.1736]

👀 Watching change on apps/app-2/src/i18n

📂 Loading locales under packages/pkg/src/plugins/i18n
	📑 Loading (de) de.json [1775822697809.84]
	📑 Loading (en) en.json [1775822697809.84]

👀 Watching change on packages/pkg/src/plugins/i18n
✅ Loading finished

――――――

Screenshots
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions