@vezham/icons-vscode 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +26 -26
- package/dist/ui.html +25 -25
- package/extension.js +11 -11
- package/package.json +13 -12
package/extension.js
CHANGED
|
@@ -6,21 +6,21 @@ const fs = require('fs');
|
|
|
6
6
|
* @param {vscode.ExtensionContext} context
|
|
7
7
|
*/
|
|
8
8
|
function activate(context) {
|
|
9
|
-
const provider = new
|
|
9
|
+
const provider = new VezhamIconsWebviewViewProvider(context.extensionUri);
|
|
10
10
|
|
|
11
11
|
context.subscriptions.push(
|
|
12
|
-
vscode.window.registerWebviewViewProvider(
|
|
12
|
+
vscode.window.registerWebviewViewProvider(VezhamIconsWebviewViewProvider.viewType, provider)
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
context.subscriptions.push(
|
|
16
|
-
vscode.commands.registerCommand('
|
|
17
|
-
vscode.commands.executeCommand('workbench.view.extension.
|
|
16
|
+
vscode.commands.registerCommand('vezham-icons.focusExplorer', () => {
|
|
17
|
+
vscode.commands.executeCommand('workbench.view.extension.vezham-icons-explorer');
|
|
18
18
|
})
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
class
|
|
23
|
-
static viewType = '
|
|
22
|
+
class VezhamIconsWebviewViewProvider {
|
|
23
|
+
static viewType = 'vezham-icons.views.explorer';
|
|
24
24
|
|
|
25
25
|
constructor(extensionUri) {
|
|
26
26
|
this._extensionUri = extensionUri;
|
|
@@ -75,9 +75,9 @@ class ReiconWebviewViewProvider {
|
|
|
75
75
|
editBuilder.insert(editor.selection.active, snippet);
|
|
76
76
|
}).then(success => {
|
|
77
77
|
if (success) {
|
|
78
|
-
vscode.window.setStatusBarMessage(`Inserted
|
|
78
|
+
vscode.window.setStatusBarMessage(`Inserted Vezham icon "${name}"`, 3000);
|
|
79
79
|
} else {
|
|
80
|
-
vscode.window.showErrorMessage(`Failed to insert
|
|
80
|
+
vscode.window.showErrorMessage(`Failed to insert Vezham icon "${name}"`);
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -93,7 +93,7 @@ class ReiconWebviewViewProvider {
|
|
|
93
93
|
<html lang="en">
|
|
94
94
|
<head>
|
|
95
95
|
<meta charset="UTF-8">
|
|
96
|
-
<title>
|
|
96
|
+
<title>Vezham Icons</title>
|
|
97
97
|
<style>
|
|
98
98
|
body {
|
|
99
99
|
font-family: sans-serif;
|
|
@@ -104,8 +104,8 @@ class ReiconWebviewViewProvider {
|
|
|
104
104
|
</style>
|
|
105
105
|
</head>
|
|
106
106
|
<body>
|
|
107
|
-
<h3>
|
|
108
|
-
<p>Please make sure you have run the build command inside the
|
|
107
|
+
<h3>Vezham Icons webview file not found</h3>
|
|
108
|
+
<p>Please make sure you have run the build command inside the icons-vscode directory.</p>
|
|
109
109
|
</body>
|
|
110
110
|
</html>
|
|
111
111
|
`;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vezham/icons-vscode",
|
|
3
|
-
"displayName": "
|
|
4
|
-
"description": "Browse and insert
|
|
5
|
-
"version": "1.0.
|
|
3
|
+
"displayName": "Vezham Icons — Open Source SVG Icon Library",
|
|
4
|
+
"description": "Browse and insert handcrafted Vezham SVG icons directly into your HTML, React, Vue, Svelte, or vanilla JS code. Outline, filled, duotone-outline, and duotone-filled styles available.",
|
|
5
|
+
"version": "1.0.7",
|
|
6
6
|
"publisher": "DevChauhan",
|
|
7
7
|
"engines": {
|
|
8
8
|
"vscode": "^1.80.0"
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"vue-icons",
|
|
19
19
|
"svelte-icons",
|
|
20
20
|
"outline icons",
|
|
21
|
-
"filled icons"
|
|
21
|
+
"filled icons",
|
|
22
|
+
"duotone icons"
|
|
22
23
|
],
|
|
23
24
|
"categories": [
|
|
24
25
|
"Snippets",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"badges": [
|
|
32
33
|
{
|
|
33
34
|
"url": "https://img.shields.io/badge/icons-2,700%2B-blue",
|
|
34
|
-
"href": "https://
|
|
35
|
+
"href": "https://vezham.com",
|
|
35
36
|
"description": "2,700+ Icons"
|
|
36
37
|
},
|
|
37
38
|
{
|
|
@@ -65,25 +66,25 @@
|
|
|
65
66
|
"viewsContainers": {
|
|
66
67
|
"activitybar": [
|
|
67
68
|
{
|
|
68
|
-
"id": "
|
|
69
|
-
"title": "
|
|
69
|
+
"id": "vezham-icons-explorer",
|
|
70
|
+
"title": "Vezham Icons",
|
|
70
71
|
"icon": "resources/icon.png"
|
|
71
72
|
}
|
|
72
73
|
]
|
|
73
74
|
},
|
|
74
75
|
"views": {
|
|
75
|
-
"
|
|
76
|
+
"vezham-icons-explorer": [
|
|
76
77
|
{
|
|
77
78
|
"type": "webview",
|
|
78
|
-
"id": "
|
|
79
|
-
"name": "
|
|
79
|
+
"id": "vezham-icons.views.explorer",
|
|
80
|
+
"name": "Vezham Icons"
|
|
80
81
|
}
|
|
81
82
|
]
|
|
82
83
|
},
|
|
83
84
|
"commands": [
|
|
84
85
|
{
|
|
85
|
-
"command": "
|
|
86
|
-
"title": "Focus on
|
|
86
|
+
"command": "vezham-icons.focusExplorer",
|
|
87
|
+
"title": "Focus on Vezham Icons"
|
|
87
88
|
}
|
|
88
89
|
]
|
|
89
90
|
},
|