Skip to content

Commit

Permalink
Merge branch 'projects' for v25
Browse files Browse the repository at this point in the history
  • Loading branch information
robole committed Oct 15, 2023
2 parents 88d661d + 067b99f commit b357a08
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.25.0] - 2023-10-16

### Changed

- Published changes made in v24.0.

### Fixed

- The variable `has` was not declared properly in *hasScopeField*. Added `let` to it. Unusual that this is not an issue in test.

## [0.24.1 -> 0.24.3] - 2023-10-16

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"description": "View and edit all your snippets in one purty place. Yee-haw!",
"icon": "img/logo.png",
"version": "0.24.3",
"version": "0.25.0",
"engines": {
"vscode": "^1.4.0",
"node": ">=12.0.0"
Expand Down
12 changes: 12 additions & 0 deletions src/snippets-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,16 @@ class SnippetsFetcher {
}
}

function hasScopeField(array){
let has = false;

const result = array.find(({ scope }) => scope !== undefined && scope !== "" );

if(result !== undefined){
has = true;
}

return has;
}

module.exports = SnippetsFetcher;
8 changes: 5 additions & 3 deletions todo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# To Do

1. Add workspace snippets.
1. Filter?
1. Search?
1. Add formatting of `scope` content to ensure consistent formatting. If no spaces between words values, add one after the comma.
1. Is the `scope` field ever in a snippets file in an extension?
1. Refactor `language` field in *snippet-collection.js*. It only applies to user snippets if I remember correctly.
1. This snippet extension - https://open-vsx.org/extension/hollowtree/vue-snippets - appears to cause an error.
1. Refactor Extensions make more comprehensible. Particularly code around extension-related snippets and the view.
1. Show the shortcuts assigned to any snippets (via command 'insert snippet')?

0 comments on commit b357a08

Please sign in to comment.