Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit a6d6ca6

Browse files
committed
[vscode_projects:1.6] Update plugin to interface version 3
1 parent e5034a3 commit a6d6ca6

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

vscode_projects/__init__.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from dataclasses import dataclass
99
from albert import *
1010

11-
md_iid = "2.3"
11+
md_iid = "3.0"
1212
md_version = "1.6"
1313
md_name = "VSCode projects"
1414
md_description = "Open VSCode projects"
@@ -159,19 +159,18 @@ def terminalCommand(self, value):
159159
self._terminalCommand = value
160160
self.writeConfig("terminalCommand", value)
161161

162+
def defaultTrigger(self):
163+
return "code "
164+
165+
def synopsis(self, query):
166+
return "project name or path"
167+
162168
def __init__(self):
163169
self.iconUrls = [f"file:{Path(__file__).parent}/icon.svg"]
164170

165171
PluginInstance.__init__(self)
166172

167-
TriggerQueryHandler.__init__(
168-
self,
169-
id=self.id,
170-
name=self.name,
171-
description=self.description,
172-
defaultTrigger="code ",
173-
synopsis="project name or path"
174-
)
173+
TriggerQueryHandler.__init__(self)
175174

176175
configFound = False
177176

0 commit comments

Comments
 (0)