We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efea0b commit 46cbc45Copy full SHA for 46cbc45
src/extension.ts
@@ -36,7 +36,15 @@ export function activate (context: vscode.ExtensionContext) {
36
return acc
37
}, []) as vscode.QuickPickItem[]
38
39
- options.sort(i => i.picked ? -1 : 1)
+ const isExist = options.find(i => i.picked)
40
+
41
+ if (isExist) {
42
+ options.sort(i => i.picked ? -1 : 1)
43
+ options.unshift({
44
+ label: 'Last selected',
45
+ kind: -1
46
+ })
47
+ }
48
49
let snippet: Snippet | undefined
50
let fragmentContent = ''
0 commit comments