Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 50 additions & 2 deletions src/OneWare.GhdlExtension/GhdlExtensionModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,60 @@
{
Target = "osx-arm",
Url =
"https://github.com/ghdl/ghdl/releases/download/v5.1.1/ghdl-mcode-5.1.1-macos13-arm.tar.gz",
"https://github.com/ghdl/ghdl/releases/download/v5.1.1/ghdl-llvm-5.1.1-macos14-aarch64.tar.gz",
AutoSetting =
[
new PackageAutoSetting()
{
RelativePath = "ghdl-mcode-5.1.1-macos13-x86_64/bin/ghdl",
RelativePath = "ghdl-llvm-5.1.1-macos14-aarch64/bin/ghdl",
SettingKey = GhdlPathSetting
}
]
}
]
},
new PackageVersion()
{
Version = "6.0.0",
Targets =
[
new PackageTarget()
{
Target = "win-x64",
Url = "https://github.com/ghdl/ghdl/releases/download/v6.0.0/ghdl-mcode-6.0.0-ucrt64.zip",
AutoSetting =
[
new PackageAutoSetting()
{
RelativePath = "bin/ghdl.exe",
SettingKey = GhdlPathSetting
}
]
},
new PackageTarget()
{
Target = "linux-x64",
Url =
"https://github.com/ghdl/ghdl/releases/download/v6.0.0/ghdl-mcode-6.0.0-ubuntu24.04-x86_64.tar.gz",
AutoSetting =
[
new PackageAutoSetting()
{
RelativePath = "ghdl-mcode-6.0.0-ubuntu24.04-x86_64/bin/ghdl",
SettingKey = GhdlPathSetting
}
]
},
new PackageTarget()
{
Target = "osx-arm",
Url =
"https://github.com/ghdl/ghdl/releases/download/v6.0.0/ghdl-llvm-6.0.0-macos14-aarch64.tar.gz",
AutoSetting =
[
new PackageAutoSetting()
{
RelativePath = "ghdl-llvm-6.0.0-macos14-aarch64/bin/ghdl",
SettingKey = GhdlPathSetting
}
]
Expand Down Expand Up @@ -279,7 +327,7 @@

serviceProvider.Resolve<IPackageService>().RegisterPackage(GhdlPackage);

serviceProvider.Resolve<ISettingsService>().RegisterTitledFilePath("Simulator", "GHDL", GhdlPathSetting,

Check warning on line 330 in src/OneWare.GhdlExtension/GhdlExtensionModule.cs

View workflow job for this annotation

GitHub Actions / build

'ISettingsService.RegisterTitledFilePath(string, string, string, string, string, string, string?, string?, Func<string, bool>?, params FilePickerFileType[])' is obsolete: 'Use RegisterSetting instead'

Check warning on line 330 in src/OneWare.GhdlExtension/GhdlExtensionModule.cs

View workflow job for this annotation

GitHub Actions / build

'ISettingsService.RegisterTitledFilePath(string, string, string, string, string, string, string?, string?, Func<string, bool>?, params FilePickerFileType[])' is obsolete: 'Use RegisterSetting instead'
"GHDL Path", "Path for GHDL executable", "",
null, serviceProvider.Resolve<IPaths>().NativeToolsDirectory, File.Exists);

Expand Down Expand Up @@ -400,7 +448,7 @@
serviceProvider.Resolve<IProjectExplorerService>().RegisterConstructContextMenu(((list, models) =>
{
if (list[0] is IProjectFolder { Root: UniversalFpgaProjectRoot root } folder &&
folder.Children.Any(x => x is IProjectFile file))

Check warning on line 451 in src/OneWare.GhdlExtension/GhdlExtensionModule.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'source' in 'bool Enumerable.Any<IProjectExplorerNode>(IEnumerable<IProjectExplorerNode> source, Func<IProjectExplorerNode, bool> predicate)'.

Check warning on line 451 in src/OneWare.GhdlExtension/GhdlExtensionModule.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'source' in 'bool Enumerable.Any<IProjectExplorerNode>(IEnumerable<IProjectExplorerNode> source, Func<IProjectExplorerNode, bool> predicate)'.
{
IEnumerable<string>? libs = root.Properties.GetStringArray("GHDL_Libraries");

Expand Down Expand Up @@ -534,7 +582,7 @@
{
if (folder.Root is UniversalFpgaProjectRoot root)
{
foreach (var file in folder.Children.Where(x =>

Check warning on line 585 in src/OneWare.GhdlExtension/GhdlExtensionModule.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'source' in 'IEnumerable<IProjectExplorerNode> Enumerable.Where<IProjectExplorerNode>(IEnumerable<IProjectExplorerNode> source, Func<IProjectExplorerNode, bool> predicate)'.

Check warning on line 585 in src/OneWare.GhdlExtension/GhdlExtensionModule.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'source' in 'IEnumerable<IProjectExplorerNode> Enumerable.Where<IProjectExplorerNode>(IEnumerable<IProjectExplorerNode> source, Func<IProjectExplorerNode, bool> predicate)'.
x is IProjectFile { Extension: ".vhd" or ".vhdl" }))
{
await AddFileToLibraryAsync(library, (file as IProjectFile)!);
Expand Down
Loading