Class JsAceAttribute
- Namespace
- Hi.ScriptApiUtils
- Assembly
- HiGeom.dll
Attribute for JavaScript Ace editor integration.
public class JsAceAttribute : Attribute
- Inheritance
-
JsAceAttribute
- Inherited Members
- Extension Methods
Remarks
Do not add new usages. Retained only so the legacy HiNcRcl (Blazor)
Ace editor completion pipeline keeps working until that app is retired:
RuntimeApi.JsAceCompletionProfileJsonArray scans [JsAce]
members by reflection and CommonRcl.AceEditor feeds the resulting
JSON into Ace's completer list.
New code should rely on Roslyn CompletionService served over
POST /api/script/completions and consumed by CodeMirror 6 on the
HiNC-2025-webservice Quasar frontend. XML <summary> comments
become the single source of truth for tooltip content, so no duplicated
attribute metadata is needed.
Deprecation lifecycle:
- Now — discouraged for new code (this remark);
existing call sites in HiNcRcl /
RuntimeApi/MachiningStepkeep building without warnings. - When HiNcRcl retires — this attribute will be
marked
[Obsolete], surfacing a compiler warning on every remaining call site so they can be cleaned up. - After all call sites are gone — this file
(and
RuntimeApi.JsAceCompletionProfileJsonArray) will be deleted entirely.
Constructors
JsAceAttribute()
Initializes a new instance of the JsAceAttribute class.
public JsAceAttribute()
JsAceAttribute(string)
Initializes a new instance of the JsAceAttribute class with a specified snippet.
public JsAceAttribute(string snippet)
Parameters
snippetstringThe code snippet for the editor
JsAceAttribute(string, string)
Initializes a new instance of the JsAceAttribute class with a specified snippet and documentation.
public JsAceAttribute(string snippet, string docHtml)
Parameters
Properties
ClassExt
Gets or sets the class extension.
public string ClassExt { get; set; }
Property Value
DocContentHtml
Gets or sets the HTML documentation content.
public string DocContentHtml { get; set; }
Property Value
Snippet
Gets or sets the code snippet for the editor.
public string Snippet { get; set; }