Skip to content

Commit 6174011

Browse files
committed
[vscode_projects:1.7] Fix caching and action text
1 parent 5fe04cb commit 6174011

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

vscode_projects/__init__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from albert import *
1010

1111
md_iid = "3.0"
12-
md_version = "1.6"
12+
md_version = "1.7"
1313
md_name = "VSCode projects"
1414
md_description = "Open VSCode projects"
1515
md_url = "https://github.com/albertlauncher/python/tree/master/vscode_projects"
@@ -362,7 +362,7 @@ def _createItem(self, project: Project, query: Query) -> StandardItem:
362362
text=project.displayName,
363363
subtext=f"{subtext}{project.path}",
364364
iconUrls=self.iconUrls,
365-
inputActionText=f"{query.trigger} {project.displayName}",
365+
inputActionText=f"{query.trigger}{project.displayName}",
366366
actions=actions,
367367
)
368368

@@ -499,6 +499,8 @@ def _getStorageConfig(self, path: str) -> CachedConfig:
499499
tags=[],
500500
))
501501

502+
self._configCache[path] = c
503+
502504
return c
503505

504506
def _getProjectManagerConfig(self, path: str) -> CachedConfig:
@@ -546,4 +548,6 @@ def _getProjectManagerConfig(self, path: str) -> CachedConfig:
546548

547549
c.projects.append(project)
548550

551+
self._configCache[path] = c
552+
549553
return c

0 commit comments

Comments
 (0)