1
Fork 0
mirror of https://github.com/j1g5awi/krunner-vscode.git synced 2024-11-21 22:49:31 +00:00

Merge pull request #2 from RealOrangeOne/fix-paths-list

Actually return paths list
This commit is contained in:
Jigsaw 2023-05-08 16:37:11 +08:00 committed by GitHub
commit e2cbbcd1f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ class Match(NamedTuple):
# Read path_list from database # Read path_list from database
def get_path_list(): def get_path_list():
paths = {} paths = set()
for vscode_dir in VSCODE_DIRS: for vscode_dir in VSCODE_DIRS:
state_file = os.path.join( state_file = os.path.join(
@ -56,6 +56,7 @@ def get_path_list():
for path in [i["folderUri"][7:] for i in data["entries"] if "folderUri" in i] for path in [i["folderUri"][7:] for i in data["entries"] if "folderUri" in i]
} }
) )
return paths
class Runner(dbus.service.Object): class Runner(dbus.service.Object):