TheOld / vscode-fluent-ui

MIT License
117 stars 14 forks source link

Does not work with VS Code 1.94 #65

Open FNERNST opened 1 month ago

FNERNST commented 1 month ago

With VS Code 1.94 I get the following error message when I try to enable fluent UI: "command 'fluent-ui-vscode.enableEffects" not found

flavioow commented 1 month ago

I think it's something in Visual Studio Code itself, because mine has the same error, but not only with this extension, another one (vibrancy continued) that does basically the same thing has the same error.

I did some tests, installed extensions at random and ran some commands, and they didn't show any defects. However, when I ran these two extensions in particular, they both gave the same error. So I imagine it's a VS Code problem or some incompatibility with the operating system. The installation was done both in administrator mode from the VS Code store and as an administrator from the marketplace using the .vsix file.

I did some more advanced research and when you install an extension, it should be installed in the folder:

C:\Users\<username>\.vscode\extensions\

Followed by the name of the folder that represents the extension, however, in both cases, the extensions are not downloaded to the computer, despite being visible in the list.

To do a concrete test, I listed the extensions present using a command on the command line:

code --list-extensions

In the list, there was no record of it, which shows that it really wasn't installed correctly, and explains why the execution file wasn't found.

flavioow commented 1 month ago

An addendum: I found this closed issue where there is a more technical description, maybe it will be useful. Unfortunately it didn't help me, but it may be different for you.

FNERNST commented 1 month ago

Thx for your investigations, I will have a look. Btw. according Vibrancy, they updated their extension and now it works well on my other machine (macOS). If some modifications have to be done. I'm open to contribute.

babs232 commented 1 month ago

This is happening most probably due to the workbench.html file being renamed to workbench.esm.html.

I was able to figure out a work-around for this, which is working for me:

1. Downgrade vs-code to v1.93.1 from here: [1.93.1](https://code.visualstudio.com/updates/v1_93) (Don't worry, all the settings and extension settings will be retained)
2. Enable Fluent-UI on this version
3. Go to C:\Users\<user>\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench
4. Take a copy of workbench.html & fui.js and keep it somewhere
5. Upgrade the v1.93.1 vscode to v1.94
6. Close VS-Code
7. Open the backed up workbench.html and copy the <style> tag and its contents.
8. Open the C:\Users\<user>\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench\workbench.esm.html
9. Paste the copied <style> tag within workbench.esm.html right after the <meta meta http-equiv="Content-Security-Policy" content="...> tag and before the < / h e a d > tag.
10. Paste the backed up fui.js in the same location i.e. C:\Users\<user>\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench\
11. Run VS-Code in admin mode and enable Fluent UI.
image
FNERNST commented 1 month ago

Thanks for your work. I appreciate it and can confirm that this work around works on my machine too :D

lakshanFernando2003 commented 1 month ago

do you have the backup? of workbench.html & fui.js can u share it

FNERNST commented 1 month ago

Sure, I added my workbench.esm.html and the fui.js file. files.zip

Mukul1127 commented 4 weeks ago

Untested fix: https://github.com/Mukul1127/vscode-fluent-ui

mbudd177 commented 3 weeks ago

Repo hasn't been updated in nearly a year and a half. Hoping someone can pick this project back up

Night-Star04 commented 3 weeks ago

Repo hasn't been updated in nearly a year and a half. Hoping someone can pick this project back up

Hi there! Like you, I’ve found this project really valuable and have forked the repo to apply some updates and fixes. Since it hasn’t been updated in over a year, I’m wondering if there’s any interest within the community to help maintain or revive it.

I’d be happy to share the changes I’ve made and contribute to keeping the project alive. If you or anyone else is interested, we could discuss potential collaboration and how we can move this forward together.

Here’s a link to my fork with the updates I’ve made so far: My Forked Repo.

If there are any issues or concerns regarding compliance, please let me know, and I'll promptly modify or remove the content. Thank you!"