You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show IntelliSense suggestions in manifest (psd1) files #159
Hey Luc! I believe that we don't get IntelliSense for manifest files because it's not provided by the PowerShell engine. I just tried getting IntelliSense for a manifest file in the PowerShell ISE and nothing came up. Have you seen IntelliSense in manifest files anywhere before?
This might be a good feature request for UserVoice if we determine that it isn't already being provided by the engine.
The engine doesn't provide completions for a manifest, so it'd be good to put this on uservoice.
The engine would have to guess it's completing in a manifest because the api doesn't accept a filename, so at best, it would have to guess based on some heuristics, but I think it might work well.
Another uservoice idea would be to support PSD1 schema files. Perhaps that is just a fully fleshed out set of key/value pairs for all nested hashtables? Part of that would be a top-level key "schema" with a value that is perhaps a path to a schema file. Just thinking out loud here. :-)
Should we defer this issue (close it) to PowerShell's issue that JohnLudlow has opened? If PowerShell adds completions for psd1's we should get intellisense for free, right?
Activity
daviwil commentedon Apr 25, 2016
Hey Luc! I believe that we don't get IntelliSense for manifest files because it's not provided by the PowerShell engine. I just tried getting IntelliSense for a manifest file in the PowerShell ISE and nothing came up. Have you seen IntelliSense in manifest files anywhere before?
This might be a good feature request for UserVoice if we determine that it isn't already being provided by the engine.
[-]Manifest Intellisense[/-][+]Show IntelliSense suggestions in manifest (psd1) files[/+]lucdekens commentedon Apr 25, 2016
You are right David.
Most of the commercial PowerShell editors also just provide a template, no intellisense either.
Is that possible, a template based on the file extension ?
daviwil commentedon Apr 25, 2016
Yep! Keith Hill (@rkeithhill) and I are working on something for this for a future version of the VS Code extension.
lzybkr commentedon Apr 25, 2016
The engine doesn't provide completions for a manifest, so it'd be good to put this on uservoice.
The engine would have to guess it's completing in a manifest because the api doesn't accept a filename, so at best, it would have to guess based on some heuristics, but I think it might work well.
rkeithhill commentedon Apr 25, 2016
Another uservoice idea would be to support PSD1 schema files. Perhaps that is just a fully fleshed out set of key/value pairs for all nested hashtables? Part of that would be a top-level key "schema" with a value that is perhaps a path to a schema file. Just thinking out loud here. :-)
lucdekens commentedon Apr 25, 2016
Raised the idea on UserVoice
https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/13585962-provide-intellisense-template-for-manifests
daviwil commentedon Apr 25, 2016
Thanks Luc!
TylerLeonhardt commentedon Jan 30, 2018
Should we defer this issue (close it) to PowerShell's issue that JohnLudlow has opened? If PowerShell adds completions for psd1's we should get intellisense for free, right?
rkeithhill commentedon Jan 31, 2018
Yup.
TylerLeonhardt commentedon Feb 2, 2018
Sounds good!