Remove deprecated syntax (#6561)
* Remove deprecated syntax Signed-off-by: Nick Cameron <nrc@ncameron.org> * fix one test * fix sketch on revolved face test * fix test: empty-scene default-planes act as expected * fix up more tests * another fix * remove another const --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch>
This commit is contained in:
@ -262,15 +262,15 @@ impl Backend {
|
||||
// if self.dev_mode
|
||||
if false {
|
||||
completion_list.push(
|
||||
r#"fn cube = (pos, scale) => {
|
||||
const sg = startSketchOn('XY')
|
||||
r#"fn cube(pos, scale) {
|
||||
sg = startSketchOn(XY)
|
||||
|> startProfile(at = pos)
|
||||
|> line([0, scale], %)
|
||||
|> line([scale, 0], %)
|
||||
|> line([0, -scale], %)
|
||||
return sg
|
||||
}
|
||||
const part001 = cube([0,0], 20)
|
||||
part001 = cube([0,0], 20)
|
||||
|> close(%)
|
||||
|> extrude(length=20)"#
|
||||
.to_string(),
|
||||
|
@ -1573,10 +1573,10 @@ async fn test_kcl_lsp_semantic_tokens_with_modifiers() {
|
||||
|> close()
|
||||
|> extrude(length = 3.14)
|
||||
|
||||
thing = {blah: "foo"}
|
||||
thing = {blah = "foo"}
|
||||
bar = thing.blah
|
||||
|
||||
fn myFn = (param1) => {
|
||||
fn myFn(param1) {
|
||||
return param1
|
||||
}"#
|
||||
.to_string(),
|
||||
|
Reference in New Issue
Block a user