Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSC throwing an error when running powershell script

Just started getting following error, when I open Powershell Script in Visual Studio Code. It was working fine till yesterday. Here is the error:

The language service could not be started: 
Error: The language client requires VS Code version ^1.26 but recevied version 1.25.1

I googled it found a page which said to change package.json file to older version, but I cant find that file, I am using a macos.

like image 894
NoviceMe Avatar asked Apr 27 '26 13:04

NoviceMe


1 Answers

Your problem is incompatible versions. The PowerShell extension is using a later feature in vscode that is not available in the version you have installed.

You can:

  1. Upgrade vscode (if auto-update is failing, you can download the installer and re-run it)
  2. Downgrade the PowerShell extension
    • Use the latest VSIX that worked for you
    • Use Extensions: Install from VSIX... from the Command Palette (CTRL+SHIFT+P) in vscode
    • Turn off auto-update on your extensions by adding the following to settings.json:
      "extensions.autoUpdate": false,
like image 149
Maximilian Burszley Avatar answered Apr 29 '26 12:04

Maximilian Burszley