This commit is contained in:
Pierre Jacquier
2025-07-02 17:00:17 -04:00
parent a589f56e73
commit cc9eb65456
2 changed files with 24 additions and 5 deletions

19
package-lock.json generated
View File

@ -26640,10 +26640,27 @@
"vscode-uri": "^3.1.0"
},
"devDependencies": {
"@types/node": "^22.14.1",
"@types/node": "^24.0.7",
"ts-node": "^10.9.2"
}
},
"packages/codemirror-lsp-client/node_modules/@types/node": {
"version": "24.0.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.10.tgz",
"integrity": "sha512-ENHwaH+JIRTDIEEbDK6QSQntAYGtbvdDXnMXnZaZ6k13Du1dPMmprkEHIL7ok2Wl2aZevetwTAb5S+7yIF+enA==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~7.8.0"
}
},
"packages/codemirror-lsp-client/node_modules/undici-types": {
"version": "7.8.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz",
"integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==",
"dev": true,
"license": "MIT"
},
"rust/kcl-language-server": {
"version": "0.0.0",
"license": "MIT",

View File

@ -1079,16 +1079,18 @@ export function getVariableExprsFromSelection(
// Pointing to same variable case
paths.push(nodeToEdit)
exprs.push(createPipeSubstitution())
continue
}
}
// Pointing to different variable case
paths.push(sketchVariable.deepPath)
exprs.push(createLocalName(name))
} else {
// No variable case
paths.push(sketchVariable.deepPath)
exprs.push(createPipeSubstitution())
continue
}
// No variable case
paths.push(sketchVariable.deepPath)
exprs.push(createPipeSubstitution())
}
if (exprs.length === 0) {