m1guer / basedpyright-zed

17 stars 2 forks source link

Newline in Python file does not indent #5

Open failable opened 2 months ago

failable commented 2 months ago

Please see the original post: https://github.com/zed-industries/zed/issues/16288

Is this an issue of this extension? Thanks.

m1guer commented 2 months ago

are you using the basedpyright at the same time with pyright?

m1guer commented 2 months ago

can share with me your configs?

m1guer commented 2 months ago

tested here and its a problem with the scemes. will fix now.

failable commented 2 months ago

My whole settings

{
  "show_wrap_guides": false,
  "projects_online_by_default": false,
  "theme": "One Light",
  "ui_font_size": 14,
  "ui_font_family": "Open Sans",
  "buffer_font_family": "DM Mono",
  "buffer_font_size": 12,
  "buffer_line_height": "standard",
  "default_dock_anchor": "expanded",
  "cursor_blink": false,
  "confirm_quit": true,
  "always_treat_brackets_as_autoclosed": true,
  "show_completion_documentation": false,
  "hover_popover_enabled": false,
  "extend_comment_on_newline": false,
  "use_system_path_prompts": false,
  "features": {
    "inline_completion_provider": "copilot"
  },
  "tabs": {
    "close_position": "left"
  },
  "inlay_hints": {
    "enabled": false
  },
  "collaboration_panel": {
    "button": false
  },
  "chat_panel": {
    "button": false
  },
  "notification_panel": {
    "button": false
  },
  "outline_panel": {
    "button": false
  },
  "assistant": {
    "default_model": {
      "provider": "anthropic",
      "model": "claude-3-5-sonnet-20240620"
    },
    "default_height": 360,
    "provider": null,
    "version": "2",
    "button": false,
    "default_width": 360
  },
  "gutter": {
    "line_numbers": false,
    "code_actions": false,
    "folds": false,
    "runnables": false
  },
  "toolbar": {
    "breadcrumbs": true,
    "quick_actions": false
  },
  "tab_bar": {
    "show": false,
    "show_nav_history_buttons": false
  },
  "task": {
    "show_status_indicator": false
  },
  "git": {
    "inline_blame": {
      "enabled": false
    },
    "git_gutter": "tracked_files"
  },
  "project_panel": {
    "button": false,
    "scrollbar": {
      "show": "never"
    }
  },
  "scrollbar": {
    "show": "never"
  },
  "indent_guides": {
    "enabled": false
  },
  "calls": {
    "mute_on_join": true,
    "share_on_join": false
  },
  "journal": {
    "hour_format": "hour24"
  },
  "file_scan_exclusions": [
    "**/data",
    "**/output",
    "**/.ruff_cache",
    "**/.git",
    "**/.svn",
    "**/.hg",
    "**/CVS",
    "**/.DS_Store",
    "**/Thumbs.db",
    "**/.classpath",
    "**/.settings"
  ],
  "languages": {
    "Python": {
      "language_servers": ["basedpyright", "ruff", "!pyright"],
      "format_on_save": "on",
      "formatter": [
        {
          "code_actions": {
            "source.organizeImports.ruff": true,
            "source.fixAll.ruff": true
          }
        },
        {
          "language_server": { "name": "ruff" }
        }
      ]
    }
  },
  "lsp": {
    "rust-analyzer": {
      "initialization_options": {
        "checkOnSave": {
          "command": "clippy"
        }
      }
    }
  },
  "file_types": {
    "Shell Script": [".env.*", ".env-*"],
    "Dockerfile": ["Dockerfile*"]
  },
  "terminal": {
    "dock": "right",
    "button": false,
    "blinking": "off",
    "line_height": "standard",
    "env": {
      "EDITOR": "zed --wait"
    },
    "cursor_style": "underline"
  },
  "telemetry": {
    "diagnostics": false,
    "metrics": false
  },
  // One Light
  "experimental.theme_overrides": {
    "status_bar.background": "#fafafa",
    "title_bar.background": "#fafafa",
    "tab_bar.background": "#f6f6f6",
    "tab.inactive_background": "#f6f6f6",
    "panel.background": "#fafafa",
    "border": "#f2f2f2f2",
    "border.variant": "#eaeaea",
    "hint": "#bbbbbbf0",
    "editor.active_line.background": "#aaaaaa0f",
    "ghost_element.selected": "#f1f1f1",
    "ghost_element.hover": "#eaeaea",
    "ghost_element.active": "#dadada",
    "warning": "#ffa54fcc",
    "background": "#fafafa",
    "text": "#454545",
    "text.muted": "#a0a0a0",
    "elevated_surface.background": "#f6f6f6",
    "editor.document_highlight.write_background": "#DCE1E6",
    "modified": "#eac351"
  }
}
m1guer commented 2 months ago

image

it should be working, im investing why not.

m1guer commented 2 months ago

i can't find why this is happening. @rgbkrk do you know what to do in this situation?