@hydranium/glsp-server 1.0.0-next.95 → 1.0.0-next.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -128,11 +128,11 @@ export declare class ReconcilingMultiDocumentGlspState<TRoot extends AstNode, TP
|
|
|
128
128
|
*
|
|
129
129
|
* **Skipping unchanged documents is correctness, not an optimisation.** A
|
|
130
130
|
* write goes through `ModelService.update`, which re-serializes from the AST —
|
|
131
|
-
* so writing a document that did not change still rewrites its text
|
|
132
|
-
* serializer
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
131
|
+
* so writing a document that did not change still rewrites its text in the
|
|
132
|
+
* serializer's own layout. Persisting the whole write set unconditionally
|
|
133
|
+
* therefore means a pure layout drag reflows the semantic file, a change the
|
|
134
|
+
* user never asked for and would struggle to attribute. Comments survive that
|
|
135
|
+
* rewrite, but the hand-formatting around them does not.
|
|
136
136
|
*
|
|
137
137
|
* Compared by serialised form. Both sides come from the same encoder walking
|
|
138
138
|
* the same shape, so key order is stable and a string compare is sound here;
|
|
@@ -154,11 +154,11 @@ let ReconcilingMultiDocumentGlspState = class ReconcilingMultiDocumentGlspState
|
|
|
154
154
|
*
|
|
155
155
|
* **Skipping unchanged documents is correctness, not an optimisation.** A
|
|
156
156
|
* write goes through `ModelService.update`, which re-serializes from the AST —
|
|
157
|
-
* so writing a document that did not change still rewrites its text
|
|
158
|
-
* serializer
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
157
|
+
* so writing a document that did not change still rewrites its text in the
|
|
158
|
+
* serializer's own layout. Persisting the whole write set unconditionally
|
|
159
|
+
* therefore means a pure layout drag reflows the semantic file, a change the
|
|
160
|
+
* user never asked for and would struggle to attribute. Comments survive that
|
|
161
|
+
* rewrite, but the hand-formatting around them does not.
|
|
162
162
|
*
|
|
163
163
|
* Compared by serialised form. Both sides come from the same encoder walking
|
|
164
164
|
* the same shape, so key order is stable and a string compare is sound here;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hydranium/glsp-server",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.96",
|
|
4
4
|
"description": "GLSP protocol head for the hydranium framework. Peer of @hydranium/core/lsp and @hydranium/data-server; built on @hydranium/core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hydranium",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@eclipse-glsp/protocol": "2.7.0",
|
|
89
89
|
"@eclipse-glsp/server": "2.7.0",
|
|
90
|
-
"@hydranium/core": "1.0.0-next.
|
|
91
|
-
"@hydranium/langium": "1.0.0-next.
|
|
92
|
-
"@hydranium/protocol": "1.0.0-next.
|
|
90
|
+
"@hydranium/core": "1.0.0-next.96",
|
|
91
|
+
"@hydranium/langium": "1.0.0-next.96",
|
|
92
|
+
"@hydranium/protocol": "1.0.0-next.96",
|
|
93
93
|
"inversify": "6.2.2",
|
|
94
94
|
"reflect-metadata": "0.2.2",
|
|
95
95
|
"rimraf": "^5.0.0",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"peerDependencies": {
|
|
101
101
|
"@eclipse-glsp/protocol": "^2.6.0",
|
|
102
102
|
"@eclipse-glsp/server": "^2.6.0",
|
|
103
|
-
"@hydranium/core": "1.0.0-next.
|
|
104
|
-
"@hydranium/langium": "1.0.0-next.
|
|
105
|
-
"@hydranium/protocol": "1.0.0-next.
|
|
103
|
+
"@hydranium/core": "1.0.0-next.96",
|
|
104
|
+
"@hydranium/langium": "1.0.0-next.96",
|
|
105
|
+
"@hydranium/protocol": "1.0.0-next.96",
|
|
106
106
|
"inversify": "^6.0.0",
|
|
107
107
|
"reflect-metadata": "^0.2.2",
|
|
108
108
|
"vscode-jsonrpc": "9.0.1",
|
|
@@ -180,11 +180,11 @@ export class ReconcilingMultiDocumentGlspState<TRoot extends AstNode, TPrimary e
|
|
|
180
180
|
*
|
|
181
181
|
* **Skipping unchanged documents is correctness, not an optimisation.** A
|
|
182
182
|
* write goes through `ModelService.update`, which re-serializes from the AST —
|
|
183
|
-
* so writing a document that did not change still rewrites its text
|
|
184
|
-
* serializer
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
183
|
+
* so writing a document that did not change still rewrites its text in the
|
|
184
|
+
* serializer's own layout. Persisting the whole write set unconditionally
|
|
185
|
+
* therefore means a pure layout drag reflows the semantic file, a change the
|
|
186
|
+
* user never asked for and would struggle to attribute. Comments survive that
|
|
187
|
+
* rewrite, but the hand-formatting around them does not.
|
|
188
188
|
*
|
|
189
189
|
* Compared by serialised form. Both sides come from the same encoder walking
|
|
190
190
|
* the same shape, so key order is stable and a string compare is sound here;
|