Skip to content

Commit 589b6d1

Browse files
committed
refactor: replace template with Click to edit template and so on
1 parent ae58526 commit 589b6d1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/extensionsIntegrated/CustomSnippets/snippetsList.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ define(function (require, exports, module) {
4545
const $snippetAbbr = $("<div>")
4646
.text(snippetItem.abbreviation)
4747
.attr("id", "snippet-abbr")
48-
.attr("title", `Abbreviation: ${snippetItem.abbreviation}`);
48+
.attr("title", `Click to edit abbreviation - ${snippetItem.abbreviation}`);
4949

5050
const $snippetTemplate = $("<div>")
5151
.text(snippetItem.templateText)
5252
.attr("id", "snippet-template")
53-
.attr("title", `Template: ${snippetItem.templateText}`);
53+
.attr(
54+
"title",
55+
`Click to edit template text -
56+
${snippetItem.templateText}`
57+
);
5458

5559
const $snippetDescription = $("<div>")
5660
.text(
@@ -62,14 +66,14 @@ define(function (require, exports, module) {
6266
.attr(
6367
"title",
6468
snippetItem.description && snippetItem.description.trim() !== ""
65-
? `Description: ${snippetItem.description}`
66-
: "No description provided"
69+
? `Click to edit description - ${snippetItem.description}`
70+
: "Click to add description"
6771
);
6872

6973
const $snippetFiles = $("<div>")
7074
.text(snippetItem.fileExtension || "all")
7175
.attr("id", "snippet-files")
72-
.attr("title", `File extensions: ${snippetItem.fileExtension}`);
76+
.attr("title", `Click to edit file extensions - ${snippetItem.fileExtension || "all"}`);
7377

7478
const $deleteSnippet = $("<div>")
7579
.html(`<i class="fas fa-trash"></i>`)

0 commit comments

Comments
 (0)