Skip to content

Commit

Permalink
Fix res("id") goto definition when cursor is on string argument
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfishSoftware committed Jun 28, 2023
1 parent 0a33e68 commit 18ca62a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"publisher": "alfish",
"name": "godot-files",
"version": "0.0.4",
"version": "0.0.5",
"license": "Unlicense",
"displayName": "Godot Files",
"description": "Provides syntax-coloring for some files supported by Godot Editor.",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class GDAssetProvider implements
const id = match[2] ?? GDAssetProvider.unescapeString(match[3]);
const s = gdasset.symbols[keyword][id];
if (!s) return null;
if (gdasset.stringContaining(position)) return null;
if (gdasset.stringContaining(wordRange)) return null;
if (keyword == 'ExtResource') {
let d = document.getText(s.selectionRange).indexOf(' path="');
d = d < 0 ? 0 : d + 7;
Expand Down

0 comments on commit 18ca62a

Please sign in to comment.