Repository navigation
Clarion Assistant 6.4.0
6.4.0 adds Find All References to the CA Editor and CA Embeditor, and a Problems list to their
status bar. Shift+F12, Peek References or a link on the hover card opens the references view, and
the status bar counts the errors and warnings in the text on screen, with a list that takes you to
each one. The tab strip keeps every tab reachable when it overflows, the CA Editor can compare your
unsaved text with the saved file, and each CA chat can be saved as a Markdown file in the solution
folder. The bundled language server moves to Clarion Extension v1.0.11, with more precise
references. Fixes cover hover on built-in calls and class members, the embed slot check, nested
structures in CodeGraph, keywords used in names, query_docs ranking and the Home session list.
The plugin is version 2.1.3: its safety hook now checks PowerShell commands too.
Supported: Clarion 10, 11, 11.1, and 12 (32-bit IDE). Windows 10 version 1809 / Windows Server
2019 or later.
Upgrade notes
Do these once after installing this release:
- Update the Claude Code plugin to 2.1.3:
claude plugin update clarion-assistant@clarionassistant-marketplace. If you chose the Shared folder plugin location, rungit pullin the shared folder instead. - Run a full Reindex of your solution (Update is not enough) to clear CodeGraph rows the old parser wrote for fields after a nested structure. An incremental index only re-parses projects whose files changed, so those rows stay until then.
- Run
ingest_docsagain on Markdown documentation you ingested before, if you want its sections to carry their parent headings. Existing entries keep the old headings until then. - Close Claude Code and MultiTerminal sessions before running the installer, or run
/mcpto reconnect in each one afterwards: a running plugin server holds files in the install folder.
Save each chat as a Markdown file when its tab closes or Clarion does, by asantarelli (PR #318)
A CA chat lives in Claude Code's own transcript (~/.claude/projects/...), a JSON file that is not made to be read. With Options > Clarion Assistant > Chat Transcripts > Save each chat as a Markdown file in the solution folder (.CAChats) ticked, the conversation is written to <solution folder>\.CAChats\<first day>_to_<last day>[_<name>]_<id>.md when claude exits in the tab, when the tab is closed, and when Clarion closes. Open it in any editor, or in the IDE, to read an earlier chat without resuming it or asking Claude for a summary.
The file has a heading with the session id, the chat's name, the tab and the period, then each of your messages with its time and Claude's replies, with one line for each tool Claude called. A message you typed while Claude was working is kept and marked (while Claude was working). Tool output, Claude's reasoning and sub-agents' conversations are left out. A chat where you never typed a message is not saved.
The name is what you gave the chat with /rename, when it is not a plain CA tab name (CA1, CA2): 2026-11-19_to_2026-11-20_Fix login dialog_3f9c21ab.md. The first day comes first, so the folder sorts by when each chat started, and the last part of the session id stays in every name. One chat is one file: a chat saved again after it reached another day, or after you renamed it, takes the new name, and the earlier file for that chat is removed. Nothing else in the folder is touched.
Screenshots are kept with the chat. A screenshot you paste into a CA tab is saved by CA in %LOCALAPPDATA%\ClarionAssistant\paste-cache, which CA empties of files older than a day, and only its path goes into the message. The export copies each one into .CAChats\<id>\ and links it from the message (), and does the same for an image sent in the message itself. The copies are named from the message, so saving the chat again after the original is gone still finds them. A screenshot that is already gone stays in the text as its path. Pasted text files are not copied, and neither are images from anywhere else. Your Markdown viewer must be able to show a picture next to the file: VS Code and GitHub do.
It is off by default. The file holds everything typed or shown in the chat, passwords and keys included, and screenshots can show as much, so Clarion Assistant writes a .gitignore containing * into .CAChats and git never offers its files for commit. Saving when Clarion closes is a separate step with a 3-second limit, so it cannot hold the IDE open: a 10 MB chat takes about a quarter of a second. If Clarion crashes or is killed, chats still open at that moment are not saved; chats of tabs closed earlier already were. A chat you /clear away from inside a tab is not tracked after the /clear.
The Home tab's button tooltips stay inside the pane, by geircodes (PR #307)
In a narrow pane, the tooltip of the Resume last session button was cut off at the pane's left edge ("esume last session · ..."), because the tooltips of the three Work With Open Solution buttons were centred on the button with no way to see the window's edge. They are now placed by the page: above the button as before, moved sideways to stay inside the window, below the button when there is no room above, and wrapped when the pane is narrower than the text. They also disappear when the pointer leaves the pane.
Find All References in the CA Editor and CA Embeditor, by geircodes (PR #326, #287)
Both editors went to a definition (F12, Ctrl+Click) and an implementation (Ctrl+F12), but seeing where a symbol is used meant asking Claude. There are now three ways to open Monaco's references view, the inline peek list VS Code users know:
- Shift+F12;
- right-click > Go to References, or Peek > Peek References;
- a Find References (Shift+F12) link in the hover card's footer bar, on cards that carry location links when you hover a name (not a keyword such as LOOP).
A single hit is opened straight away. In the list, a hit in the current document is shown in place and one in another file opens in the IDE. The list follows the editor's font size. Up/Down, Left/Right, F4 / Shift+F4 and Esc work as in Monaco. Monaco shows a reference in the preview on Enter and goes to it on a double-click; VS Code goes to it on Enter. A new gear setting, Enter in the References list, offers both: Show in preview (Monaco), the default, or Go to the reference (VS Code).
The references come from the language server, and from CodeGraph when the server finds none. Known limits: in the CA Embeditor the server sees the embeditor's text in place of the module, so uses in other procedures of the same generated module are not found from there (the CA Editor does not have this limit); previews of other files show their saved text; and a list cut at 1,000 hits is not marked as cut.
A diagnostics count and a Problems list in the editor's status bar, by geircodes (PR #310)
The diagnostics pill and its list window were retired in 5.9, since the squiggles show the same problems where you are looking. The squiggles do not say how many problems a file has, though, or what one is until you hover it. The status bar of the CA Editor and the CA Embeditor now ends with the count for the text on screen (⊗ 1 ⚠ 7, plus ⓘ n for infos), the same markers the squiggles show. It reads ○ … while the first answer is awaited and ✓ OK when the language server found nothing, and stays empty until diagnostics have been asked for.
Click the count to open the Problems list above it, sorted by line, at most 10 rows tall and scrolling beyond that:
- a click or Up/Down/Home/End shows the problem's line in the editor while the list keeps the keyboard;
- Enter or a double-click goes to the problem: its text is selected, the line flashes, the list closes and the editor has the keyboard;
- Navigate Back returns to where you opened the list, in one step;
- Esc, the ✕, the count again, or a click elsewhere closes it;
- Shift+Click on the count steps to the next problem (F8) without opening the list.
The list stops at 1,000 rows with "…and N more". It follows the light and dark themes.
Every tab stays reachable when the tab strip overflows, by geircodes (PR #308)
With more than three tabs open in a normal-width pane, the fourth tab was cut off at the strip's right edge with its ✕ out of sight, and later tabs could not be selected at all. When the tabs do not fit, they now shrink to a minimum width, with the full title as the tab's tooltip. When they still do not fit, the strip shows Home on the left, as many whole tabs as fit at their own width, and ‹ › arrows and a ⋯ button at the right:
- the arrows scroll one tab at a time, and are faint when nothing is hidden on their side; their tooltips say how many tabs are hidden;
- the mouse wheel over the strip scrolls one tab per notch;
- the active tab is always brought into view;
- ⋯ lists every tab except Home, with the active one checked. Each row has a ✕ that closes its tab while the list stays open. Up/Down and Enter pick a tab, and Esc or a click outside closes the list without reaching the chat.
Middle-click closes a tab, as in a browser, after asking first: Keep Tab is the default, so Enter or Esc after an accidental click changes nothing. Tick Close without asking next time to close straight away from then on; deleting Tabs.MiddleClickClose.NoConfirm=true from settings.txt brings the question back. A right-click on a tab's ✕ no longer closes the tab: only a left-click does.
A Compare with saved file button in the CA Editor, by geircodes (PR #324)
The CA Editor toolbar has a Compare with saved file button next to Split. It shows the file on disk and the editor's text, unsaved edits included, side by side in the Monaco diff viewer, in a tab titled Saved vs. editor: <file>. Clicking it again replaces that tab rather than adding another. When there is nothing to compare (line endings aside), a toast says "No unsaved changes: the editor matches the saved file." instead. The CA Embeditor has no saved file of its own, so it does not show the button.
This comparison, and the Show diff of the toast that appears when the file changes on disk, used to show show_diff's Approve and Cancel buttons. They now show Close and say they are a read-only comparison. A diff Claude opens with show_diff keeps Approve and Cancel.
The bundled language server is now v1.0.11, from Mark Sarson's Clarion Extension (#327)
The bundled server moves from v1.0.9 to Clarion Extension v1.0.11, at Mark Sarson's request; v1.0.10 was never picked up, so this covers two upstream releases. What changes in the server:
- Find All References is much more precise. Same-named fields, members, parameters and keywords are kept apart. It now reaches colon-named objects,
Group.Field,?Namecontrols and INCLUDE-headed MEMBER modules, is about twice as fast on structure fields, and no longer returns hits in assembler or C++ sources. This is what the new Shift+F12 list above shows. - Hover. Cards describe an attribute for the declaration it is on, hovering a
CASElists its branches, and overloaded calls show the matching prototype. - Outline and diagnostics.
CODEandDATAwords that are not section markers no longer upset the outline or diagnostics. - COMPILE/OMIT. Block ends follow the compiler's rules.
Go to Definition, Find All References and hover on a built-in call no longer land on a same-named field, by geircodes (PR #320)
With the cursor on ERRORCODE in IF ERRORCODE() = 0, F12 and Find All References went to an unrelated field named ErrorCode (for example in a QUEUE,TYPE in an include file), and the hover showed another module's ErrorCode variable. The language server knows ERRORCODE() is the built-in and answers nothing, and Clarion Assistant then looked the bare word up in CodeGraph. For a built-in name followed by (, that lookup now accepts only a procedure, so a user procedure that shares a built-in's name (a Message or Update in your MAP) is still found, and a same-named field or variable is not. Hover on such a call shows the language server's card for the built-in. A built-in name without ( (Error, ErrorCode and Records are legal labels) is still looked up as before.
Two hover card fixes, by geircodes (PR #314, PR #315)
- A card answered from the open file (a local, parameter, routine, procedure or class member) ended with a mangled full path, such as
C:_src\MyApp\Main.clwforC:\_src\MyApp\Main.clw. It now shows the file name only (Main.clw), with characters Markdown would read escaped. - Hovering a member of a CLASS declared in the file, in
SELF.Kill()or onThisWindow.Init PROCEDURE, showed only Clarion Assistant's own card, because the language server's card for the same member was always dropped. The server's card, which names the class and return type and links the prototype, is now shown, and the quick card only when the server has nothing or does not answer in time.
The slot balance check no longer flags correct code with an inline END or an OMIT block, by geircodes (PR #311, PR #323)
Clarion Assistant's own structure check in the CA Editor and CA Embeditor reported code the compiler accepts:
- a LOOP holding a one-line branch such as
OF 5 OROF 7 TO 11; CYCLE ENDwas reported as not terminated, because an END later on a statement line was not counted. Openers and closers are now read in order along the line, soIF a THEN b END,IF a THEN b., a.that ends an IF opened on the same line, and an IF/ELSIF ladder ofTHENlines balance. On 237 compiled.clwfiles this removed 34 false markers and added none; - END and openers inside an unconditional
OMIT('xxxxx')block were counted, so an extra END in the omitted code made a correct END outside it read "END has no matching structure in this embed slot". The block is now skipped up to its terminator, as the compiler does. A conditionalOMIT('x', Equate)orCOMPILEis still read as code, as is an OMIT whose terminator is not in the slot yet.
CodeGraph: a nested GROUP no longer ends the outer structure, by geircodes (PR #321)
In a DATA section, the END of a structure nested in another (a GROUP in a QUEUE,TYPE, a GROUP in a FILE's RECORD) closed the outer one, so the fields after it were indexed as variables of the enclosing scope. A field such as ErrorCode in a QUEUE,TYPE then showed up as a global variable. Nested structures now count, in global, module and procedure data: GROUP and QUEUE, and RECORD, JOIN, OPTION, SHEET, TAB, MENU, MENUBAR, TOOLBAR and the report bands, labelled or not; APPLICATION opens a block like WINDOW. A . terminator followed by a comment counts like END. A database indexed before this keeps the stray rows until a full Reindex.
A keyword used as part of a name (While:Count, Cus:End, Queue.Id) is no longer read as a keyword
The CA Editor and CA Embeditor read a line's first word only up to a : or ., so they saw WHILE, LOOP, CASE or END in names such as While:Count, End:Date, Loop:Idx or Queue.Id. Typing While:Count += 1 outdented the line, the line after Loop:Idx = 1 was indented, Ctrl+I and format on Enter opened or closed levels on such lines, and the live keyword casing turned Cus:End into Cus:END. Smart indent, the formatter and the casing now leave prefixed and dotted names alone, and a labelled Loop:Top LOOP at module scope is laid out as a statement, not a data declaration.
query_docs finds the sections of Markdown documentation by their parent heading, and ranks the section a query names first (PR #312 by geircodes, #313 reported by geircodes)
DocGraph stored each section of a Markdown file under its own heading only, so in an API reference laid out one function per ## with ### sections, every function's parameters were stored as plain "Parameters" and a search for the function name never found them. A section's heading now carries its parent headings: FooInitialize Function > Parameters, [1.2.0] > Fixed. A file's single # title is left out of the path. Markdown already ingested keeps the old headings until you run ingest_docs on it again.
query_docs also compared only the first word of a query with the headings, so HttpSubmitRequest Parameters listed that function's Parameters section last of its nine sections. Within the same rank, headings holding more of the other query words now come first (up to 8 distinct words count), stop words no longer decide the rank (the X ranks on X), and a query naming the last part of a Parent > Section heading counts as an exact heading match. One-word queries keep their order.
The Home tab's Previous sessions list includes long sessions, by geircodes (PR #319)
The More options drawer left out sessions with many turns, renamed ones included: on a folder with 103 transcripts, 8 of the 50 newest sessions were missing. A session was listed only when one of Claude's replies fell in the parts of the transcript the list reads, and Claude Code now writes hundreds of KB of start-up records before the first reply. A session is now listed when it has a prompt you typed or a title you gave it with /rename, and the first prompt is searched for further into the file when needed. Compacted-conversation summaries are not taken for prompts. A session whose prompt never got an answer is now listed too; resuming it shows that prompt.
The plugin's safety hook checks PowerShell commands, and never lets Claude kill MultiTerminal or Claude Code
The safety hook was registered for the Bash tool only, so a kill or destructive command run through Claude Code's PowerShell tool went through with no prompt. It now checks PowerShell commands too, with PowerShell's own rules: a recursive Remove-Item on a drive root or your home folder, disk formatting, shutdown, .env files and Send-MailMessage are refused, and Stop-Process, taskkill and the other ways of ending a process are judged like their Bash forms. Kills are now decided by what they would end:
- a kill aimed at MultiTerminal or Claude Code (by name, PID or process tree) is refused without a prompt;
- a kill whose targets all descend from this Claude session, and are not system processes or Explorer, goes ahead without a prompt;
- a kill of a shared runtime by name (
node,dotnet,python,pwsh,git...), a remote kill, or one the hook cannot resolve asks.
A command whose name is built at run time (& $cmd, Invoke-Expression on built text, $(...) as a Bash command word, a dynamic alias) asks, kill word or not. Text in a commit message or a heredoc that writes a file is data and does not trigger the rules. The hook is an accident guard: a deliberately built command can still get past a text check. The plugin is version 2.1.3; update it as described above.
deploy.ps1 builds the MCP server on a fresh checkout, by asantarelli (PR #325)
For building from source: the deploy script restored NuGet packages for the add-in only. The standalone MCP server has its own package references, so on a fresh checkout its build failed, and because that build runs before the deploy, nothing was deployed while the add-in and indexer builds above it reported success. The script now restores the MCP server's packages before building it. Later runs pay about a second and a half.
Thanks
- @geircodes — PR #307: Home button tooltips kept inside the pane; PR #308: the tab strip overflow, the tab list and middle-click close; PR #310: the diagnostics count and Problems list, back where the squiggles are; PR #311 and PR #323: the slot balance check, each checked against hundreds of compiled files; PR #312: parent headings in Markdown chunks, and #313: the
query_docsranking report with the fix it needed; PR #314 and PR #315: the hover card fixes; PR #319: long sessions back in the Home list; PR #320: built-in calls kept off same-named fields; PR #321: nested structures in CodeGraph; PR #324: Compare with saved file; PR #326: Find All References, closing #287. - Adrián Santarelli — PR #318: saving each CA chat as Markdown, screenshots included; PR #325: the fresh-checkout deploy failure.
- Mark Sarson — #327: Clarion Extension v1.0.11 and the re-pin request.