Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

268
Views
Invalid argument 'columnOrOptions' when running 'vscode.diff'

I am creating an VS extension which needs to show the difference between two files

vscode.diff - Opens the provided resources in the diff editor to compare their contents.

left - Left-hand side resource of the diff editor right - Right-hand side resource of the diff editor title - (optional) Human readable title for the diff editor columnOrOptions - (optional) Either the column in which to open or editor options, see vscode.TextDocumentShowOptions (returns) - no result

When i try to specify the column in the execute commands it fails and shows error rejected promise not handled within 1 second: Error: Invalid argument 'columnOrOptions' when running 'vscode.diff', received: 1 c:\Users\sivakub\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-fork.js:5 stack trace: Error: Invalid argument 'columnOrOptions' when running 'vscode.diff', received: 1

Here is the code

vscode.commands.executeCommand("vscode.diff", vscode.Uri.file(outputpath), vscode.Uri.file(oldOutputPath),"Current ----- Old", vscode.ViewColumn.Two);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!