Skip to content

[VSCode Extension] Organize script command does not work #216

@jsardev

Description

@jsardev

Like in the title. Given this example script:

class_name Player extends CharacterBody2D @export var speed = 80.0 @onready var animated_sprite := $AnimatedSprite2D func _physics_process(_delta):	velocity = Vector2(Input.get_axis("left", "right"), Input.get_axis("top", "down")) * speed	if velocity.x < 0:	animated_sprite.scale.x = abs(animated_sprite.scale.x) * -1	elif velocity.x > 0:	animated_sprite.scale.x = abs(animated_sprite.scale.x)	if velocity.x != 0 or velocity.y != 0:	animated_sprite.play("walk")	else:	animated_sprite.play("idle")	move_and_slide() 

I'm getting those weird errors when trying to run the Organize script command in VSCode:

CleanShot 2023-04-30 at 20 06 59

Additional info

  • VSCode extension version 1.2.3
  • Toolkit version: 4.0.1
  • Format document works fine
  • I can't find any errors in the output console

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions