Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Jan 29, 2023
1 parent d3c2864 commit f6b4781
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 48 deletions.
83 changes: 52 additions & 31 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
# Changelog

## 3.2.0 (unreleased)
<!-- Find: `#([0-9]+)`, Replace `[PR #$1](https://github.com/vscode-autohotkey/ahkpp/pull/$1)` -->

## 3.2.0 - 2023-01-29 ❄️

- Debug keyboard shortcut is now `Ctrl + Alt + F9` (was `F9`) to avoid conflicts with VS Code default shortcuts.
- New setting: Snippet template name. Create your own template for new AHK files, including no template at all.
- [Moving lines of code via commands](https://code.visualstudio.com/docs/getstarted/keybindings#_basic-editing) now (almost) correctly indents ([PR #306](https://github.com/vscode-autohotkey/ahkpp/pull/306), issue [#319](https://github.com/vscode-autohotkey/ahkpp/issue/319))
- Snippets and keywords updated to AutoHotkey v1.1.36.0 ([PR #288](https://github.com/vscode-autohotkey/ahkpp/pull/288), [PR #298](https://github.com/vscode-autohotkey/ahkpp/pull/298))

Fixes:

- Fix syntax highlighting for:

- strings with double colons in them ([PR #278](https://github.com/vscode-autohotkey/ahkpp/pull/278))
- conditional directives ([#69](https://github.com/vscode-autohotkey/ahkpp/issue/69))
- #Include and #IncludeAgain ([#86](https://github.com/vscode-autohotkey/ahkpp/issue/86))
- semi-colons without a preceding space (usually meant to be comments) ([#295](https://github.com/vscode-autohotkey/ahkpp/issue/295))

- Fix formatting for:

- comments at the beginning of a code block ([#291](https://github.com/vscode-autohotkey/ahkpp/issue/291))
- `IfMsgBox` ([#290](https://github.com/vscode-autohotkey/ahkpp/issue/290))
- hotstrings and complex hotkeys ([#303](https://github.com/vscode-autohotkey/ahkpp/issue/303))
- object assignment within unbraced code blocks ([#316](https://github.com/vscode-autohotkey/ahkpp/issue/316))
- nested, unbraced code blocks ([PR #287](https://github.com/vscode-autohotkey/ahkpp/pull/287))

- Fix hover message for doc comments to always be trimmed ([PR #308](https://github.com/vscode-autohotkey/ahkpp/pull/308))

## 3.1.0 - 2022-11-21 🦃

Expand All @@ -12,49 +35,47 @@
- New compiler options in settings: Choose base file, file icon, and "use [MPRESS](https://www.autohotkey.com/mpress/mpress_web.htm)"
- Add "Compiler GUI" command in context menu to use the AHK GUI when compiling

**Snippets**: Update snippets for AHK 1.1.35.00 and fix broken `InStr()` snippet ([#263](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/263))
**Snippets**: Update snippets for AHK 1.1.35.00 and fix broken `InStr()` snippet ([#263](https://github.com/vscode-autohotkey/ahkpp/issues/263))

**Grammar**: Fix `#Requires` not being recognized ([#268](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/268))
**Grammar**: Fix `#Requires` not being recognized ([#268](https://github.com/vscode-autohotkey/ahkpp/issues/268))

**Editor**: New AHK file icon (green square with white H)

**Debugger**: Minor debugger improvements

**Formatter**: Close the following bugs:

- Formatter incorrectly indents object literals ([#184](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/184), [#222](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/222))
- Nested one command code flow control ([#255](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/255))
- Formatter incorrectly indents object literals ([#184](https://github.com/vscode-autohotkey/ahkpp/issues/184), [#222](https://github.com/vscode-autohotkey/ahkpp/issues/222))
- Nested one command code flow control ([#255](https://github.com/vscode-autohotkey/ahkpp/issues/255))

**Miscellaneous**: Extension should start up faster

## 3.0.0 - 2022-10-01 👻

This is "The Kyklish Release" because Kyklish wrote most of this code. Thank you!

The `#nnn` values in this release are links to PRs, not to issues.

Breaking changes:

- Update file template: Add `#NoEnv` and `SetBatchLines, -1` (#202)
- Update file template: Add `#NoEnv` and `SetBatchLines, -1` ([PR #202](https://github.com/vscode-autohotkey/ahkpp/pull/202))

> Formatter bugfixes may be considered breaking if you wanted the old behaviors. If you want the old behavior, please [open an issue](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/new?assignees=mark-wiemer&labels=bug%2C+formatter&template=formatting-bug.md&title=).
> Formatter bugfixes may be considered breaking if you wanted the old behaviors. If you want the old behavior, please [open an issue](https://github.com/vscode-autohotkey/ahkpp/issues/new?assignees=mark-wiemer&labels=bug%2C+formatter&template=formatting-bug.md&title=).
Features:

- Add [formatter directive](./README.md#formatter-directives) for "Format Block Comment" (#164)
- Add "allowed number of empty lines" setting to preserve any number of lines. Defaults to `1`, `-1` means "preserve all empty lines" (#194)
- Add "preserve indent" setting to preserve spaces before a comment. Defaults to `false`. (#192)
- Add "trim extra spaces" to trim spaces between words. Defaults to `true`. (#191)
- Trim end of line when formatting (#190)
- Add [formatter directive](./README.md#formatter-directives) for "Format Block Comment" ([PR #164](https://github.com/vscode-autohotkey/ahkpp/pull/164))
- Add "allowed number of empty lines" setting to preserve any number of lines. Defaults to `1`, `-1` means "preserve all empty lines" ([PR #194](https://github.com/vscode-autohotkey/ahkpp/pull/194))
- Add "preserve indent" setting to preserve spaces before a comment. Defaults to `false`. ([PR #192](https://github.com/vscode-autohotkey/ahkpp/pull/192))
- Add "trim extra spaces" to trim spaces between words. Defaults to `true`. ([PR #191](https://github.com/vscode-autohotkey/ahkpp/pull/191))
- Trim end of line when formatting ([PR #190](https://github.com/vscode-autohotkey/ahkpp/pull/190))

Fixes:

- Fix some snippets (#138, #201, #210)
- Fix formatting bugs with semi-colon as part of a string (#159)
- Fix some formatting bugs with `if`, `else`, etc. without braces (#181)
- Fix formatter issue with non-label colon at end of line (#162)
- Even more formatter fixes (#164)
- Use default debug icon (was yanked in 2.8.3, now it returns!) (#149)
- Fix some snippets ([PR #138](https://github.com/vscode-autohotkey/ahkpp/pull/138), [PR #201](https://github.com/vscode-autohotkey/ahkpp/pull/201), [PR #210](https://github.com/vscode-autohotkey/ahkpp/pull/210))
- Fix formatting bugs with semi-colon as part of a string ([PR #159](https://github.com/vscode-autohotkey/ahkpp/pull/159))
- Fix some formatting bugs with `if`, `else`, etc. without braces ([PR #181](https://github.com/vscode-autohotkey/ahkpp/pull/181))
- Fix formatter issue with non-label colon at end of line ([PR #162](https://github.com/vscode-autohotkey/ahkpp/pull/162))
- Even more formatter fixes ([PR #164](https://github.com/vscode-autohotkey/ahkpp/pull/164))
- Use default debug icon (was yanked in 2.8.3, now it returns!) ([PR #149](https://github.com/vscode-autohotkey/ahkpp/pull/149))

## 2.8.4 - 2022-07-07

Expand All @@ -64,7 +85,7 @@ Fixes:

> This release has been yanked, meaning it's not supported. Use v2.8.2 instead.
- Change to use default debug icon ([#100](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/100))
- Change to use default debug icon ([#100](https://github.com/vscode-autohotkey/ahkpp/issues/100))

- Unexpected change: Break "step into" function of debugger. :(

Expand All @@ -77,37 +98,37 @@ Fixes:

## 2.8.1 - 2021-05-09

- Fix indentation with `(::` ([#72](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/72))
- Fix indentation with `(::` ([#72](https://github.com/vscode-autohotkey/ahkpp/issues/72))

## 2.8.0 - 2021-03-14

- Add setting to toggle debug button in editor title menu ([#10](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/10))
- Add setting to toggle debug button in editor title menu ([#10](https://github.com/vscode-autohotkey/ahkpp/issues/10))

## 2.7.2 - 2021-03-02

- Fix indentation with parentheses again (sorry!) ([#58](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/58))
- Fix indentation with parentheses again (sorry!) ([#58](https://github.com/vscode-autohotkey/ahkpp/issues/58))

## 2.7.1 - 2021-02-28

- Fix indentation with parentheses ([#25](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/25))
- Fix indentation with parentheses ([#25](https://github.com/vscode-autohotkey/ahkpp/issues/25))

## 2.7.0 - 2021-02-21

- Respect user choice to indent with either tabs or spaces ([#49](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/49))
- Respect user choice to indent with either tabs or spaces ([#49](https://github.com/vscode-autohotkey/ahkpp/issues/49))

## 2.6.3 - 2021-02-20

- Fix IntelliSense ([#48](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/48))
- Fix IntelliSense ([#48](https://github.com/vscode-autohotkey/ahkpp/issues/48))
- Move `Run Selection` command to same category as all other commands (Thanks [@fade2gray](https://github.com/fade2gray)!)

## 2.6.2 - 2021-01-30

- Fix formatting after ternary operator ([#18](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/18))
- Fix formatting after multiple close braces on one line ([#26](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/26))
- Fix formatting after ternary operator ([#18](https://github.com/vscode-autohotkey/ahkpp/issues/18))
- Fix formatting after multiple close braces on one line ([#26](https://github.com/vscode-autohotkey/ahkpp/issues/26))

## 2.6.1 - 2021-01-23

- Fix hover provider ([#16](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/16))
- Fix hover provider ([#16](https://github.com/vscode-autohotkey/ahkpp/issues/16))

## 2.6.0 - 2021-01-18

Expand All @@ -120,7 +141,7 @@ Fixes:
### Fixes

- Improve formatting for using `ExitApp` to end subroutines
- Fix function coloring for functions whose names were also keywords ([#11](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/11))
- Fix function coloring for functions whose names were also keywords ([#11](https://github.com/vscode-autohotkey/ahkpp/issues/11))
- Fix function coloring for calls with a space before the parentheses (e.g. `foo ()`)
- Fix detection of labels indented with a tab
- Remove confusing deprecation warning from `StrSplit` function
Expand Down
32 changes: 16 additions & 16 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,36 @@ The tests should run automatically, and you should see passing output in the Deb
## Starting a release

1. Update the changelog.
1. Open a draft PR to merge to `main`. The title of the PR should be e.g. `v2.8.2`, lowercase 'v'. The PR description should contain the changelog entry.
1. Fix any remaining issues with the code (but only make changes already logged in the changelog). Use the draft PR to easily detect issues.
1. Bump the version in `package.json`.
1. Commit and push the changes. Commit message doesn't matter.
1. Merge the PR. The body of the commit message should be the changelog entry.
1. `git checkout main && git pull && vsce package`
1. Install the new version:
Unless otherwise specified, commit messages don't matter.

1. Create a new branch with name e.g. `release-1.2.3` or similar. Don't use e.g. `v1.2.3`, that's used as a tag later.
1. Update the changelog.
1. Bump the version in `package.json`.
1. Commit the changes.
1. Open a PR. For style, the title of the PR should be e.g. `v1.2.3`. The PR description should contain the changelog entry, including the heading for this version.
1. Fix any remaining issues with the PR.
1. Merge the PR. Commit message should be e.g. `v1.2.3 (#456)`, no additional details.
1. `git checkout main && git pull && vsce package`
1. Install the new version:
1. Select the newly-created `.vsix` file.
1. Open the context menu (right-click).
1. Select `Install Extension VSIX`.
1. Reload the window. (`Ctrl + Shift + R` or `F1` -> Developer: Reload Window)
1. Perform final pre-release tests.
1. If tests fail, delay the release.
1. Reload the window. (`F1` -> Developer: Reload Window)
1. Ensure all tests pass, including manual ones on the new changes.

### Publishing

1. Tag the release
1. `git checkout main && git tag v2.8.2 && git push origin v2.8.2`
1. e.g. `git checkout main && git pull && git tag v1.2.3 && git push origin v1.2.3`
1. [Create a new GitHub release for this tag](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/tags)
1. Release title: Same as in [Changelog.md](../Changelog.md)
1. Description: Same as in changelog
1. Description: Changelog entry, including the heading for this version
1. Attach binary
1. Publish release

The release is usually available within 5 minutes of uploading.

### Validating deployment

1. [Deploy workflow](https://github.com/mark-wiemer/ahkpp/actions/workflows/deploy.yml)
1. [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus)
1. [Publisher view](https://marketplace.visualstudio.com/manage/publishers/mark-wiemer)
1. [Publisher view](https://marketplace.visualstudio.com/manage/publishers/mark-wiemer): validation takes about 5 minutes
1. [Open VSX Marketplace](https://open-vsx.org/extension/mark-wiemer/vscode-autohotkey-plus-plus)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-autohotkey-plus-plus",
"displayName": "AutoHotkey Plus Plus",
"version": "3.1.0",
"version": "3.2.0",
"description": "AutoHotkey IntelliSense, debug, and language support for VS Code, forked from AutoHotkey Plus by cweijan",
"categories": [
"Programming Languages",
Expand Down

0 comments on commit f6b4781

Please sign in to comment.