diff --git a/CHANGELOG.md b/CHANGELOG.md index c16321a..0e56d8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@
+> ### 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:` diff --git a/package.json b/package.json index db57ce1..2dec896 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e3ec5c7..f47114f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3,12 +3,12 @@ lockfileVersion: 5.4 specifiers: '@types/node': ^17.0.33 '@types/vscode': 1.71.0 - typescript: 4.8.3 + typescript: 4.8.4 devDependencies: '@types/node': 17.0.34 '@types/vscode': 1.71.0 - typescript: 4.8.3 + typescript: 4.8.4 packages: @@ -20,8 +20,8 @@ packages: resolution: {integrity: sha512-nB50bBC9H/x2CpwW9FzRRRDrTZ7G0/POttJojvN/LiVfzTGfLyQIje1L1QRMdFXK9G41k5UJN/1B9S4of7CSzA==} dev: true - /typescript/4.8.3: - resolution: {integrity: sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==} + /typescript/4.8.4: + resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} engines: {node: '>=4.2.0'} hasBin: true dev: true diff --git a/src/decorator.ts b/src/decorator.ts index b392c5b..819173e 100644 --- a/src/decorator.ts +++ b/src/decorator.ts @@ -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]; diff --git a/src/extension.ts b/src/extension.ts index 3af12d8..4f6493e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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()); +}