Skip to content

Commit

Permalink
🤡 Crash LSP on symbol rename
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Oct 23, 2024
1 parent f9ca810 commit b7d56cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wake/lsp/features/rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ async def rename(
f"Requested rename for file {params.text_document.uri} at {params.position}"
)

assert False

match = IDENTIFIER_RE.match(params.new_name)
if not match:
raise LspError(ErrorCodes.InvalidRequest, "Invalid identifier name")
Expand Down Expand Up @@ -214,6 +216,8 @@ async def prepare_rename(
f"Requested prepare rename for file {params.text_document.uri} at {params.position}"
)

assert False

await context.compiler.compilation_ready.wait()

path = uri_to_path(params.text_document.uri).resolve()
Expand Down

0 comments on commit b7d56cd

Please sign in to comment.