Skip to content

Commit

Permalink
Merge pull request #64 from moalamri/dev/v0.1.10
Browse files Browse the repository at this point in the history
dev/v0.1.10
  • Loading branch information
moalamri authored Oct 11, 2022
2 parents 01aae07 + 8406d3b commit ced126d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

<br/>

> ### v0.1.10:
- fix: [#63](https://github.com/moalamri/vscode-inline-fold/issues/63)

> ### v0.1.9:
- fix: extension crashing when the regex is misconfigured.
- now all the extensions commands starts with `Inline Fold:`
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@
},
"scripts": {
"vscode:prepublish": "pnpm run compile",
"vscode:package": "vsce package",
"vscode:publish": "vsce publish",
"package": "vsce package",
"publish": "vsce publish",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/vscode": "1.71.0",
"@types/node": "^17.0.33",
"typescript": "4.8.3"
"typescript": "4.8.4"
},
"__metadata": {
"id": "4dc4b505-dda3-4ac6-b839-397f8cf0adcc",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class Decorator {
let match;
while (match = regEx.exec(text)) {

// if the matched content is undefined, skip it and continue to the next match
if(match && !match[regexGroup]) continue;

const matched = match[regexGroup];
Expand Down
5 changes: 5 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ export function activate(context: ExtensionContext) {
context.subscriptions.push(changeVisibleRange);
context.subscriptions.push(changeConfiguration);
}

// this method is called when your extension is deactivated
export function deactivate(context: ExtensionContext) {
context.subscriptions.forEach((d) => d.dispose());
}

0 comments on commit ced126d

Please sign in to comment.