oleg-shilo / cs-script.vscode

VSCode extension for CS-Script
MIT License
37 stars 7 forks source link

Extension Stopped Working after "C# for Visual Studio" extension update #20

Closed mmickael closed 4 years ago

mmickael commented 4 years ago

About two weeks ago, "C# for Visual Studio" was updated. Since then, I get the following error when loading a csharp file:

CS-Script: CS-Script: The required extension "C# for Visual Studio Code" is not found. Ensure it is installed.

The extension is installed. I tried uninstalling and reinstalling the C# extension, CS-Script, and VS Code itself with no luck. Screenshot

oleg-shilo commented 4 years ago

Thank you. Yep. Excellent :( They have changed the name/id of their extension and derailed all extensions that depend on it. Including CS-Script. This is the checking that is performed at startup:

if (vscode.extensions.getExtension('ms-vscode.csharp') == null) {
    let message = 'The required extension "C# for Visual Studio Code" is not found. Ensure it is installed.';
    vscode.window.showErrorMessage(message);
    throw message;
}

And now the extension is effectively missing as they have changed its id to ms-dotnettools.csharp.

I will need to update the dependency.

mmickael commented 4 years ago

Works now. Thank you for the quick update.