mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 18:16:10 +00:00
Merge pull request #1872 from AmirF194/fix/1871-nextflow-scan-flush-flag
fix(nextflow): don't mark workspace scan flushed when both probes fail
This commit is contained in:
3 files changed
+71
-1
No files matched your search
@@ -320,12 +320,14 @@ class NextflowLanguageServer(SolidLanguageServer):
|
||||
"textDocument": {"uri": self._resolve_file_uri(relative_file_path)},
|
||||
"position": {"line": 0, "character": 0},
|
||||
}
|
||||
flushed = False
|
||||
for _ in range(2):
|
||||
try:
|
||||
self.server.send.completion(params)
|
||||
flushed = True
|
||||
except Exception as e:
|
||||
log.debug("Completion request used to flush the Nextflow workspace scan failed: %s", e)
|
||||
self._workspace_scan_flushed = True
|
||||
self._workspace_scan_flushed = flushed
|
||||
|
||||
@override
|
||||
def _send_references_request(self, relative_file_path: str, line: int, column: int) -> list[lsp_types.Location] | None:
|
||||
|
||||
Reference in new issue
Block a user