claude-code - 💡(How to fix) Fix Feature Request: Support drag-and-drop for binary documents (.wps, .doc, .docx, .xlsx, .pdf) in VS Code extension

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Current workaround

Code Example

{
     "claude.fileConverters": {
       ".wps": "soffice --headless --convert-to txt {input} --outdir {outputDir}"
     }
   }
RAW_BUFFERClick to expand / collapse

Problem

When users drag-and-drop or attach binary document files in the VS Code extension, the file content is not transmitted to Claude Code. The message appears as [Unsupported Document] and Claude cannot see the file content.

Currently, only plain text files (.txt, .md, code files) work with drag-and-drop.

Affected formats

  • .wps (WPS Office)
  • .doc / .docx (Microsoft Word)
  • .xlsx / .xls (Microsoft Excel)
  • .pdf (Portable Document Format)

Current workaround

Users must manually convert files to .txt or copy-paste the file path for Claude to read via shell tools — a poor UX for non-technical users.

Proposed solution

When a binary document file is attached/dropped, the VS Code extension could:

  1. Option A (lightweight): Detect the file type and automatically invoke a local conversion tool to extract text before sending to Claude:

    • For .docx: use the mammoth npm library
    • For .xlsx: use the xlsx (SheetJS) npm library
    • For .pdf: use the pdf-parse npm library
    • For .wps / .doc: use LibreOffice headless (soffice --headless --convert-to txt)
  2. Option B (fallback): If no conversion tool is available, at least pass the file path to Claude so it can attempt to read the file, rather than silently dropping it as [Unsupported Document].

  3. Option C (integration): Allow users to configure external converters in settings.json, e.g.:

    {
      "claude.fileConverters": {
        ".wps": "soffice --headless --convert-to txt {input} --outdir {outputDir}"
      }
    }

Use case

Common in enterprise/engineering environments where users frequently share WPS, Word, Excel and PDF documents for review, proofreading, and analysis via Claude Code.

Environment

  • OS: Windows 11 Pro for Workstations
  • VS Code extension version: current
  • Claude Code version: current

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING