Skip to content

auto import does not respect user/global formatting #1311

@devingfx

Description

@devingfx

Describe the bug

The auto import feature (ctrl+space) does not respect default/global/user preference on code formatting, we have to define a "fmt" config in deno.json on each project.

To Reproduce

  1. Define code formatting in default/global/user preference (that is not deno's default formatting)
  2. Do not set "fmt" entry in deno.json
  3. Use auto import (ctrl+space)

Expected behavior

If the project does not define a "fmt" config in the deno.json, the auto import feature (and possibly all other code completion) should respect higher order preference.

Screenshots

Not applicable

Versions

vscode:

Version : 1.101.03933
Validation : 3a9d13eb624032e7f764def3dd45db451a4f0270
Date : 2025-06-12T21:31:35.492Z
Electron : 35.5.1
ElectronBuildId : undefined
Chromium : 134.0.6998.205
Node.js : 22.15.1
V8 : 13.4.114.21-electron.0
Système d’exploitation : Linux x64 5.15.0-139-generic

deno: 1.43.6
extension: 3.44.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions