Skip to content

Commit 0967340

Browse files
dpasiliaoterales
andauthored
fix: Re-enable adding and navigation to strings in the expected namespace (#920)
* Re-enable adding strings to the proper namespace * Re-enable navigation to strings in the proper namespace * Remove a new line --------- Co-authored-by: Alex Terehov <[email protected]>
1 parent 0ea030d commit 0967340

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/commands/manipulations/gotoKey.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ export async function GoToKey(item?: LocaleTreeItem | CommandOptions | ProgressR
6767
return
6868

6969
const text = editor.document.getText()
70-
const delimiter = Global.getNamespaceDelimiter()
71-
const range = parser.navigateToKey(text, NodeHelper.getPathWithoutNamespace(keypath, node, undefined, delimiter), await Global.requestKeyStyle())
70+
const range = parser.navigateToKey(text, NodeHelper.getPathWithoutNamespace(keypath, node), await Global.requestKeyStyle())
7271

7372
if (range) {
7473
editor.selection = new Selection(

src/core/loaders/LocaleLoader.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ export class LocaleLoader extends Loader {
300300

301301
if (Global.namespaceEnabled) {
302302
const node = this.getNodeByKey(keypath)
303-
const delimiter = Global.getNamespaceDelimiter()
304-
keypath = NodeHelper.getPathWithoutNamespace(keypath, node, pending.namespace, delimiter)
303+
keypath = NodeHelper.getPathWithoutNamespace(keypath, node, pending.namespace)
305304
}
306305

307306
modified = applyPendingToObject(

0 commit comments

Comments
 (0)