cwtools / cwtools/cwtools-vscode

No semantic completion available, only text-based abc suggestions

Open
#163 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
F#
Stars
110
Forks
19
PR merge metrics
No merged PRs in 30d

Description

**Description**
CWTools does not provide semantic completion suggestions for HOI4 mod files. Only word-based text suggestions (abc icon) appear in the completion list.

Initially I had GitHub Copilot enabled, and AI suggestions were shown. After I turned off Copilot inline suggestions, I found that only basic text completions remain — there are no semantic suggestions from CWTools at all.

CWTools semantic completion was working properly before, but now it seems to be broken.

**Environment**
- VSCode Version: 1.127
- CWTools Version: 0.10.31
- OS: Windows 11
- GitHub Copilot: installed, inline suggestions disabled

**Configuration Verified**
- `cwtools.hoi4.paths` is configured with the correct HOI4 game path
- The entire mod folder is opened in VSCode (not a single file)
- Language mode is correctly detected as paradox/hoi4
- Syntax highlighting works fine

**Output Panel Warning**
[2026-07-06T08:30:12.788Z] [WARN] File content can't be completely parsed

**Steps to Reproduce**
1. Open a HOI4 mod folder in VSCode
2. Open any event or focus .txt file
3. Start typing code (e.g., inside a country_event block)
4. Press Ctrl+i to trigger completion
5. Expected: semantic suggestions like triggers or effects
6. Actual: only word-based suggestions (abc)
(AI-assisted writing)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in a VS Code HOI4 mod folder using the completion request described in steps 1–5, then inspect the Output Panel warning that the file content cannot be completely parsed. Trace the completion path from the parsed document and compare semantic suggestions with the expected triggers and effects. Done means semantic CWTools suggestions appear instead of only abc word completions.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.