Skip to content

Commit

Permalink
v3.0.0 (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer authored Oct 2, 2022
1 parent 347b45d commit 7fb5277
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 24 deletions.
38 changes: 37 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,45 @@
# Changelog

## 2.8.3 - 2022-07-04 🦅
## 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)

> 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=).
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)

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)

## 2.8.4 - 2022-07-07

- Revert to v2.8.2 due to unexpected breaking change in v2.8.3

## 2.8.3 (YANKED) - 2022-07-04 🦅

> 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))

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

## 2.8.2 - 2022-06-11 🎂

- No user-facing changes
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AutoHotkey Plus Plus (AHK++) provides AutoHotkey language support for VS Code. T
- code formatting
- ...and more!

> Currently, AHK++ officially supports only AHK v1. AHK v2 will likely work, but please open issues and be patient if complex workflows are not supported. See [issue #146: Support AHK v2](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/146)
> Currently, AHK++ officially supports only AHK v1. AHK v2 will likely work, but please open issues and be patient if complex workflows are not supported. See [issue 146: Support AHK v2](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues/146)
AHK++ is a fork of [AutoHotkey Plus by cweijan](https://github.com/AutoHotkey-Plus/vscode-autohotkey), with the primary goal of fixing bugs and adding user-requested features.

Expand All @@ -29,7 +29,7 @@ AHK++ is a fork of [AutoHotkey Plus by cweijan](https://github.com/AutoHotkey-Pl
- [Outline](#outline)
- [Folding](#folding)
- [Code Format](#code-format)
- [Formatter Directives](#formatter-directives)
- [Formatter Directives](#formatter-directives)
- [Credits](#credits)

## Why AutoHotkey Plus Plus?
Expand Down Expand Up @@ -129,13 +129,15 @@ Collapse me!

### Code Format

Supports standard VS Code formatting.

> The formatter is not currently customizable.
Supports standard VS Code formatting with a few options.

![Code Format](image/codeFormat.jpg)

### Formatter Directives
#### Formatter Directives

Formatter directives instruct the formatter to behave a certain way on sections of code.

The only directive currently supported is `FormatBlockComment` and it's used as below:

```autohotkey
;@AHK++FormatBlockCommentOn
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Supported Versions

All versions
All non-[yanked](./Changelog.md#283-yanked---2022-07-04-🦅) versions.

## Reporting a Vulnerability

Expand Down
4 changes: 2 additions & 2 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ The tests should run automatically, and you should see passing output in the Deb
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`. The message of the commit should be e.g. `v2.8.2`.
1. Push the changes.
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`
1. Package the new version using `vsce package`.
Expand Down
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": "2.8.3",
"version": "3.0.0",
"description": "AutoHotkey IntelliSense, debug, and language support for VS Code, forked from AutoHotkey Plus by cweijan",
"categories": [
"Programming Languages",
Expand Down
1 change: 1 addition & 0 deletions src/debugger/struct/command.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// These enum values are sent directly to AHK. Do not change!
export enum Continue {
break = 'break',
run = 'run',
Expand Down
23 changes: 22 additions & 1 deletion src/test/suite/common/codeUtil.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CodeUtil } from '../../../common/codeUtil';
suite('Code utils', () => {
suite('purify', () => {
// List of test data
let dataList = [
const dataList = [
// {
// in: , // input test string
// rs: , // expected result
Expand Down Expand Up @@ -44,4 +44,25 @@ suite('Code utils', () => {
});
});
});

// Test against length for now
suite('matchAll', () => {
const tests = [
{
name: 'no match',
regex: /hi/g,
text: 'bye',
expected: [],
},
];

tests.forEach((myTest) => {
test(myTest.name, () => {
assert.strictEqual(
CodeUtil.matchAll(myTest.regex, myTest.text).length,
myTest.expected.length,
);
});
});
});
});
12 changes: 0 additions & 12 deletions src/test/suite/extension.test.ts

This file was deleted.

0 comments on commit 7fb5277

Please sign in to comment.