Skip to content

Code actions are unstable with TypeScript and Vue on save #112

@simensol

Description

@simensol

I would love to use this extension for my TypeScript and Vue codebase. However, enabling the source.fixAll.blocksort is not working or is very unstable. Some observations:

  1. I have to explicitly set "source.fixAll": "explicit" to make source.fixAll.blocksort run successfully on save:
    "[vue]": {
        "editor.codeActionsOnSave": {
            "source.fixAll": "explicit", // Required
            "source.fixAll.blocksort": "explicit",
            "source.fixAll.eslint": "explicit",
            "source.fixAll.stylelint": "explicit",
            "source.organizeImports": "never"
        },
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "editor.formatOnSave": true
    }
  1. I often experience the code action to get stuck on Sort all annotated Blocks on save:
Image
  1. The manual blocksort action mostly works even if the on save code action doesn't work.

  2. I often have to save twice for the blocksort to sort on save; the first time I save, the formatter and other code actions seem to run, but the blocksort code action seems to require an additional save.

  3. The on save code action is more stable with TypeScript than Vue, but the first issue (source.fixAll required) also applies to TypeScript.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions