Skip to content

Releases: DragonKnightOfBreeze/Paradox-Language-Support

v1.3.13

18 Jul 04:11
Compare
Choose a tag to compare

Release Notes

  • 支持内联脚本块中的带参数的封装变量引用(如k = @[ foo$p$bar + 1 ]
  • #56 支持数据库对象表达式以及从数据库对象生成的概念(如civic:some_civic
  • 其他优化与BUG修复

  • Supports parameterized scripted variable references in inline math blocks (e.g., k = @[ foo$p$bar + 1 ])
  • #56 Supports database object expression and concepts from database objects (e.g., civic:some_civic)
  • Other optimizations and bug fixes

v1.3.12

05 Jul 04:13
Compare
Choose a tag to compare

Release Notes

  • #67 尝试推断在条件表达式以及内联数学块中使用过的参数的上下文规则
  • #67 考虑到PARAM = $PARAM|no$等同于[[PARAM] PARAM = $PARAM$ ],为此添加一些额外的意向操作
  • #68 允许指定参数的规则上下文与作用域上下文,使其与参数上下文的保持一致(基于## inherit,详见参考文档)

  • #67 Try to infer context configs of parameters which are used in condition expression and inline math blocks
  • #68 Add some extra intention actions during to the equality of PARAM = $PARAM|no$ and [[PARAM] PARAM = $PARAM$ ]
  • #68 Allow to specify a parameter's config context and scope context, to make them consistent with the parameter contexts (Base on ## inherit, see reference documentation for details)

v1.3.11

25 Jun 09:06
Compare
Choose a tag to compare

Release Notes

  • BUG修复:修复图表(如科技树)无法正常显示的问题
  • 优化:优化对游戏目录的判断

  • BUG fix: Fixes a problem that diagrams (e.g., Technology Tree Diagram) cannot be opened correctly
  • Optimization: Optimize the logic to determine game directory

v1.3.10

12 Jun 16:41
Compare
Choose a tag to compare

Release Notes

  • 新功能:支持全局的本地规则分组(可在插件配置页面中配置所在的目录)
  • 优化:在项目视图中显示规则分组的位置(作为外部库)

  • New feature: Support for global local config groups (Can be configured in plugin's settings page)
  • Optimization: Show locations of config groups in project view (as external libraries)

v1.3.9

05 Jun 13:14
Compare
Choose a tag to compare

Release Notes

  • 更新CWT规则文件以适配Stellaris 3.12.3
  • 新功能:支持切换快速文档中的本地化使用的语言区域(如果可用,打开快速文档后,在右键菜单或者右下角更多菜单中,点击Change Localisation Locale
  • #78 优化:支持通过扩展的CWT规则文件为动态值(如event_target)指定作用域上下文 - 提供更加完善的支持(详见参考文档)
  • 其他优化与BUG修复

  • Update CWT configs files to match Stellaris 3.12.3
  • New feature: Supports to change localisation locale in quick documentation (If available, open quick documentation, then click Change Localisation Locale in Right Click Menu or More Menus in the bottom-right corner)
  • #78 Optimization: Support for specifying the scope context for dynamic values (e.g., event_target) via extended CWT configs - more perfect support (See reference documentation for details)
  • Other optimizations and bug fixes

v1.3.8

26 May 17:22
Compare
Choose a tag to compare

Release Notes

  • 优化:优化查询,提高性能,修复有关重载的一些BUG
  • 优化:优化代码格式化功能,修复一些细节上的BUG
  • 优化:优化插件设置页面
  • 优化:涉及CWT选项注释与文档注释时,粘贴文本以及行注释/取消行注释能够得到正确的结果
  • 优化:允许折叠本地化文件中的本地化引用与本地化图标(完全折叠,可配置,默认不启用,搭配相关的内嵌提示使用)
  • 优化:允许折叠本地化文件中的本地化命令与本地化概念(可配置,默认不启用)
  • #72 也将"$PARAM$"中的$PARAM$识别为参数
  • #79 优化:匹配脚本内容与规则时,如果带参数的键的规则类型是唯一确定的,则需要继续向下匹配
  • #79 优化:匹配脚本内容与规则时,如果作为参数的键的规则类型可以(从扩展的CWT规则)推断出来且是匹配的,则需要继续向下匹配
  • #79 优化:如果$scope$表示一个作用域连接,也尝试(从扩展的CWT规则)推断其作用域上下文
  • #80 BUG修复:对于作用域的正确性的检查应当尽可能地适用
  • 其他优化与BUG修复

  • Optimization: Optimize search implementation, performance improvement, bug fixes about override
  • Optimization: Optimize code reformat implementation, bug fixes about details
  • Optimization: Optimize plugin settings page
  • Optimization: Paste, comment / uncomment with line comment now work correctly when CWT option comments or documentation comments are involved
  • Optimization: Now it's available to fold localisation references & icons in localisation files (fully folded, configurable, disabled by default, use with relevant inlay hints)
  • Optimization: Now it's available to fold localisation commands & concepts (configurable, disabled by default)
  • #72 Treat $PARAM$ in "$PARAM$" as a parameter
  • #79 Optimization: When match script content with configs, if the config type of parameterized key can be determined uniquely, it's necessary to continue matching down
  • #79 Optimization: When match script content with configs, if the config type of parameterized key can be inferred and matched (via extended CWT configs), it's necessary to continue matching down
  • #79 Optimization: If $scope$ represents a scope link, also try to infer its scope context (via extended CWT configs)
  • #80 Bug fix: Incorrect expression inspection for scope field expressions should be available wherever possible
  • Other optimizations and bug fixes

v1.3.7

12 May 12:09
Compare
Choose a tag to compare

Release Notes

  • 更新CWT规则文件以适配Stellaris 3.12.2(基本完成)
  • 优化:优化代码格式化功能,修复一些细节上的BUG
  • 优化:基于CWT规则文件来确定目标(定义、本地化等)的覆盖顺序(可以自定义,参见参考文档)
  • 优化:对于本地化文件,本地化文本中的双引号不需要转义(直到本行最后一个双引号之前为止,视为本地化文本)
  • 优化:如果目标无法解析,但是存在对应的扩展的CWT规则,可以配置是否忽略相关的代码检查
  • 优化:如果可以从扩展的CWT规则文件推断作用域上下文,就不要再尝试从使用推断
  • 其他优化与BUG修复

  • Update CWT configs files to match Stellaris 3.12.2 (almost done)
  • Optimization: Optimize code reformatting feature, fixes some details bugs
  • Optimization: Determine override order for targets (definitions, localisations, etc.) based on CWT configs files (Can be customized, see reference documentation for details)
  • Optimization: For localisation file, it's unnecessary to escape double quotes in localisation text
  • Optimization: It a target cannot be resolved, but related extended CWT configs exist, related code inspection can be configured to be ignored
  • Optimization: If the scope context can be inferred from extended CWT configs, do not continue to be inferred from usages
  • Other optimizations and bug fixes

v1.3.6

27 Apr 19:02
Compare
Choose a tag to compare

Release Notes

  • 在内置规则文件的编辑器通知中提供操作,点击可以生成或者导航到对应的项目本地的规则文件
  • #73 扩展CWT规则:支持扩展的数据类型AntExpression,用于匹配ANT路径表达式(详见参考文档)
  • #73 扩展CWT规则:支持扩展的数据类型Regex,用于匹配正则表达式(详见参考文档)
  • #73 扩展CWT规则:支持在## context_key的值中使用模版表达式(详见参考文档)
  • #73 扩展CWT规则:编写扩展的CWT规则时,可以通过字符串字面量以及模版表达式进行匹配的地方,现在也可以通过ANT路径表达式以及正则表达式进行匹配(详见参考文档)
  • #71 修复一个有关作用域上下文切换的问题
  • #74 修复一个有关索引以及引用解析的问题
  • #76 通过扩展的CWT规则提供上下文规则时,允许直接在顶级规则使用single_alias(示例:extended_param = single_alias_right[trigger_clause]
  • 优化:如果需要,对于已打开的文件,其文件内容应当及时重新解析,其中的内嵌提示应当及时更新(注意这可能需要先在后台花费一定时间)
  • 优化:优化代码补全的用时

  • Provide an action in editor notification bar for builtin config files, click to generate (or navigate to) related project-local config file
  • #73 Extend CWT Config: Supports extended data type AntExpression, which is used to match ANT expression (see reference documentation for details)
  • #73 Extend CWT Config: Supports extended data type Regex, which is used to match regex (see reference documentation for details)
  • #73 Extend CWT Config: Supports for using template expressions for value of ## context_key (see reference documentation for details)
  • #73 Extend CWT Config: When writing extended CWT configs, in places which can use string literals and template expressions, now can also use ANT expressions and regular expressions (see reference documentation for details)
  • #71 Fix a problem about scope context switching
  • #74 Fix a problem about indexing and reference resolving
  • #76 When provide context configs by extended configs, allows to use single_alias at top level directly (e.g. extended_param = single_alias_right[trigger_clause])
  • Optimization: If necessary, for opened files, reparse its file context and refresh its inlay hints (Note that this may take some times in background first)
  • Optimization: Optimize time cost of code completion

v1.3.5

20 Apr 08:14
Compare
Choose a tag to compare

Release Notes

  • 为操作“导航到相关的CWT规则”提供更加完善的支持(额外适用于封装变量、参数等)
  • 支持通过扩展的CWT规则为封装变量(scripted_variable)提供扩展的快速文档(详见参考文档)
  • 支持通过扩展的CWT规则为封装变量(scripted_variable)提供扩展的内嵌提示(详见参考文档)
  • #66 支持为一些目标额外提供基于扩展的CWT规则的代码补全(包括封装变量、定义、内联脚本、参数、复杂枚举值与动态值,可配置,默认不启用)
  • #69 支持通过扩展的CWT规则为一些目标指定作用域上下文(包括定义、参数与内联脚本,基于## replace_scopes## push_scope,忽略选项不合法的情况)
  • #70 提供内联脚本调用的代码补全(inline_script = ...,可配置,默认不启用,目前适用于所有游戏类型)
  • 添加代码检查:未使用的内联脚本(弱警告级别)
  • 其他优化与BUG修复

  • Improved support for the action "Goto to related CWT configs" (For scripted variables, parameters, etc.)
  • Support for providing extended quick documentation for scripted variables via extended CWT configs (see reference documentation for details)
  • Support for providing extended inlay hints for scripted variables via extended CWT configs (see reference documentation for details)
  • #66 Support for providing additional code completion for various targets via extended CWT configs (For scripted variables, definitions, inline scripts, parameters, complex enum values and dynamic values; Configurable; Disabled by default)
  • #69 Support for specifying the scope context for various targets via extended CWT configs (For definitions, parameters and inline scripts; Via ## replace_scopes and ## push_scope; Ignore invalid situations)
  • #70 Provide code completion for inline script invocations (inline_script = ...; Configurable; Disabled by default; Currently for all game types)
  • New code inspection: Unused inline scripts (level: weak warning)
  • Other optimizations and bug fixes

v1.3.4

31 Mar 07:34
Compare
Choose a tag to compare

Release Notes

  • 为操作“导航到相关的CWT规则”提供更加完善的支持
  • 支持通过扩展的CWT规则为复杂枚举值(如component_tag)提供扩展的快速文档(详见参考文档)
  • 支持通过扩展的CWT规则为动态值(如variable)提供扩展的快速文档(变更了对应CWT规则的格式,详见参考文档)
  • 支持通过扩展的CWT规则为复杂枚举值(如component_tag)提供扩展的内嵌提示(详见参考文档)
  • 支持通过扩展的CWT规则为动态值(如variable)提供扩展的内嵌提示(详见参考文档)
  • 添加代码检查:重载的文件(弱警告级别,默认不开启)
  • 修复当CWT规则涉及single_alias时,应用代码补全后,不会正确地自动插入 = {}的问题
  • 尝试修复涉及内联脚本与适用语言注入的参数时,IDE可能卡死的问题

  • Improved support for the action "Goto to related CWT configs"
  • Support for providing extended quick documentation for complex enum values (e.g. component_tag) via extended CWT configs (see reference documentation for details)
  • Support for providing extended quick documentation for dynamic values (e.g. variable) via extended CWT configs (format of relevant CWT configs is changed, see reference document for details)
  • Support for providing extended inlay hints for complex enum values (e.g. component_tag) via extended CWT configs (see reference documentation for details)
  • Support for providing extended inlay hints for dynamic values (e.g. variable) via extended CWT configs (see reference documentation for details)
  • New code inspection: Overridden for files (level: weak warning, enabled by default: no)
  • Fixed an issue that = {} would not be inserted correctly when applying code completion for script snippets matching CWT config of single_alias
  • Try to fix an issue that when inline scripts and parameters (with language injection) are involved, IDE may be freezing.