Skip to content

Commit

Permalink
fix(analyzer): handle bdd prefixes correctly if keyword is cached
Browse files Browse the repository at this point in the history
  • Loading branch information
d-biehl committed Oct 23, 2024
1 parent b1f0f28 commit 41ff53f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
export default [
{
ignores: [
"**/.venv/",
"**/node_modules/",
"**/dist/",
"**/out/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def __init__(self, namespace: "Namespace", library_doc: LibraryDoc) -> None:
Optional[KeywordDoc],
List[DiagnosticsEntry],
Optional[List[KeywordDoc]],
Optional[str],
],
] = {}

Expand Down Expand Up @@ -80,6 +81,7 @@ def find_keyword(
if cached is not None:
self.diagnostics = cached[1]
self.multiple_keywords_result = cached[2]
self.result_bdd_prefix = cached[3]
return cached[0]

try:
Expand All @@ -106,6 +108,7 @@ def find_keyword(
result,
self.diagnostics,
self.multiple_keywords_result,
self.result_bdd_prefix,
)

return result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}
},
"robotcode.languageServer.extraArgs": [
//"--debugpy",
"--verbose",
"--debugpy",
// "--debugpy-wait-for-client",
// "--log",
// "--log-level", "INFO",
Expand All @@ -30,14 +31,6 @@
"**/lib/alibrary.py",
"LibraryWithErrors"
],
// "robotcode.extraArgs": [
// "--debugpy",
// "--debugpy-wait-for-client",
// "--log",
// "--log-level",
// "DEBUG",
// // "--log-calls"
// ],
"robotcode.robot.variableFiles": [
"${EXECDIR}/resources/testvars.yml"
],
Expand Down

0 comments on commit 41ff53f

Please sign in to comment.