-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConvertTo-SplatExpression: Cannot find type for custom attribute 'EditorCommand' #42
Comments
I've made some changes to the v0.5.0 branch to accommodate the new PowerShellEditorServices architecture. That version is a complete overhaul of the module and isn't where I want it to be for release yet, but it's currently functional and should serve as a drop in replacement.
There's a few new editor commands in there, some fixes to old ones, and a lot more configuration options. There's also a context based refactor system similar to "quick fixes" or "code actions". To use that, put something like this in your {
"key": "ctrl+.",
"command": "PowerShell.InvokeRegisteredEditorCommand",
"args": { "commandName": "Invoke-DocumentRefactor" },
"when": "editorLangId == 'powershell'",
}, And then press Ctrl + . on whatever you want to refactor. There's also configuration options scoped to machine, user, or project levels. To create a new settings file, use |
Daily works great @SeeminglyScience - thank you so much for publishing the link as a temporary workaround! |
Any chance the v 0.5.0 can be pushed to the Gallery as a prelease? |
@kilasuit Not yet, PowerShellEditorServices is currently changing too rapidly to steadily release previews atm. Once PowerShell/PowerShellEditorServices#1183 makes it into a vscode-powershell preview release then I'll get something up. |
After today's update to Preview 0.5 stopped working again.
|
Thanks @PrzemyslawKlys! Yeah, some more big changes. I'll get another build ready this weekend. |
Fix for preview 9 here. Also updated the link above. |
One error still remains. |
@PrzemyslawKlys That error isn't coming from ESCS, can you file that on PowerShellEditorServices? Also you can remove |
I can, but does it still matter if I'm not supposed to use it? |
This module just doesn't require it anymore, other modules still can. I'll take submitting the issue, thanks for the report 🙂 |
Fixed with v1.0.0-beta1 Install-Module EditorServicesCommandSuite -Scope CurrentUser -AllowPrerelease -Force |
Working with the newest Powershell Preview extension (tested on v2019.11.0),
ConvertTo-SplatExpression
fails with the following error. Non-preview powershell extension works as intended.The text was updated successfully, but these errors were encountered: