ironmansoftware / psedit

A terminal-based editor for PowerShell
MIT License
256 stars 18 forks source link

Ignore errors on non-PowerShell files #34

Closed jdhitsolutions closed 6 months ago

jdhitsolutions commented 1 year ago

If I understand correctly, PSEdit is analyzing PowerShell script files for errors. But it shouldn't assume that every file is a PowerShell file. I have a JSON file open in the editor, and I shouldn't get errors. image

This can be misleading for less experienced users.

halvarsson commented 1 year ago

Currently the editor is always assuming the content to be Powershell, I think we need to split the logic out and make a base TextEditor which can edit text, and then some easy way to add syntax highlighting, autocomplete etc. ontop of this based on the filetype you are working on... Would be really neat if we supported XML, JSON etc :-)