Skip to content

Commit 49f4142

Browse files
authored
Merge pull request #3 from soderlind/fix/intellisense
chore(release): 0.1.4
2 parents 62de7fc + 4eeec1a commit 49f4142

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44

55
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).
66

7+
## [0.1.4] - 2025-10-04
8+
### Changed
9+
- Extension name: "WordPress Readme Preview" → "WordPress Readme"
10+
- Enhanced description to highlight syntax highlighting and IntelliSense features
11+
- Updated keywords to include "syntax highlighting", "intellisense", "autocomplete"
12+
13+
### Fixed
14+
- IntelliSense completion no longer duplicates opening `==` when user has already typed them
15+
716
## [0.1.3] - 2025-10-04
817
### Added
918
- Section heading IntelliSense completion provider (type `==` then space for valid section suggestions)
@@ -31,5 +40,6 @@ The format is based on Keep a Changelog (https://keepachangelog.com/en/1.0.0/) a
3140
- Context menu integration across explorer, editor tab, and editor content
3241
- Custom parser for WordPress readme formatting (FAQ, changelog headers, etc.)
3342

43+
[0.1.4]: https://github.com/soderlind/wordpress-readme-preview/compare/v0.1.3...v0.1.4
3444
[0.1.3]: https://github.com/soderlind/wordpress-readme-preview/compare/v0.1.1...v0.1.3
3545
[0.1.1]: https://github.com/soderlind/wordpress-readme-preview/compare/v0.1.0...v0.1.1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# WordPress Readme Preview
1+
# WordPress Readme
22

3-
A Visual Studio Code extension that provides live preview and validation for WordPress plugin `readme.txt` files with pixel-perfect WordPress.org rendering and comprehensive compliance checking.
3+
A Visual Studio Code extension that provides syntax highlighting, IntelliSense, live preview and validation for WordPress plugin `readme.txt` files with pixel-perfect WordPress.org rendering and comprehensive compliance checking.
44

55
## Features
66

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "wordpress-readme-preview",
3-
"displayName": "WordPress Readme Preview",
4-
"description": "Preview WordPress readme.txt files with accurate rendering and validation",
5-
"version": "0.1.3",
3+
"displayName": "WordPress Readme",
4+
"description": "Preview, validate, and edit WordPress readme.txt files with syntax highlighting, IntelliSense, and accurate rendering",
5+
"version": "0.1.4",
66
"publisher": "persoderlind",
77
"engines": {
88
"vscode": "^1.74.0"
@@ -21,7 +21,10 @@
2121
"validation",
2222
"wordpress.org",
2323
"wp-plugin",
24-
"readme.txt"
24+
"readme.txt",
25+
"syntax highlighting",
26+
"intellisense",
27+
"autocomplete"
2528
],
2629
"license": "GPL-2.0-or-later",
2730
"repository": {

src/extension.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,19 @@ export function activate(context: vscode.ExtensionContext) {
9797
if (/==\s.*==/.test(line)) {
9898
return undefined;
9999
}
100+
101+
// Check if we already have opening '==' - if so, only insert name and closing ==
102+
const hasOpeningEquals = prefix.includes('==');
103+
100104
return SECTION_HEADINGS.map(h => {
101105
const item = new vscode.CompletionItem(h, vscode.CompletionItemKind.Module);
102-
item.insertText = `== ${h} ==`;
106+
if (hasOpeningEquals) {
107+
// User already typed '==', just insert ' SectionName =='
108+
item.insertText = ` ${h} ==`;
109+
} else {
110+
// Insert full format
111+
item.insertText = `== ${h} ==`;
112+
}
103113
item.detail = 'WordPress readme section';
104114
item.sortText = '0_' + h;
105115
return item;

0 commit comments

Comments
 (0)