Compare commits
7
Commits
2026.6.100
...
4ca1b0cce9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ca1b0cce9 | ||
|
|
6051260a8d | ||
|
|
dfe15dd3db | ||
|
|
5d1c402d2a | ||
|
|
88f834ae79 | ||
|
|
3b233389c8 | ||
|
|
67bd9de18a |
@@ -17,3 +17,7 @@
|
|||||||
## [2026.6.100]
|
## [2026.6.100]
|
||||||
|
|
||||||
- Fix several bugs
|
- Fix several bugs
|
||||||
|
|
||||||
|
## [2026.6.200]
|
||||||
|
|
||||||
|
- Fix foramtting bug
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "nx-post-support",
|
"name": "nx-post-support",
|
||||||
"displayName": "NX Postprocessor Support",
|
"displayName": "NX Postprocessor Support",
|
||||||
"description": "VS Code extension for NX CAM postprocessor development with syntax highlighting, formatting, linting, and auto-completion for CDL, TCL, and DEF files",
|
"description": "VS Code extension for NX CAM postprocessor development with syntax highlighting, formatting, linting, and auto-completion for CDL, TCL, and DEF files",
|
||||||
"version": "2026.6.0",
|
"version": "2026.6.201",
|
||||||
"publisher": "Christoph",
|
"publisher": "Christoph",
|
||||||
"icon": "images/nx-1.png",
|
"icon": "images/nx-1.png",
|
||||||
"extensionDependencies": [
|
"extensionDependencies": [
|
||||||
|
|||||||
@@ -98,8 +98,12 @@ class TclLanguageServer(server.LanguageServer):
|
|||||||
FormatterOpts(
|
FormatterOpts(
|
||||||
indent=indent,
|
indent=indent,
|
||||||
spaces_in_braces=False,
|
spaces_in_braces=False,
|
||||||
|
balanced_spaces_in_braces=False,
|
||||||
max_blank_lines=500,
|
max_blank_lines=500,
|
||||||
indent_namespace_eval=True,
|
indent_namespace_eval=True,
|
||||||
|
indent_mixed_tab_size=0,
|
||||||
|
emacs=False,
|
||||||
|
debug_whitespace=False,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ class NxFormatter(BaseFormatter):
|
|||||||
formatted += [line]
|
formatted += [line]
|
||||||
|
|
||||||
if expr.pos[0] == expr.end_pos[0]:
|
if expr.pos[0] == expr.end_pos[0]:
|
||||||
return self._brace(formatted)
|
space_before = expr.children[0].pos[1] - expr.pos[1] - 1
|
||||||
|
space_after = expr.end_pos[1] - expr.children[-1].end_pos[1] - 1
|
||||||
|
return self._brace(formatted, (space_before, space_after))
|
||||||
|
|
||||||
return ["{"] + self._indent(formatted, self.opts.indent) + ["}"]
|
return ["{"] + self._indent(formatted, self.opts.indent) + ["}"]
|
||||||
|
|||||||
Reference in New Issue
Block a user