Skip to content

Commit

Permalink
refactor: minor conditional in workspace symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Apr 25, 2024
1 parent 862f43c commit 2d50cd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fortls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ def debug_workspace_symbols(args, server):
for symbol in results:
path = path_from_uri(symbol["location"]["uri"])
sline = symbol["location"]["range"]["start"]["line"]
parent = "null"
if "containerName" in symbol:
parent = symbol["containerName"]
else:
parent = "null"
print(
f" {parent}::{sline} symbol -> {symbol['name']:30} parent = "
f"{os.path.relpath(path, args.debug_rootpath)}"
Expand Down

0 comments on commit 2d50cd2

Please sign in to comment.