diff --git a/desktop/internal/core/build.go b/desktop/internal/core/build.go
index f2d2f255e2..63c22a3172 100644
--- a/desktop/internal/core/build.go
+++ b/desktop/internal/core/build.go
@@ -275,6 +275,8 @@ type buildOutcome struct {
Edit *BuildOptionEdit `json:"edit"`
// Discovery answers build.decodeTestDiscovery.
Discovery *BuildTestDiscovery `json:"discovery"`
+ // Tree answers build.modelTree.
+ Tree *BuildModelTree `json:"tree"`
}
func (o buildOutcome) failure(command string) error {
@@ -447,6 +449,83 @@ func (c *Client) DecodeBuildModel(ctx context.Context, manifest json.RawMessage,
return *result.Model, nil
}
+// BuildModelTreeRequest asks for the tree of one loaded model (build.modelTree): its projects
+// nested by parent, each with its tasks in folders, its dependencies and its targets. Query
+// narrows the tree to the nodes it matches; GroupHeadings labels the folder of each task group
+// in the user's language, and the query matches those labels too.
+type BuildModelTreeRequest struct {
+ Model BuildModelTreeInput `json:"model"`
+ Query string `json:"query,omitempty"`
+ GroupHeadings map[string]string `json:"groupHeadings,omitempty"`
+}
+
+// BuildModelTreeInput is the part of a decoded model the tree reads.
+type BuildModelTreeInput struct {
+ Projects []BuildProject `json:"projects"`
+ Targets []BuildTarget `json:"targets"`
+ Tasks []BuildTask `json:"tasks"`
+}
+
+// BuildModelTree is the Build tool window's tree of one instance. Project is the instance's
+// only root project, whose contents Nodes holds beside the instance's own; with several root
+// projects or none it is nil and Nodes holds the instance's nodes, then the root projects.
+// Truncated says Core cut a tree too large to show whole.
+type BuildModelTree struct {
+ Project *BuildTreeNode `json:"project"`
+ Nodes []BuildTreeNode `json:"nodes"`
+ Truncated bool `json:"truncated"`
+}
+
+// The kinds of a BuildTreeNode.
+const (
+ BuildTreeProject = "project"
+ BuildTreeFolder = "folder"
+ BuildTreeTask = "task"
+ BuildTreeTargets = "targets"
+ BuildTreeTarget = "target"
+ BuildTreeDependencies = "dependencies"
+ BuildTreeTests = "tests"
+)
+
+// BuildTreeNode is one node of a BuildModelTree. Key is unique in the instance and stable
+// across reloads and filters. ProjectID and TargetID are what a task runs on, empty for the
+// whole instance; TaskID is a declared or a model task. Group names the task group a folder
+// stands for, empty for a category folder. Matched marks a node the query matches itself.
+// Targets, dependencies and tests nodes have no label: the host names them.
+type BuildTreeNode struct {
+ Kind string `json:"kind"`
+ Key string `json:"key"`
+ Label string `json:"label"`
+ Detail string `json:"detail"`
+ Tooltip string `json:"tooltip"`
+ Group string `json:"group"`
+ ProjectID string `json:"projectID"`
+ TargetID string `json:"targetID"`
+ TaskID string `json:"taskID"`
+ Matched bool `json:"matched"`
+ Children []BuildTreeNode `json:"children"`
+}
+
+// BuildModelTree lays out the tree of one loaded model for the Build tool window.
+func (c *Client) BuildModelTree(ctx context.Context, manifest json.RawMessage, buildSystemID string, request BuildModelTreeRequest) (BuildModelTree, error) {
+ const command = "build.modelTree"
+ var result buildOutcome
+ if err := c.Execute(ctx, command, struct {
+ Manifest json.RawMessage `json:"manifest"`
+ BuildSystemID string `json:"buildSystemID"`
+ Request BuildModelTreeRequest `json:"request"`
+ }{manifest, buildSystemID, request}, &result); err != nil {
+ return BuildModelTree{}, err
+ }
+ if err := result.failure(command); err != nil {
+ return BuildModelTree{}, err
+ }
+ if result.Tree == nil {
+ return BuildModelTree{}, newParseError(command, "build model tree returned no tree", "")
+ }
+ return *result.Tree, nil
+}
+
// BuildDecodeDebugRequest validates the raw result of a provider's debug preparation. Run is
// the run declaration the preparation was planned for, whose `debug.adapter` Core answers.
// Native debug preparation takes no launch options, so the request carries none.
diff --git a/desktop/internal/fileicons/NOTICE b/desktop/internal/fileicons/NOTICE
index 21a39fa9fa..11e18ebed0 100644
--- a/desktop/internal/fileicons/NOTICE
+++ b/desktop/internal/fileicons/NOTICE
@@ -1,11 +1,12 @@
File-type and folder icons of the Lithe desktop client.
-The SVGs in svg/ are the file-tree icons the previous Lithe macOS client shipped in
+Most SVGs in svg/ are the file-tree icons the previous Lithe macOS client shipped in
macos/Resources/IDEAIcons/, restored byte for byte from commit f1e8d8139^ of this
-repository. Except for the two noted below, they come from the JetBrains IntelliJ
+repository; the Build tool window icons listed last were copied byte for byte from the
+upstream repository. Except for the two noted below, they come from the JetBrains IntelliJ
Platform Community repository (https://github.com/JetBrains/intellij-community) and are
distributed under the Apache License 2.0; see LICENSE-APACHE-2.0.txt. The previous
-client's NOTICE.txt records their source paths and revisions, chiefly:
+client's NOTICE.txt records the source paths and revisions of the restored icons, chiefly:
- fileTypes/*.svg: platform/icons/src/expui/fileTypes/ (revisions
e8d21e84ee23f99ae7237fbb4530ff2e7c3b47c5, c7f91397daa3a961b4e78bc634fe467a0a7d9ade,
@@ -30,6 +31,12 @@ client's NOTICE.txt records their source paths and revisions, chiefly:
db_muted_breakpoint.svg (and their _dark siblings): IntelliJ Community classic debugger icons
from platform/icons/src/debugger/ in the previous client's debugger/ assets (copyright headers
2000-2021 JetBrains); the previous NOTICE.txt did not record their source revision.
+- The Build tool window icons, each with its _dark sibling, from revision
+ 512e1e2ade0c185a1bf30e5286e5f45eef7351a4: taskGroup.svg from platform/icons/src/expui/build/
+ (the New UI form of the configFolder icon of IntelliJ's Maven and Gradle task folders);
+ module.svg, artifact.svg, library.svg, libraryFolder.svg and testGroup.svg from
+ platform/icons/src/expui/nodes/; task.svg from
+ platform/external-system-impl/resources/icons/newui/.
license.svg and makefile.svg (and their _dark siblings) are original Lithe icons,
because the Community set has no LICENSE or Makefile glyph; they follow the Lithe
diff --git a/desktop/internal/fileicons/fileicons.go b/desktop/internal/fileicons/fileicons.go
index 7271f105e5..b961406463 100644
--- a/desktop/internal/fileicons/fileicons.go
+++ b/desktop/internal/fileicons/fileicons.go
@@ -277,6 +277,53 @@ func ForBreakpoint(enabled, verified, muted, dark bool) gfx.Icon {
return iconForVariant(&DbSetBreakpoint, &DbSetBreakpointDark, dark)
}
+// BuildNode identifies a kind of row in the Build tool window's tree. Each kind draws the
+// IntelliJ New UI icon of the same node in IntelliJ's Maven and Gradle tool windows.
+type BuildNode uint8
+
+const (
+ // BuildProject is a project or module of a build system and is the zero value.
+ BuildProject BuildNode = iota
+ // BuildTaskFolder is a folder of tasks, such as a Maven project's Lifecycle or Plugins.
+ BuildTaskFolder
+ // BuildTask is a task.
+ BuildTask
+ // BuildTargets is the folder of a project's targets.
+ BuildTargets
+ // BuildTarget is a target that a build system builds.
+ BuildTarget
+ // BuildDependencies is the folder of a project's or a workspace's dependencies.
+ BuildDependencies
+ // BuildDependency is one dependency.
+ BuildDependency
+ // BuildTests is the folder of the tests a build system discovered.
+ BuildTests
+ // buildNodeCount is the number of build node kinds.
+ buildNodeCount
+)
+
+// buildNodeIcons stores the light and dark icon of each build node kind.
+var buildNodeIcons = [buildNodeCount][2]*gfx.Icon{
+ BuildProject: {&Module, &ModuleDark},
+ BuildTaskFolder: {&TaskGroup, &TaskGroupDark},
+ BuildTask: {&Task, &TaskDark},
+ BuildTargets: {&Folder, &FolderDark},
+ BuildTarget: {&Artifact, &ArtifactDark},
+ BuildDependencies: {&LibraryFolder, &LibraryFolderDark},
+ BuildDependency: {&Library, &LibraryDark},
+ BuildTests: {&TestGroup, &TestGroupDark},
+}
+
+// ForBuildNode returns the icon of a Build tool window row of the given kind, using its dark
+// variant when dark is set. An unknown kind gets the icon of a task folder.
+func ForBuildNode(node BuildNode, dark bool) gfx.Icon {
+ if node >= buildNodeCount {
+ node = BuildTaskFolder
+ }
+ variants := buildNodeIcons[node]
+ return iconForVariant(variants[0], variants[1], dark)
+}
+
// fileKind selects the icon family for a file basename.
func fileKind(name string) kind {
lowerName := strings.ToLower(name)
diff --git a/desktop/internal/fileicons/fileicons_test.go b/desktop/internal/fileicons/fileicons_test.go
index 51099ad014..f1deae2897 100644
--- a/desktop/internal/fileicons/fileicons_test.go
+++ b/desktop/internal/fileicons/fileicons_test.go
@@ -304,6 +304,33 @@ func TestForBreakpoint(t *testing.T) {
}
}
+// TestForBuildNode checks that every Build tool window row kind gets its own layered IntelliJ
+// icon in both looks, and that an unknown kind falls back to the task folder's.
+func TestForBuildNode(t *testing.T) {
+ cases := []struct {
+ node BuildNode
+ lightIcon *gfx.Icon
+ darkIcon *gfx.Icon
+ }{
+ {BuildProject, &Module, &ModuleDark},
+ {BuildTaskFolder, &TaskGroup, &TaskGroupDark},
+ {BuildTask, &Task, &TaskDark},
+ {BuildTargets, &Folder, &FolderDark},
+ {BuildTarget, &Artifact, &ArtifactDark},
+ {BuildDependencies, &LibraryFolder, &LibraryFolderDark},
+ {BuildDependency, &Library, &LibraryDark},
+ {BuildTests, &TestGroup, &TestGroupDark},
+ {buildNodeCount, &TaskGroup, &TaskGroupDark},
+ }
+ if len(cases) != int(buildNodeCount)+1 {
+ t.Fatalf("cases cover %d kinds; want all %d and an unknown one", len(cases), buildNodeCount)
+ }
+ for _, test := range cases {
+ requireGeneratedIcon(t, ForBuildNode(test.node, false), test.lightIcon)
+ requireGeneratedIcon(t, ForBuildNode(test.node, true), test.darkIcon)
+ }
+}
+
func requireGeneratedIcon(t *testing.T, got gfx.Icon, want *gfx.Icon) {
t.Helper()
if len(got.Layers) == 0 || len(want.Layers) == 0 || &got.Layers[0] != &want.Layers[0] {
diff --git a/desktop/internal/fileicons/icons.go b/desktop/internal/fileicons/icons.go
index 204d43ed43..e84f2d70f1 100644
--- a/desktop/internal/fileicons/icons.go
+++ b/desktop/internal/fileicons/icons.go
@@ -1,12 +1,13 @@
// Code generated by viva icons. DO NOT EDIT.
// File-type and folder icons of the Lithe desktop client.
//
-// The SVGs in svg/ are the file-tree icons the previous Lithe macOS client shipped in
+// Most SVGs in svg/ are the file-tree icons the previous Lithe macOS client shipped in
// macos/Resources/IDEAIcons/, restored byte for byte from commit f1e8d8139^ of this
-// repository. Except for the two noted below, they come from the JetBrains IntelliJ
+// repository; the Build tool window icons listed last were copied byte for byte from the
+// upstream repository. Except for the two noted below, they come from the JetBrains IntelliJ
// Platform Community repository (https://github.com/JetBrains/intellij-community) and are
// distributed under the Apache License 2.0; see LICENSE-APACHE-2.0.txt. The previous
-// client's NOTICE.txt records their source paths and revisions, chiefly:
+// client's NOTICE.txt records the source paths and revisions of the restored icons, chiefly:
//
// - fileTypes/*.svg: platform/icons/src/expui/fileTypes/ (revisions
// e8d21e84ee23f99ae7237fbb4530ff2e7c3b47c5, c7f91397daa3a961b4e78bc634fe467a0a7d9ade,
@@ -31,6 +32,12 @@
// db_muted_breakpoint.svg (and their _dark siblings): IntelliJ Community classic debugger icons
// from platform/icons/src/debugger/ in the previous client's debugger/ assets (copyright headers
// 2000-2021 JetBrains); the previous NOTICE.txt did not record their source revision.
+// - The Build tool window icons, each with its _dark sibling, from revision
+// 512e1e2ade0c185a1bf30e5286e5f45eef7351a4: taskGroup.svg from platform/icons/src/expui/build/
+// (the New UI form of the configFolder icon of IntelliJ's Maven and Gradle task folders);
+// module.svg, artifact.svg, library.svg, libraryFolder.svg and testGroup.svg from
+// platform/icons/src/expui/nodes/; task.svg from
+// platform/external-system-impl/resources/icons/newui/.
//
// license.svg and makefile.svg (and their _dark siblings) are original Lithe icons,
// because the Community set has no LICENSE or Makefile glyph; they follow the Lithe
@@ -239,6 +246,246 @@ var ArchiveDark = gfx.Icon{
},
}
+// artifact is a compiled vector icon.
+var Artifact = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.294, 6.709),
+ gfx.LineTo(5.293, 4.708),
+ gfx.CubicTo(4.902, 4.317, 4.902, 3.684, 5.293, 3.294),
+ gfx.LineTo(7.294, 1.293),
+ gfx.CubicTo(7.684, 0.902, 8.317, 0.902, 8.708, 1.293),
+ gfx.LineTo(10.709, 3.294),
+ gfx.CubicTo(11.099, 3.684, 11.099, 4.317, 10.709, 4.708),
+ gfx.LineTo(8.708, 6.709),
+ gfx.CubicTo(8.317, 7.099, 7.684, 7.099, 7.294, 6.709),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.294, 14.709),
+ gfx.LineTo(5.293, 12.708),
+ gfx.CubicTo(4.902, 12.317, 4.902, 11.684, 5.293, 11.294),
+ gfx.LineTo(7.294, 9.293),
+ gfx.CubicTo(7.684, 8.902, 8.317, 8.902, 8.708, 9.293),
+ gfx.LineTo(10.709, 11.294),
+ gfx.CubicTo(11.099, 11.684, 11.099, 12.317, 10.709, 12.708),
+ gfx.LineTo(8.708, 14.709),
+ gfx.CubicTo(8.317, 15.099, 7.684, 15.099, 7.294, 14.709),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.929412, Green: 0.952941, Blue: 1.0, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.293, 8.708),
+ gfx.LineTo(3.294, 10.709),
+ gfx.CubicTo(3.684, 11.099, 4.317, 11.099, 4.708, 10.709),
+ gfx.LineTo(6.709, 8.708),
+ gfx.CubicTo(7.099, 8.317, 7.099, 7.684, 6.709, 7.294),
+ gfx.LineTo(4.708, 5.293),
+ gfx.CubicTo(4.317, 4.902, 3.684, 4.902, 3.294, 5.293),
+ gfx.LineTo(1.293, 7.294),
+ gfx.CubicTo(0.902, 7.684, 0.902, 8.317, 1.293, 8.708),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.929412, Green: 0.952941, Blue: 1.0, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(9.293, 8.708),
+ gfx.LineTo(11.294, 10.709),
+ gfx.CubicTo(11.684, 11.099, 12.317, 11.099, 12.708, 10.709),
+ gfx.LineTo(14.709, 8.708),
+ gfx.CubicTo(15.099, 8.317, 15.099, 7.684, 14.709, 7.294),
+ gfx.LineTo(12.708, 5.293),
+ gfx.CubicTo(12.317, 4.902, 11.684, 4.902, 11.294, 5.293),
+ gfx.LineTo(9.293, 7.294),
+ gfx.CubicTo(8.902, 7.684, 8.902, 8.317, 9.293, 8.708),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.207843, Green: 0.454902, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.293, 8.708),
+ gfx.CubicTo(0.902, 8.317, 0.902, 7.684, 1.293, 7.294),
+ gfx.LineTo(3.294, 5.293),
+ gfx.CubicTo(3.684, 4.902, 4.317, 4.902, 4.708, 5.293),
+ gfx.LineTo(6.709, 7.294),
+ gfx.CubicTo(7.099, 7.684, 7.099, 8.317, 6.709, 8.708),
+ gfx.LineTo(4.708, 10.709),
+ gfx.CubicTo(4.317, 11.099, 3.684, 11.099, 3.294, 10.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(4.001, 10.002),
+ gfx.LineTo(6.002, 8.001),
+ gfx.LineTo(4.001, 6.0),
+ gfx.LineTo(2.0, 8.001),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.207843, Green: 0.454902, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(9.293, 8.708),
+ gfx.CubicTo(8.902, 8.317, 8.902, 7.684, 9.293, 7.294),
+ gfx.LineTo(11.294, 5.293),
+ gfx.CubicTo(11.684, 4.902, 12.317, 4.902, 12.708, 5.293),
+ gfx.LineTo(14.709, 7.294),
+ gfx.CubicTo(15.099, 7.684, 15.099, 8.317, 14.709, 8.708),
+ gfx.LineTo(12.708, 10.709),
+ gfx.CubicTo(12.317, 11.099, 11.684, 11.099, 11.294, 10.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(12.001, 10.002),
+ gfx.LineTo(14.002, 8.001),
+ gfx.LineTo(12.001, 6.0),
+ gfx.LineTo(10.0, 8.001),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(5.293, 12.708),
+ gfx.CubicTo(4.902, 12.317, 4.902, 11.684, 5.293, 11.294),
+ gfx.LineTo(7.294, 9.293),
+ gfx.CubicTo(7.684, 8.902, 8.317, 8.902, 8.708, 9.293),
+ gfx.LineTo(10.709, 11.294),
+ gfx.CubicTo(11.099, 11.684, 11.099, 12.317, 10.709, 12.708),
+ gfx.LineTo(8.708, 14.709),
+ gfx.CubicTo(8.317, 15.099, 7.684, 15.099, 7.294, 14.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(5.293, 4.708),
+ gfx.CubicTo(4.902, 4.317, 4.902, 3.684, 5.293, 3.294),
+ gfx.LineTo(7.294, 1.293),
+ gfx.CubicTo(7.684, 0.902, 8.317, 0.902, 8.708, 1.293),
+ gfx.LineTo(10.709, 3.294),
+ gfx.CubicTo(11.099, 3.684, 11.099, 4.317, 10.709, 4.708),
+ gfx.LineTo(8.708, 6.709),
+ gfx.CubicTo(8.317, 7.099, 7.684, 7.099, 7.294, 6.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(8.001, 14.002),
+ gfx.LineTo(10.002, 12.001),
+ gfx.LineTo(8.001, 10.0),
+ gfx.LineTo(6.0, 12.001),
+ gfx.ClosePath(),
+ gfx.MoveTo(8.001, 6.002),
+ gfx.LineTo(10.002, 4.001),
+ gfx.LineTo(8.001, 2.0),
+ gfx.LineTo(6.0, 4.001),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// artifact-dark is a compiled vector icon.
+var ArtifactDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.294, 6.709),
+ gfx.LineTo(5.293, 4.708),
+ gfx.CubicTo(4.902, 4.317, 4.902, 3.684, 5.293, 3.294),
+ gfx.LineTo(7.294, 1.293),
+ gfx.CubicTo(7.684, 0.902, 8.317, 0.902, 8.708, 1.293),
+ gfx.LineTo(10.709, 3.294),
+ gfx.CubicTo(11.099, 3.684, 11.099, 4.317, 10.709, 4.708),
+ gfx.LineTo(8.708, 6.709),
+ gfx.CubicTo(8.317, 7.099, 7.684, 7.099, 7.294, 6.709),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.294, 14.709),
+ gfx.LineTo(5.293, 12.708),
+ gfx.CubicTo(4.902, 12.317, 4.902, 11.684, 5.293, 11.294),
+ gfx.LineTo(7.294, 9.293),
+ gfx.CubicTo(7.684, 8.902, 8.317, 8.902, 8.708, 9.293),
+ gfx.LineTo(10.709, 11.294),
+ gfx.CubicTo(11.099, 11.684, 11.099, 12.317, 10.709, 12.708),
+ gfx.LineTo(8.708, 14.709),
+ gfx.CubicTo(8.317, 15.099, 7.684, 15.099, 7.294, 14.709),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.145098, Green: 0.196078, Blue: 0.301961, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.293, 8.708),
+ gfx.LineTo(3.294, 10.709),
+ gfx.CubicTo(3.684, 11.099, 4.317, 11.099, 4.708, 10.709),
+ gfx.LineTo(6.709, 8.708),
+ gfx.CubicTo(7.099, 8.317, 7.099, 7.684, 6.709, 7.294),
+ gfx.LineTo(4.708, 5.293),
+ gfx.CubicTo(4.317, 4.902, 3.684, 4.902, 3.294, 5.293),
+ gfx.LineTo(1.293, 7.294),
+ gfx.CubicTo(0.902, 7.684, 0.902, 8.317, 1.293, 8.708),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.145098, Green: 0.196078, Blue: 0.301961, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(9.293, 8.708),
+ gfx.LineTo(11.294, 10.709),
+ gfx.CubicTo(11.684, 11.099, 12.317, 11.099, 12.708, 10.709),
+ gfx.LineTo(14.709, 8.708),
+ gfx.CubicTo(15.099, 8.317, 15.099, 7.684, 14.709, 7.294),
+ gfx.LineTo(12.708, 5.293),
+ gfx.CubicTo(12.317, 4.902, 11.684, 4.902, 11.294, 5.293),
+ gfx.LineTo(9.293, 7.294),
+ gfx.CubicTo(8.902, 7.684, 8.902, 8.317, 9.293, 8.708),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.329412, Green: 0.541176, Blue: 0.968627, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.293, 8.708),
+ gfx.CubicTo(0.902, 8.317, 0.902, 7.684, 1.293, 7.294),
+ gfx.LineTo(3.294, 5.293),
+ gfx.CubicTo(3.684, 4.902, 4.317, 4.902, 4.708, 5.293),
+ gfx.LineTo(6.709, 7.294),
+ gfx.CubicTo(7.099, 7.684, 7.099, 8.317, 6.709, 8.708),
+ gfx.LineTo(4.708, 10.709),
+ gfx.CubicTo(4.317, 11.099, 3.684, 11.099, 3.294, 10.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(4.001, 10.002),
+ gfx.LineTo(6.002, 8.001),
+ gfx.LineTo(4.001, 6.0),
+ gfx.LineTo(2.0, 8.001),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.329412, Green: 0.541176, Blue: 0.968627, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(9.293, 8.708),
+ gfx.CubicTo(8.902, 8.317, 8.902, 7.684, 9.293, 7.294),
+ gfx.LineTo(11.294, 5.293),
+ gfx.CubicTo(11.684, 4.902, 12.317, 4.902, 12.708, 5.293),
+ gfx.LineTo(14.709, 7.294),
+ gfx.CubicTo(15.099, 7.684, 15.099, 8.317, 14.709, 8.708),
+ gfx.LineTo(12.708, 10.709),
+ gfx.CubicTo(12.317, 11.099, 11.684, 11.099, 11.294, 10.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(12.001, 10.002),
+ gfx.LineTo(14.002, 8.001),
+ gfx.LineTo(12.001, 6.0),
+ gfx.LineTo(10.0, 8.001),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(5.293, 12.708),
+ gfx.CubicTo(4.902, 12.317, 4.902, 11.684, 5.293, 11.294),
+ gfx.LineTo(7.294, 9.293),
+ gfx.CubicTo(7.684, 8.902, 8.317, 8.902, 8.708, 9.293),
+ gfx.LineTo(10.709, 11.294),
+ gfx.CubicTo(11.099, 11.684, 11.099, 12.317, 10.709, 12.708),
+ gfx.LineTo(8.708, 14.709),
+ gfx.CubicTo(8.317, 15.099, 7.684, 15.099, 7.294, 14.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(5.293, 4.708),
+ gfx.CubicTo(4.902, 4.317, 4.902, 3.684, 5.293, 3.294),
+ gfx.LineTo(7.294, 1.293),
+ gfx.CubicTo(7.684, 0.902, 8.317, 0.902, 8.708, 1.293),
+ gfx.LineTo(10.709, 3.294),
+ gfx.CubicTo(11.099, 3.684, 11.099, 4.317, 10.709, 4.708),
+ gfx.LineTo(8.708, 6.709),
+ gfx.CubicTo(8.317, 7.099, 7.684, 7.099, 7.294, 6.709),
+ gfx.ClosePath(),
+ gfx.MoveTo(8.001, 14.002),
+ gfx.LineTo(10.002, 12.001),
+ gfx.LineTo(8.001, 10.0),
+ gfx.LineTo(6.0, 12.001),
+ gfx.ClosePath(),
+ gfx.MoveTo(8.001, 6.002),
+ gfx.LineTo(10.002, 4.001),
+ gfx.LineTo(8.001, 2.0),
+ gfx.LineTo(6.0, 4.001),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
// c is a compiled vector icon.
var C = gfx.Icon{
ViewBox: 16.0,
@@ -3365,171 +3612,525 @@ var Kotlin = gfx.Icon{
},
}
-// license is a compiled vector icon.
-var License = gfx.Icon{
+// library is a compiled vector icon.
+var Library = gfx.Icon{
ViewBox: 16.0,
Stroke: 2.0,
Cap: gfx.CapRound,
Join: gfx.JoinRound,
Layers: []gfx.IconLayer{
- {Fill: gfx.Color{Red: 0.858824, Green: 0.231373, Blue: 0.294118, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(13.0, 6.5),
- gfx.QuadTo(13.0, 8.571, 11.536, 10.036),
- gfx.QuadTo(10.071, 11.5, 8.0, 11.5),
- gfx.QuadTo(5.929, 11.5, 4.464, 10.036),
- gfx.QuadTo(3.0, 8.571, 3.0, 6.5),
- gfx.QuadTo(3.0, 4.429, 4.464, 2.964),
- gfx.QuadTo(5.929, 1.5, 8.0, 1.5),
- gfx.QuadTo(10.071, 1.5, 11.536, 2.964),
- gfx.QuadTo(13.0, 4.429, 13.0, 6.5),
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 6.0),
+ gfx.LineTo(14.0, 6.0),
+ gfx.CubicTo(14.552, 6.0, 15.0, 6.448, 15.0, 7.0),
+ gfx.LineTo(15.0, 13.0),
+ gfx.CubicTo(15.0, 13.552, 14.552, 14.0, 14.0, 14.0),
+ gfx.LineTo(3.0, 14.0),
+ gfx.CubicTo(2.448, 14.0, 2.0, 13.552, 2.0, 13.0),
+ gfx.LineTo(2.0, 5.0),
+ gfx.CubicTo(2.0, 4.448, 2.448, 4.0, 3.0, 4.0),
+ gfx.LineTo(6.0, 4.0),
+ gfx.LineTo(6.0, 3.0),
+ gfx.CubicTo(6.0, 2.448, 6.448, 2.0, 7.0, 2.0),
+ gfx.LineTo(10.0, 2.0),
+ gfx.CubicTo(10.552, 2.0, 11.0, 2.448, 11.0, 3.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(10.0, 3.0),
+ gfx.LineTo(7.0, 3.0),
+ gfx.LineTo(7.0, 13.0),
+ gfx.LineTo(10.0, 13.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(6.0, 5.0),
+ gfx.LineTo(3.0, 5.0),
+ gfx.LineTo(3.0, 13.0),
+ gfx.LineTo(6.0, 13.0),
gfx.ClosePath(),
- gfx.MoveTo(12.0, 6.5),
- gfx.QuadTo(12.0, 2.5, 8.0, 2.5),
- gfx.QuadTo(4.0, 2.5, 4.0, 6.5),
- gfx.QuadTo(4.0, 10.5, 8.0, 10.5),
- gfx.QuadTo(12.0, 10.5, 12.0, 6.5),
+ gfx.MoveTo(11.0, 7.0),
+ gfx.LineTo(11.0, 13.0),
+ gfx.LineTo(14.0, 13.0),
+ gfx.LineTo(14.0, 7.0),
gfx.ClosePath(),
}},
- {Fill: gfx.Color{Red: 0.858824, Green: 0.231373, Blue: 0.294118, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(10.0, 6.5),
- gfx.CubicTo(10.0, 7.60457, 9.10457, 8.5, 8.0, 8.5),
- gfx.CubicTo(6.89543, 8.5, 6.0, 7.60457, 6.0, 6.5),
- gfx.CubicTo(6.0, 5.39543, 6.89543, 4.5, 8.0, 4.5),
- gfx.CubicTo(9.10457, 4.5, 10.0, 5.39543, 10.0, 6.5),
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.0, 3.0),
+ gfx.LineTo(10.0, 3.0),
+ gfx.LineTo(10.0, 13.0),
+ gfx.LineTo(7.0, 13.0),
+ gfx.LineTo(7.0, 3.0),
gfx.ClosePath(),
}},
- {Fill: gfx.Color{Red: 0.858824, Green: 0.231373, Blue: 0.294118, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(6.0, 10.3),
- gfx.LineTo(6.0, 13.867),
- gfx.LineTo(7.743, 12.821),
- gfx.QuadTo(8.0, 12.667, 8.257, 12.821),
- gfx.LineTo(10.0, 13.867),
- gfx.LineTo(10.0, 10.3),
- gfx.LineTo(11.0, 10.3),
- gfx.LineTo(11.0, 14.75),
- gfx.QuadTo(11.0, 14.888, 10.929, 15.007),
- gfx.QuadTo(10.822, 15.185, 10.621, 15.235),
- gfx.QuadTo(10.42, 15.285, 10.243, 15.179),
- gfx.LineTo(8.0, 13.833),
- gfx.LineTo(5.757, 15.179),
- gfx.QuadTo(5.638, 15.25, 5.5, 15.25),
- gfx.QuadTo(5.293, 15.25, 5.146, 15.104),
- gfx.QuadTo(5.0, 14.957, 5.0, 14.75),
- gfx.LineTo(5.0, 10.3),
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 13.0),
+ gfx.LineTo(11.0, 7.0),
+ gfx.LineTo(14.0, 7.0),
+ gfx.LineTo(14.0, 13.0),
+ gfx.LineTo(11.0, 13.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.0, 13.0),
+ gfx.LineTo(6.0, 5.0),
+ gfx.LineTo(3.0, 5.0),
+ gfx.LineTo(3.0, 13.0),
+ gfx.LineTo(6.0, 13.0),
gfx.ClosePath(),
}},
},
}
-// license-dark is a compiled vector icon.
-var LicenseDark = gfx.Icon{
+// library-dark is a compiled vector icon.
+var LibraryDark = gfx.Icon{
ViewBox: 16.0,
Stroke: 2.0,
Cap: gfx.CapRound,
Join: gfx.JoinRound,
Layers: []gfx.IconLayer{
- {Fill: gfx.Color{Red: 0.858824, Green: 0.360784, Blue: 0.360784, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(13.0, 6.5),
- gfx.QuadTo(13.0, 8.571, 11.536, 10.036),
- gfx.QuadTo(10.071, 11.5, 8.0, 11.5),
- gfx.QuadTo(5.929, 11.5, 4.464, 10.036),
- gfx.QuadTo(3.0, 8.571, 3.0, 6.5),
- gfx.QuadTo(3.0, 4.429, 4.464, 2.964),
- gfx.QuadTo(5.929, 1.5, 8.0, 1.5),
- gfx.QuadTo(10.071, 1.5, 11.536, 2.964),
- gfx.QuadTo(13.0, 4.429, 13.0, 6.5),
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 6.0),
+ gfx.LineTo(14.0, 6.0),
+ gfx.CubicTo(14.552, 6.0, 15.0, 6.448, 15.0, 7.0),
+ gfx.LineTo(15.0, 13.0),
+ gfx.CubicTo(15.0, 13.552, 14.552, 14.0, 14.0, 14.0),
+ gfx.LineTo(3.0, 14.0),
+ gfx.CubicTo(2.448, 14.0, 2.0, 13.552, 2.0, 13.0),
+ gfx.LineTo(2.0, 5.0),
+ gfx.CubicTo(2.0, 4.448, 2.448, 4.0, 3.0, 4.0),
+ gfx.LineTo(6.0, 4.0),
+ gfx.LineTo(6.0, 3.0),
+ gfx.CubicTo(6.0, 2.448, 6.448, 2.0, 7.0, 2.0),
+ gfx.LineTo(10.0, 2.0),
+ gfx.CubicTo(10.552, 2.0, 11.0, 2.448, 11.0, 3.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(10.0, 3.0),
+ gfx.LineTo(7.0, 3.0),
+ gfx.LineTo(7.0, 13.0),
+ gfx.LineTo(10.0, 13.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(6.0, 5.0),
+ gfx.LineTo(3.0, 5.0),
+ gfx.LineTo(3.0, 13.0),
+ gfx.LineTo(6.0, 13.0),
gfx.ClosePath(),
- gfx.MoveTo(12.0, 6.5),
- gfx.QuadTo(12.0, 2.5, 8.0, 2.5),
- gfx.QuadTo(4.0, 2.5, 4.0, 6.5),
- gfx.QuadTo(4.0, 10.5, 8.0, 10.5),
- gfx.QuadTo(12.0, 10.5, 12.0, 6.5),
+ gfx.MoveTo(11.0, 7.0),
+ gfx.LineTo(11.0, 13.0),
+ gfx.LineTo(14.0, 13.0),
+ gfx.LineTo(14.0, 7.0),
gfx.ClosePath(),
}},
- {Fill: gfx.Color{Red: 0.858824, Green: 0.360784, Blue: 0.360784, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(10.0, 6.5),
- gfx.CubicTo(10.0, 7.60457, 9.10457, 8.5, 8.0, 8.5),
- gfx.CubicTo(6.89543, 8.5, 6.0, 7.60457, 6.0, 6.5),
- gfx.CubicTo(6.0, 5.39543, 6.89543, 4.5, 8.0, 4.5),
- gfx.CubicTo(9.10457, 4.5, 10.0, 5.39543, 10.0, 6.5),
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.0, 3.0),
+ gfx.LineTo(10.0, 3.0),
+ gfx.LineTo(10.0, 13.0),
+ gfx.LineTo(7.0, 13.0),
+ gfx.LineTo(7.0, 3.0),
gfx.ClosePath(),
}},
- {Fill: gfx.Color{Red: 0.858824, Green: 0.360784, Blue: 0.360784, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(6.0, 10.3),
- gfx.LineTo(6.0, 13.867),
- gfx.LineTo(7.743, 12.821),
- gfx.QuadTo(8.0, 12.667, 8.257, 12.821),
- gfx.LineTo(10.0, 13.867),
- gfx.LineTo(10.0, 10.3),
- gfx.LineTo(11.0, 10.3),
- gfx.LineTo(11.0, 14.75),
- gfx.QuadTo(11.0, 14.888, 10.929, 15.007),
- gfx.QuadTo(10.822, 15.185, 10.621, 15.235),
- gfx.QuadTo(10.42, 15.285, 10.243, 15.179),
- gfx.LineTo(8.0, 13.833),
- gfx.LineTo(5.757, 15.179),
- gfx.QuadTo(5.638, 15.25, 5.5, 15.25),
- gfx.QuadTo(5.293, 15.25, 5.146, 15.104),
- gfx.QuadTo(5.0, 14.957, 5.0, 14.75),
- gfx.LineTo(5.0, 10.3),
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 13.0),
+ gfx.LineTo(11.0, 7.0),
+ gfx.LineTo(14.0, 7.0),
+ gfx.LineTo(14.0, 13.0),
+ gfx.LineTo(11.0, 13.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.0, 13.0),
+ gfx.LineTo(6.0, 5.0),
+ gfx.LineTo(3.0, 5.0),
+ gfx.LineTo(3.0, 13.0),
+ gfx.LineTo(6.0, 13.0),
gfx.ClosePath(),
}},
},
}
-// lock is a compiled vector icon.
-var Lock = gfx.Icon{
+// libraryFolder is a compiled vector icon.
+var LibraryFolder = gfx.Icon{
ViewBox: 16.0,
Stroke: 2.0,
Cap: gfx.CapRound,
Join: gfx.JoinRound,
Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(2.75, 2.0),
+ gfx.CubicTo(1.784, 2.0, 1.0, 2.836, 1.0, 3.867),
+ gfx.LineTo(1.0, 12.133),
+ gfx.CubicTo(1.0, 13.164, 1.784, 14.0, 2.75, 14.0),
+ gfx.LineTo(7.0, 14.0),
+ gfx.LineTo(7.0, 10.0),
+ gfx.CubicTo(7.0, 8.895, 7.895, 8.0, 9.0, 8.0),
+ gfx.LineTo(9.268, 8.0),
+ gfx.CubicTo(9.613, 7.402, 10.26, 7.0, 11.0, 7.0),
+ gfx.LineTo(12.0, 7.0),
+ gfx.CubicTo(13.105, 7.0, 14.0, 7.895, 14.0, 9.0),
+ gfx.CubicTo(14.364, 9.0, 14.706, 9.097, 15.0, 9.268),
+ gfx.LineTo(15.0, 6.0),
+ gfx.CubicTo(15.0, 4.895, 14.105, 4.0, 13.0, 4.0),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(6.736, 2.283),
+ gfx.CubicTo(6.549, 2.102, 6.299, 2.0, 6.038, 2.0),
+ gfx.LineTo(2.75, 2.0),
+ gfx.ClosePath(),
+ }},
{Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(5.0, 5.0),
- gfx.CubicTo(5.0, 3.343, 6.343, 2.0, 8.0, 2.0),
- gfx.CubicTo(9.657, 2.0, 11.0, 3.343, 11.0, 5.0),
- gfx.LineTo(11.0, 6.0),
- gfx.CubicTo(12.105, 6.0, 13.0, 6.895, 13.0, 8.0),
- gfx.LineTo(13.0, 12.0),
- gfx.CubicTo(13.0, 13.105, 12.105, 14.0, 11.0, 14.0),
- gfx.LineTo(5.0, 14.0),
- gfx.CubicTo(3.895, 14.0, 3.0, 13.105, 3.0, 12.0),
- gfx.LineTo(3.0, 8.0),
- gfx.CubicTo(3.0, 6.895, 3.895, 6.0, 5.0, 6.0),
+ gfx.MoveTo(13.0, 5.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.LineTo(6.038, 3.0),
+ gfx.LineTo(2.75, 3.0),
+ gfx.CubicTo(2.396, 3.0, 2.0, 3.326, 2.0, 3.867),
+ gfx.LineTo(2.0, 12.133),
+ gfx.CubicTo(2.0, 12.674, 2.396, 13.0, 2.75, 13.0),
+ gfx.LineTo(7.0, 13.0),
+ gfx.LineTo(7.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.784, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.784, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 9.268),
+ gfx.CubicTo(14.706, 9.097, 14.364, 9.0, 14.0, 9.0),
+ gfx.LineTo(14.0, 6.0),
+ gfx.CubicTo(14.0, 5.448, 13.552, 5.0, 13.0, 5.0),
gfx.ClosePath(),
- gfx.MoveTo(5.0, 7.0),
- gfx.CubicTo(4.448, 7.0, 4.0, 7.448, 4.0, 8.0),
- gfx.LineTo(4.0, 12.0),
- gfx.CubicTo(4.0, 12.552, 4.448, 13.0, 5.0, 13.0),
- gfx.LineTo(11.0, 13.0),
- gfx.CubicTo(11.552, 13.0, 12.0, 12.552, 12.0, 12.0),
- gfx.LineTo(12.0, 8.0),
- gfx.CubicTo(12.0, 7.448, 11.552, 7.0, 11.0, 7.0),
+ }},
+ {Fill: gfx.Color{Red: 0.929412, Green: 0.952941, Blue: 1.0, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 9.0),
+ gfx.LineTo(12.0, 9.0),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(11.0, 14.0),
+ gfx.LineTo(11.0, 9.0),
gfx.ClosePath(),
- gfx.MoveTo(10.0, 5.0),
- gfx.CubicTo(10.0, 3.895, 9.105, 3.0, 8.0, 3.0),
- gfx.CubicTo(6.895, 3.0, 6.0, 3.895, 6.0, 5.0),
- gfx.LineTo(6.0, 6.0),
- gfx.LineTo(10.0, 6.0),
+ }},
+ {Fill: gfx.Color{Red: 0.929412, Green: 0.952941, Blue: 1.0, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(9.0, 10.0),
+ gfx.LineTo(10.0, 10.0),
+ gfx.LineTo(10.0, 14.0),
+ gfx.LineTo(9.0, 14.0),
+ gfx.LineTo(9.0, 10.0),
gfx.ClosePath(),
- gfx.MoveTo(8.0, 8.5),
- gfx.CubicTo(8.276, 8.5, 8.5, 8.724, 8.5, 9.0),
- gfx.LineTo(8.5, 11.0),
- gfx.CubicTo(8.5, 11.276, 8.276, 11.5, 8.0, 11.5),
- gfx.CubicTo(7.724, 11.5, 7.5, 11.276, 7.5, 11.0),
- gfx.LineTo(7.5, 9.0),
- gfx.CubicTo(7.5, 8.724, 7.724, 8.5, 8.0, 8.5),
+ }},
+ {Fill: gfx.Color{Red: 0.929412, Green: 0.952941, Blue: 1.0, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(14.0, 11.0),
+ gfx.LineTo(13.0, 11.0),
+ gfx.LineTo(13.0, 14.0),
+ gfx.LineTo(14.0, 14.0),
+ gfx.LineTo(14.0, 11.0),
gfx.ClosePath(),
}},
- },
-}
-
-// lock-dark is a compiled vector icon.
-var LockDark = gfx.Icon{
- ViewBox: 16.0,
- Stroke: 2.0,
- Cap: gfx.CapRound,
- Join: gfx.JoinRound,
+ {Fill: gfx.Color{Red: 0.207843, Green: 0.454902, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(10.0, 9.0),
+ gfx.CubicTo(10.0, 8.448, 10.448, 8.0, 11.0, 8.0),
+ gfx.LineTo(12.0, 8.0),
+ gfx.CubicTo(12.552, 8.0, 13.0, 8.448, 13.0, 9.0),
+ gfx.LineTo(13.0, 10.0),
+ gfx.LineTo(14.0, 10.0),
+ gfx.CubicTo(14.552, 10.0, 15.0, 10.448, 15.0, 11.0),
+ gfx.LineTo(15.0, 14.0),
+ gfx.CubicTo(15.0, 14.552, 14.552, 15.0, 14.0, 15.0),
+ gfx.LineTo(9.0, 15.0),
+ gfx.CubicTo(8.448, 15.0, 8.0, 14.552, 8.0, 14.0),
+ gfx.LineTo(8.0, 10.0),
+ gfx.CubicTo(8.0, 9.448, 8.448, 9.0, 9.0, 9.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(11.0, 9.0),
+ gfx.LineTo(11.0, 14.0),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(12.0, 9.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(10.0, 10.0),
+ gfx.LineTo(9.0, 10.0),
+ gfx.LineTo(9.0, 14.0),
+ gfx.LineTo(10.0, 14.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(13.0, 14.0),
+ gfx.LineTo(14.0, 14.0),
+ gfx.LineTo(14.0, 11.0),
+ gfx.LineTo(13.0, 11.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// libraryFolder-dark is a compiled vector icon.
+var LibraryFolderDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(2.75, 2.0),
+ gfx.CubicTo(1.784, 2.0, 1.0, 2.836, 1.0, 3.867),
+ gfx.LineTo(1.0, 12.133),
+ gfx.CubicTo(1.0, 13.164, 1.784, 14.0, 2.75, 14.0),
+ gfx.LineTo(7.0, 14.0),
+ gfx.LineTo(7.0, 10.0),
+ gfx.CubicTo(7.0, 8.895, 7.895, 8.0, 9.0, 8.0),
+ gfx.LineTo(9.268, 8.0),
+ gfx.CubicTo(9.613, 7.402, 10.26, 7.0, 11.0, 7.0),
+ gfx.LineTo(12.0, 7.0),
+ gfx.CubicTo(13.105, 7.0, 14.0, 7.895, 14.0, 9.0),
+ gfx.CubicTo(14.364, 9.0, 14.706, 9.097, 15.0, 9.268),
+ gfx.LineTo(15.0, 6.0),
+ gfx.CubicTo(15.0, 4.895, 14.105, 4.0, 13.0, 4.0),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(6.736, 2.283),
+ gfx.CubicTo(6.549, 2.102, 6.299, 2.0, 6.038, 2.0),
+ gfx.LineTo(2.75, 2.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(13.0, 5.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.LineTo(6.038, 3.0),
+ gfx.LineTo(2.75, 3.0),
+ gfx.CubicTo(2.396, 3.0, 2.0, 3.326, 2.0, 3.867),
+ gfx.LineTo(2.0, 12.133),
+ gfx.CubicTo(2.0, 12.674, 2.396, 13.0, 2.75, 13.0),
+ gfx.LineTo(7.0, 13.0),
+ gfx.LineTo(7.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.784, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.784, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 9.268),
+ gfx.CubicTo(14.706, 9.097, 14.364, 9.0, 14.0, 9.0),
+ gfx.LineTo(14.0, 6.0),
+ gfx.CubicTo(14.0, 5.448, 13.552, 5.0, 13.0, 5.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.145098, Green: 0.196078, Blue: 0.301961, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 9.0),
+ gfx.LineTo(12.0, 9.0),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(11.0, 14.0),
+ gfx.LineTo(11.0, 9.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.145098, Green: 0.196078, Blue: 0.301961, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(9.0, 10.0),
+ gfx.LineTo(10.0, 10.0),
+ gfx.LineTo(10.0, 14.0),
+ gfx.LineTo(9.0, 14.0),
+ gfx.LineTo(9.0, 10.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.145098, Green: 0.196078, Blue: 0.301961, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(14.0, 11.0),
+ gfx.LineTo(13.0, 11.0),
+ gfx.LineTo(13.0, 14.0),
+ gfx.LineTo(14.0, 14.0),
+ gfx.LineTo(14.0, 11.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.329412, Green: 0.541176, Blue: 0.968627, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(10.0, 9.0),
+ gfx.CubicTo(10.0, 8.448, 10.448, 8.0, 11.0, 8.0),
+ gfx.LineTo(12.0, 8.0),
+ gfx.CubicTo(12.552, 8.0, 13.0, 8.448, 13.0, 9.0),
+ gfx.LineTo(13.0, 10.0),
+ gfx.LineTo(14.0, 10.0),
+ gfx.CubicTo(14.552, 10.0, 15.0, 10.448, 15.0, 11.0),
+ gfx.LineTo(15.0, 14.0),
+ gfx.CubicTo(15.0, 14.552, 14.552, 15.0, 14.0, 15.0),
+ gfx.LineTo(9.0, 15.0),
+ gfx.CubicTo(8.448, 15.0, 8.0, 14.552, 8.0, 14.0),
+ gfx.LineTo(8.0, 10.0),
+ gfx.CubicTo(8.0, 9.448, 8.448, 9.0, 9.0, 9.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(11.0, 9.0),
+ gfx.LineTo(11.0, 14.0),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(12.0, 9.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(10.0, 10.0),
+ gfx.LineTo(9.0, 10.0),
+ gfx.LineTo(9.0, 14.0),
+ gfx.LineTo(10.0, 14.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(13.0, 14.0),
+ gfx.LineTo(14.0, 14.0),
+ gfx.LineTo(14.0, 11.0),
+ gfx.LineTo(13.0, 11.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// license is a compiled vector icon.
+var License = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.858824, Green: 0.231373, Blue: 0.294118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(13.0, 6.5),
+ gfx.QuadTo(13.0, 8.571, 11.536, 10.036),
+ gfx.QuadTo(10.071, 11.5, 8.0, 11.5),
+ gfx.QuadTo(5.929, 11.5, 4.464, 10.036),
+ gfx.QuadTo(3.0, 8.571, 3.0, 6.5),
+ gfx.QuadTo(3.0, 4.429, 4.464, 2.964),
+ gfx.QuadTo(5.929, 1.5, 8.0, 1.5),
+ gfx.QuadTo(10.071, 1.5, 11.536, 2.964),
+ gfx.QuadTo(13.0, 4.429, 13.0, 6.5),
+ gfx.ClosePath(),
+ gfx.MoveTo(12.0, 6.5),
+ gfx.QuadTo(12.0, 2.5, 8.0, 2.5),
+ gfx.QuadTo(4.0, 2.5, 4.0, 6.5),
+ gfx.QuadTo(4.0, 10.5, 8.0, 10.5),
+ gfx.QuadTo(12.0, 10.5, 12.0, 6.5),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.858824, Green: 0.231373, Blue: 0.294118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(10.0, 6.5),
+ gfx.CubicTo(10.0, 7.60457, 9.10457, 8.5, 8.0, 8.5),
+ gfx.CubicTo(6.89543, 8.5, 6.0, 7.60457, 6.0, 6.5),
+ gfx.CubicTo(6.0, 5.39543, 6.89543, 4.5, 8.0, 4.5),
+ gfx.CubicTo(9.10457, 4.5, 10.0, 5.39543, 10.0, 6.5),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.858824, Green: 0.231373, Blue: 0.294118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.0, 10.3),
+ gfx.LineTo(6.0, 13.867),
+ gfx.LineTo(7.743, 12.821),
+ gfx.QuadTo(8.0, 12.667, 8.257, 12.821),
+ gfx.LineTo(10.0, 13.867),
+ gfx.LineTo(10.0, 10.3),
+ gfx.LineTo(11.0, 10.3),
+ gfx.LineTo(11.0, 14.75),
+ gfx.QuadTo(11.0, 14.888, 10.929, 15.007),
+ gfx.QuadTo(10.822, 15.185, 10.621, 15.235),
+ gfx.QuadTo(10.42, 15.285, 10.243, 15.179),
+ gfx.LineTo(8.0, 13.833),
+ gfx.LineTo(5.757, 15.179),
+ gfx.QuadTo(5.638, 15.25, 5.5, 15.25),
+ gfx.QuadTo(5.293, 15.25, 5.146, 15.104),
+ gfx.QuadTo(5.0, 14.957, 5.0, 14.75),
+ gfx.LineTo(5.0, 10.3),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// license-dark is a compiled vector icon.
+var LicenseDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.858824, Green: 0.360784, Blue: 0.360784, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(13.0, 6.5),
+ gfx.QuadTo(13.0, 8.571, 11.536, 10.036),
+ gfx.QuadTo(10.071, 11.5, 8.0, 11.5),
+ gfx.QuadTo(5.929, 11.5, 4.464, 10.036),
+ gfx.QuadTo(3.0, 8.571, 3.0, 6.5),
+ gfx.QuadTo(3.0, 4.429, 4.464, 2.964),
+ gfx.QuadTo(5.929, 1.5, 8.0, 1.5),
+ gfx.QuadTo(10.071, 1.5, 11.536, 2.964),
+ gfx.QuadTo(13.0, 4.429, 13.0, 6.5),
+ gfx.ClosePath(),
+ gfx.MoveTo(12.0, 6.5),
+ gfx.QuadTo(12.0, 2.5, 8.0, 2.5),
+ gfx.QuadTo(4.0, 2.5, 4.0, 6.5),
+ gfx.QuadTo(4.0, 10.5, 8.0, 10.5),
+ gfx.QuadTo(12.0, 10.5, 12.0, 6.5),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.858824, Green: 0.360784, Blue: 0.360784, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(10.0, 6.5),
+ gfx.CubicTo(10.0, 7.60457, 9.10457, 8.5, 8.0, 8.5),
+ gfx.CubicTo(6.89543, 8.5, 6.0, 7.60457, 6.0, 6.5),
+ gfx.CubicTo(6.0, 5.39543, 6.89543, 4.5, 8.0, 4.5),
+ gfx.CubicTo(9.10457, 4.5, 10.0, 5.39543, 10.0, 6.5),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.858824, Green: 0.360784, Blue: 0.360784, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.0, 10.3),
+ gfx.LineTo(6.0, 13.867),
+ gfx.LineTo(7.743, 12.821),
+ gfx.QuadTo(8.0, 12.667, 8.257, 12.821),
+ gfx.LineTo(10.0, 13.867),
+ gfx.LineTo(10.0, 10.3),
+ gfx.LineTo(11.0, 10.3),
+ gfx.LineTo(11.0, 14.75),
+ gfx.QuadTo(11.0, 14.888, 10.929, 15.007),
+ gfx.QuadTo(10.822, 15.185, 10.621, 15.235),
+ gfx.QuadTo(10.42, 15.285, 10.243, 15.179),
+ gfx.LineTo(8.0, 13.833),
+ gfx.LineTo(5.757, 15.179),
+ gfx.QuadTo(5.638, 15.25, 5.5, 15.25),
+ gfx.QuadTo(5.293, 15.25, 5.146, 15.104),
+ gfx.QuadTo(5.0, 14.957, 5.0, 14.75),
+ gfx.LineTo(5.0, 10.3),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// lock is a compiled vector icon.
+var Lock = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(5.0, 5.0),
+ gfx.CubicTo(5.0, 3.343, 6.343, 2.0, 8.0, 2.0),
+ gfx.CubicTo(9.657, 2.0, 11.0, 3.343, 11.0, 5.0),
+ gfx.LineTo(11.0, 6.0),
+ gfx.CubicTo(12.105, 6.0, 13.0, 6.895, 13.0, 8.0),
+ gfx.LineTo(13.0, 12.0),
+ gfx.CubicTo(13.0, 13.105, 12.105, 14.0, 11.0, 14.0),
+ gfx.LineTo(5.0, 14.0),
+ gfx.CubicTo(3.895, 14.0, 3.0, 13.105, 3.0, 12.0),
+ gfx.LineTo(3.0, 8.0),
+ gfx.CubicTo(3.0, 6.895, 3.895, 6.0, 5.0, 6.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(5.0, 7.0),
+ gfx.CubicTo(4.448, 7.0, 4.0, 7.448, 4.0, 8.0),
+ gfx.LineTo(4.0, 12.0),
+ gfx.CubicTo(4.0, 12.552, 4.448, 13.0, 5.0, 13.0),
+ gfx.LineTo(11.0, 13.0),
+ gfx.CubicTo(11.552, 13.0, 12.0, 12.552, 12.0, 12.0),
+ gfx.LineTo(12.0, 8.0),
+ gfx.CubicTo(12.0, 7.448, 11.552, 7.0, 11.0, 7.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(10.0, 5.0),
+ gfx.CubicTo(10.0, 3.895, 9.105, 3.0, 8.0, 3.0),
+ gfx.CubicTo(6.895, 3.0, 6.0, 3.895, 6.0, 5.0),
+ gfx.LineTo(6.0, 6.0),
+ gfx.LineTo(10.0, 6.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(8.0, 8.5),
+ gfx.CubicTo(8.276, 8.5, 8.5, 8.724, 8.5, 9.0),
+ gfx.LineTo(8.5, 11.0),
+ gfx.CubicTo(8.5, 11.276, 8.276, 11.5, 8.0, 11.5),
+ gfx.CubicTo(7.724, 11.5, 7.5, 11.276, 7.5, 11.0),
+ gfx.LineTo(7.5, 9.0),
+ gfx.CubicTo(7.5, 8.724, 7.724, 8.5, 8.0, 8.5),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// lock-dark is a compiled vector icon.
+var LockDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
Layers: []gfx.IconLayer{
{Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
gfx.MoveTo(5.0, 5.0),
@@ -3735,17 +4336,187 @@ var MarkdownDark = gfx.Icon{
},
}
-// moduleJava is a compiled vector icon.
-var ModuleJava = gfx.Icon{
+// module is a compiled vector icon.
+var Module = gfx.Icon{
ViewBox: 16.0,
Stroke: 2.0,
Cap: gfx.CapRound,
Join: gfx.JoinRound,
Layers: []gfx.IconLayer{
{Fill: gfx.Color{Red: 0.905882, Green: 0.937255, Blue: 0.992157, Alpha: 1.0}, Commands: []gfx.PathCommand{
- gfx.MoveTo(4.0, 2.5),
- gfx.LineTo(12.0, 2.5),
- gfx.CubicTo(12.8284, 2.5, 13.5, 3.17157, 13.5, 4.0),
+ gfx.MoveTo(11.0, 9.5),
+ gfx.LineTo(14.0, 9.5),
+ gfx.CubicTo(14.8284, 9.5, 15.5, 10.1716, 15.5, 11.0),
+ gfx.LineTo(15.5, 14.0),
+ gfx.CubicTo(15.5, 14.8284, 14.8284, 15.5, 14.0, 15.5),
+ gfx.LineTo(11.0, 15.5),
+ gfx.CubicTo(10.1716, 15.5, 9.5, 14.8284, 9.5, 14.0),
+ gfx.LineTo(9.5, 11.0),
+ gfx.CubicTo(9.5, 10.1716, 10.1716, 9.5, 11.0, 9.5),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.207843, Green: 0.454902, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 9.0),
+ gfx.LineTo(14.0, 9.0),
+ gfx.QuadTo(16.0, 9.0, 16.0, 11.0),
+ gfx.LineTo(16.0, 14.0),
+ gfx.QuadTo(16.0, 16.0, 14.0, 16.0),
+ gfx.LineTo(11.0, 16.0),
+ gfx.QuadTo(9.0, 16.0, 9.0, 14.0),
+ gfx.LineTo(9.0, 11.0),
+ gfx.QuadTo(9.0, 9.0, 11.0, 9.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(11.0, 10.0),
+ gfx.QuadTo(10.0, 10.0, 10.0, 11.0),
+ gfx.LineTo(10.0, 14.0),
+ gfx.QuadTo(10.0, 15.0, 11.0, 15.0),
+ gfx.LineTo(14.0, 15.0),
+ gfx.QuadTo(15.0, 15.0, 15.0, 14.0),
+ gfx.LineTo(15.0, 11.0),
+ gfx.QuadTo(15.0, 10.0, 14.0, 10.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.783, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 8.171),
+ gfx.CubicTo(14.687, 8.06, 14.351, 8.0, 14.0, 8.0),
+ gfx.LineTo(11.0, 8.0),
+ gfx.CubicTo(9.343, 8.0, 8.0, 9.343, 8.0, 11.0),
+ gfx.LineTo(8.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.783, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.803, 4.717),
+ gfx.LineTo(6.038, 3.0),
+ gfx.LineTo(2.75, 3.0),
+ gfx.CubicTo(2.396, 3.0, 2.0, 3.326, 2.0, 3.867),
+ gfx.LineTo(2.0, 12.133),
+ gfx.CubicTo(2.0, 12.674, 2.396, 13.0, 2.75, 13.0),
+ gfx.LineTo(8.0, 13.0),
+ gfx.LineTo(8.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.783, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.783, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 8.171),
+ gfx.CubicTo(14.687, 8.06, 14.351, 8.0, 14.0, 8.0),
+ gfx.LineTo(14.0, 6.0),
+ gfx.CubicTo(14.0, 5.448, 13.552, 5.0, 13.0, 5.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// module-dark is a compiled vector icon.
+var ModuleDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.145098, Green: 0.196078, Blue: 0.301961, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 9.5),
+ gfx.LineTo(14.0, 9.5),
+ gfx.CubicTo(14.8284, 9.5, 15.5, 10.1716, 15.5, 11.0),
+ gfx.LineTo(15.5, 14.0),
+ gfx.CubicTo(15.5, 14.8284, 14.8284, 15.5, 14.0, 15.5),
+ gfx.LineTo(11.0, 15.5),
+ gfx.CubicTo(10.1716, 15.5, 9.5, 14.8284, 9.5, 14.0),
+ gfx.LineTo(9.5, 11.0),
+ gfx.CubicTo(9.5, 10.1716, 10.1716, 9.5, 11.0, 9.5),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.329412, Green: 0.541176, Blue: 0.968627, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(11.0, 9.0),
+ gfx.LineTo(14.0, 9.0),
+ gfx.QuadTo(16.0, 9.0, 16.0, 11.0),
+ gfx.LineTo(16.0, 14.0),
+ gfx.QuadTo(16.0, 16.0, 14.0, 16.0),
+ gfx.LineTo(11.0, 16.0),
+ gfx.QuadTo(9.0, 16.0, 9.0, 14.0),
+ gfx.LineTo(9.0, 11.0),
+ gfx.QuadTo(9.0, 9.0, 11.0, 9.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(11.0, 10.0),
+ gfx.QuadTo(10.0, 10.0, 10.0, 11.0),
+ gfx.LineTo(10.0, 14.0),
+ gfx.QuadTo(10.0, 15.0, 11.0, 15.0),
+ gfx.LineTo(14.0, 15.0),
+ gfx.QuadTo(15.0, 15.0, 15.0, 14.0),
+ gfx.LineTo(15.0, 11.0),
+ gfx.QuadTo(15.0, 10.0, 14.0, 10.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.783, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 8.171),
+ gfx.CubicTo(14.687, 8.06, 14.351, 8.0, 14.0, 8.0),
+ gfx.LineTo(11.0, 8.0),
+ gfx.CubicTo(9.343, 8.0, 8.0, 9.343, 8.0, 11.0),
+ gfx.LineTo(8.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.783, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(7.803, 4.717),
+ gfx.LineTo(6.038, 3.0),
+ gfx.LineTo(2.75, 3.0),
+ gfx.CubicTo(2.396, 3.0, 2.0, 3.326, 2.0, 3.867),
+ gfx.LineTo(2.0, 12.133),
+ gfx.CubicTo(2.0, 12.674, 2.396, 13.0, 2.75, 13.0),
+ gfx.LineTo(8.0, 13.0),
+ gfx.LineTo(8.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.783, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.783, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 8.171),
+ gfx.CubicTo(14.687, 8.06, 14.351, 8.0, 14.0, 8.0),
+ gfx.LineTo(14.0, 6.0),
+ gfx.CubicTo(14.0, 5.448, 13.552, 5.0, 13.0, 5.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// moduleJava is a compiled vector icon.
+var ModuleJava = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.905882, Green: 0.937255, Blue: 0.992157, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(4.0, 2.5),
+ gfx.LineTo(12.0, 2.5),
+ gfx.CubicTo(12.8284, 2.5, 13.5, 3.17157, 13.5, 4.0),
gfx.LineTo(13.5, 12.0),
gfx.CubicTo(13.5, 12.8284, 12.8284, 13.5, 12.0, 13.5),
gfx.LineTo(4.0, 13.5),
@@ -5664,6 +6435,660 @@ var SwiftLangDark = gfx.Icon{
},
}
+// task is a compiled vector icon.
+var Task = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(4.884, 3.388),
+ gfx.CubicTo(5.168, 3.391, 5.431, 3.239, 5.57, 2.991),
+ gfx.LineTo(6.438, 1.449),
+ gfx.CubicTo(6.549, 1.252, 6.74, 1.11, 6.964, 1.077),
+ gfx.CubicTo(7.303, 1.026, 7.651, 1.0, 8.004, 1.0),
+ gfx.CubicTo(8.358, 1.0, 8.705, 1.026, 9.044, 1.077),
+ gfx.CubicTo(9.268, 1.11, 9.459, 1.252, 9.57, 1.449),
+ gfx.LineTo(10.438, 2.991),
+ gfx.CubicTo(10.577, 3.239, 10.84, 3.391, 11.125, 3.388),
+ gfx.LineTo(12.894, 3.368),
+ gfx.CubicTo(13.12, 3.366, 13.337, 3.46, 13.478, 3.637),
+ gfx.CubicTo(13.91, 4.178, 14.263, 4.784, 14.521, 5.439),
+ gfx.CubicTo(14.603, 5.649, 14.576, 5.885, 14.461, 6.079),
+ gfx.LineTo(13.559, 7.604),
+ gfx.CubicTo(13.414, 7.848, 13.414, 8.152, 13.559, 8.396),
+ gfx.LineTo(14.461, 9.921),
+ gfx.CubicTo(14.576, 10.115, 14.603, 10.351, 14.521, 10.561),
+ gfx.CubicTo(14.263, 11.216, 13.91, 11.822, 13.478, 12.363),
+ gfx.CubicTo(13.337, 12.54, 13.12, 12.634, 12.894, 12.632),
+ gfx.LineTo(11.125, 12.612),
+ gfx.CubicTo(10.84, 12.609, 10.577, 12.761, 10.438, 13.009),
+ gfx.LineTo(9.57, 14.551),
+ gfx.CubicTo(9.459, 14.748, 9.268, 14.89, 9.044, 14.923),
+ gfx.CubicTo(8.705, 14.974, 8.358, 15.0, 8.004, 15.0),
+ gfx.CubicTo(7.651, 15.0, 7.303, 14.974, 6.964, 14.923),
+ gfx.CubicTo(6.74, 14.89, 6.549, 14.748, 6.438, 14.551),
+ gfx.LineTo(5.57, 13.009),
+ gfx.CubicTo(5.431, 12.761, 5.168, 12.609, 4.884, 12.612),
+ gfx.LineTo(3.114, 12.632),
+ gfx.CubicTo(2.889, 12.634, 2.671, 12.54, 2.53, 12.363),
+ gfx.CubicTo(2.098, 11.822, 1.745, 11.216, 1.487, 10.561),
+ gfx.CubicTo(1.405, 10.351, 1.432, 10.115, 1.547, 9.921),
+ gfx.LineTo(2.449, 8.396),
+ gfx.CubicTo(2.594, 8.152, 2.594, 7.848, 2.449, 7.604),
+ gfx.LineTo(1.547, 6.079),
+ gfx.CubicTo(1.432, 5.885, 1.405, 5.649, 1.487, 5.439),
+ gfx.CubicTo(1.745, 4.784, 2.098, 4.178, 2.53, 3.637),
+ gfx.CubicTo(2.671, 3.46, 2.889, 3.366, 3.114, 3.368),
+ gfx.ClosePath(),
+ gfx.MoveTo(3.227, 4.37),
+ gfx.CubicTo(2.922, 4.769, 2.667, 5.208, 2.47, 5.676),
+ gfx.LineTo(3.31, 7.094),
+ gfx.CubicTo(3.641, 7.653, 3.641, 8.347, 3.31, 8.906),
+ gfx.LineTo(2.47, 10.324),
+ gfx.CubicTo(2.667, 10.792, 2.922, 11.231, 3.227, 11.63),
+ gfx.LineTo(4.873, 11.612),
+ gfx.CubicTo(5.522, 11.605, 6.123, 11.952, 6.441, 12.518),
+ gfx.LineTo(7.249, 13.953),
+ gfx.CubicTo(7.496, 13.984, 7.748, 14.0, 8.004, 14.0),
+ gfx.CubicTo(8.26, 14.0, 8.512, 13.984, 8.759, 13.953),
+ gfx.LineTo(9.567, 12.518),
+ gfx.CubicTo(9.885, 11.952, 10.486, 11.605, 11.135, 11.612),
+ gfx.LineTo(12.782, 11.63),
+ gfx.CubicTo(13.086, 11.231, 13.341, 10.792, 13.538, 10.324),
+ gfx.LineTo(12.698, 8.906),
+ gfx.CubicTo(12.367, 8.347, 12.367, 7.653, 12.698, 7.094),
+ gfx.LineTo(13.538, 5.676),
+ gfx.CubicTo(13.341, 5.208, 13.086, 4.769, 12.782, 4.37),
+ gfx.LineTo(11.135, 4.388),
+ gfx.CubicTo(10.486, 4.395, 9.885, 4.048, 9.567, 3.482),
+ gfx.LineTo(8.759, 2.047),
+ gfx.CubicTo(8.512, 2.016, 8.26, 2.0, 8.004, 2.0),
+ gfx.CubicTo(7.748, 2.0, 7.496, 2.016, 7.249, 2.047),
+ gfx.LineTo(6.441, 3.482),
+ gfx.CubicTo(6.123, 4.048, 5.522, 4.395, 4.873, 4.388),
+ gfx.ClosePath(),
+ gfx.MoveTo(10.655, 8.0),
+ gfx.CubicTo(10.655, 9.464, 9.468, 10.651, 8.004, 10.651),
+ gfx.CubicTo(6.54, 10.651, 5.353, 9.464, 5.353, 8.0),
+ gfx.CubicTo(5.353, 6.536, 6.54, 5.349, 8.004, 5.349),
+ gfx.CubicTo(9.468, 5.349, 10.655, 6.536, 10.655, 8.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(9.655, 8.0),
+ gfx.CubicTo(9.655, 7.088, 8.916, 6.349, 8.004, 6.349),
+ gfx.CubicTo(7.092, 6.349, 6.353, 7.088, 6.353, 8.0),
+ gfx.CubicTo(6.353, 8.912, 7.092, 9.651, 8.004, 9.651),
+ gfx.CubicTo(8.916, 9.651, 9.655, 8.912, 9.655, 8.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// task-dark is a compiled vector icon.
+var TaskDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(4.884, 3.388),
+ gfx.CubicTo(5.168, 3.391, 5.431, 3.239, 5.57, 2.991),
+ gfx.LineTo(6.438, 1.449),
+ gfx.CubicTo(6.549, 1.252, 6.74, 1.11, 6.964, 1.077),
+ gfx.CubicTo(7.303, 1.026, 7.651, 1.0, 8.004, 1.0),
+ gfx.CubicTo(8.358, 1.0, 8.705, 1.026, 9.044, 1.077),
+ gfx.CubicTo(9.268, 1.11, 9.459, 1.252, 9.57, 1.449),
+ gfx.LineTo(10.438, 2.991),
+ gfx.CubicTo(10.577, 3.239, 10.84, 3.391, 11.125, 3.388),
+ gfx.LineTo(12.894, 3.368),
+ gfx.CubicTo(13.12, 3.366, 13.337, 3.46, 13.478, 3.637),
+ gfx.CubicTo(13.91, 4.178, 14.263, 4.784, 14.521, 5.439),
+ gfx.CubicTo(14.603, 5.649, 14.576, 5.885, 14.461, 6.079),
+ gfx.LineTo(13.559, 7.604),
+ gfx.CubicTo(13.414, 7.848, 13.414, 8.152, 13.559, 8.396),
+ gfx.LineTo(14.461, 9.921),
+ gfx.CubicTo(14.576, 10.115, 14.603, 10.351, 14.521, 10.561),
+ gfx.CubicTo(14.263, 11.216, 13.91, 11.822, 13.478, 12.363),
+ gfx.CubicTo(13.337, 12.54, 13.12, 12.634, 12.894, 12.632),
+ gfx.LineTo(11.125, 12.612),
+ gfx.CubicTo(10.84, 12.609, 10.577, 12.761, 10.438, 13.009),
+ gfx.LineTo(9.57, 14.551),
+ gfx.CubicTo(9.459, 14.748, 9.268, 14.89, 9.044, 14.923),
+ gfx.CubicTo(8.705, 14.974, 8.358, 15.0, 8.004, 15.0),
+ gfx.CubicTo(7.651, 15.0, 7.303, 14.974, 6.964, 14.923),
+ gfx.CubicTo(6.74, 14.89, 6.549, 14.748, 6.438, 14.551),
+ gfx.LineTo(5.57, 13.009),
+ gfx.CubicTo(5.431, 12.761, 5.168, 12.609, 4.884, 12.612),
+ gfx.LineTo(3.114, 12.632),
+ gfx.CubicTo(2.889, 12.634, 2.671, 12.54, 2.53, 12.363),
+ gfx.CubicTo(2.098, 11.822, 1.745, 11.216, 1.487, 10.561),
+ gfx.CubicTo(1.405, 10.351, 1.432, 10.115, 1.547, 9.921),
+ gfx.LineTo(2.449, 8.396),
+ gfx.CubicTo(2.594, 8.152, 2.594, 7.848, 2.449, 7.604),
+ gfx.LineTo(1.547, 6.079),
+ gfx.CubicTo(1.432, 5.885, 1.405, 5.649, 1.487, 5.439),
+ gfx.CubicTo(1.745, 4.784, 2.098, 4.178, 2.53, 3.637),
+ gfx.CubicTo(2.671, 3.46, 2.889, 3.366, 3.114, 3.368),
+ gfx.ClosePath(),
+ gfx.MoveTo(3.227, 4.37),
+ gfx.CubicTo(2.922, 4.769, 2.667, 5.208, 2.47, 5.676),
+ gfx.LineTo(3.31, 7.094),
+ gfx.CubicTo(3.641, 7.653, 3.641, 8.347, 3.31, 8.906),
+ gfx.LineTo(2.47, 10.324),
+ gfx.CubicTo(2.667, 10.792, 2.922, 11.231, 3.227, 11.63),
+ gfx.LineTo(4.873, 11.612),
+ gfx.CubicTo(5.522, 11.605, 6.123, 11.952, 6.441, 12.518),
+ gfx.LineTo(7.249, 13.953),
+ gfx.CubicTo(7.496, 13.984, 7.748, 14.0, 8.004, 14.0),
+ gfx.CubicTo(8.26, 14.0, 8.512, 13.984, 8.759, 13.953),
+ gfx.LineTo(9.567, 12.518),
+ gfx.CubicTo(9.885, 11.952, 10.486, 11.605, 11.135, 11.612),
+ gfx.LineTo(12.782, 11.63),
+ gfx.CubicTo(13.086, 11.231, 13.341, 10.792, 13.538, 10.324),
+ gfx.LineTo(12.698, 8.906),
+ gfx.CubicTo(12.367, 8.347, 12.367, 7.653, 12.698, 7.094),
+ gfx.LineTo(13.538, 5.676),
+ gfx.CubicTo(13.341, 5.208, 13.086, 4.769, 12.782, 4.37),
+ gfx.LineTo(11.135, 4.388),
+ gfx.CubicTo(10.486, 4.395, 9.885, 4.048, 9.567, 3.482),
+ gfx.LineTo(8.759, 2.047),
+ gfx.CubicTo(8.512, 2.016, 8.26, 2.0, 8.004, 2.0),
+ gfx.CubicTo(7.748, 2.0, 7.496, 2.016, 7.249, 2.047),
+ gfx.LineTo(6.441, 3.482),
+ gfx.CubicTo(6.123, 4.048, 5.522, 4.395, 4.873, 4.388),
+ gfx.ClosePath(),
+ gfx.MoveTo(10.655, 8.0),
+ gfx.CubicTo(10.655, 9.464, 9.468, 10.651, 8.004, 10.651),
+ gfx.CubicTo(6.54, 10.651, 5.353, 9.464, 5.353, 8.0),
+ gfx.CubicTo(5.353, 6.536, 6.54, 5.349, 8.004, 5.349),
+ gfx.CubicTo(9.468, 5.349, 10.655, 6.536, 10.655, 8.0),
+ gfx.ClosePath(),
+ gfx.MoveTo(9.655, 8.0),
+ gfx.CubicTo(9.655, 7.088, 8.916, 6.349, 8.004, 6.349),
+ gfx.CubicTo(7.092, 6.349, 6.353, 7.088, 6.353, 8.0),
+ gfx.CubicTo(6.353, 8.912, 7.092, 9.651, 8.004, 9.651),
+ gfx.CubicTo(8.916, 9.651, 9.655, 8.912, 9.655, 8.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// taskGroup is a compiled vector icon.
+var TaskGroup = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.784, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 7.389),
+ gfx.CubicTo(14.137, 6.827, 13.107, 6.5, 12.0, 6.5),
+ gfx.CubicTo(8.962, 6.5, 6.5, 8.962, 6.5, 12.0),
+ gfx.CubicTo(6.5, 12.706, 6.633, 13.38, 6.875, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.784, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.038, 3.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.LineTo(13.0, 5.0),
+ gfx.CubicTo(13.552, 5.0, 14.0, 5.448, 14.0, 6.0),
+ gfx.LineTo(14.0, 6.875),
+ gfx.CubicTo(14.352, 7.013, 14.687, 7.186, 15.0, 7.389),
+ gfx.LineTo(15.0, 6.0),
+ gfx.CubicTo(15.0, 4.895, 14.105, 4.0, 13.0, 4.0),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(6.736, 2.283),
+ gfx.CubicTo(6.549, 2.102, 6.299, 2.0, 6.038, 2.0),
+ gfx.LineTo(2.75, 2.0),
+ gfx.CubicTo(1.784, 2.0, 1.0, 2.836, 1.0, 3.867),
+ gfx.LineTo(1.0, 12.133),
+ gfx.CubicTo(1.0, 13.164, 1.784, 14.0, 2.75, 14.0),
+ gfx.LineTo(6.875, 14.0),
+ gfx.CubicTo(6.75, 13.68, 6.654, 13.346, 6.591, 13.0),
+ gfx.LineTo(2.75, 13.0),
+ gfx.CubicTo(2.396, 13.0, 2.0, 12.674, 2.0, 12.133),
+ gfx.LineTo(2.0, 3.867),
+ gfx.CubicTo(2.0, 3.326, 2.396, 3.0, 2.75, 3.0),
+ gfx.LineTo(6.038, 3.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.207843, Green: 0.454902, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(12.0, 13.0),
+ gfx.CubicTo(12.552, 13.0, 13.0, 12.552, 13.0, 12.0),
+ gfx.CubicTo(13.0, 11.448, 12.552, 11.0, 12.0, 11.0),
+ gfx.CubicTo(11.448, 11.0, 11.0, 11.448, 11.0, 12.0),
+ gfx.CubicTo(11.0, 12.552, 11.448, 13.0, 12.0, 13.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.207843, Green: 0.454902, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(13.122, 15.676),
+ gfx.CubicTo(13.048, 15.871, 12.862, 16.0, 12.653, 16.0),
+ gfx.LineTo(11.346, 16.0),
+ gfx.CubicTo(11.138, 16.0, 10.951, 15.871, 10.878, 15.676),
+ gfx.LineTo(10.629, 15.01),
+ gfx.CubicTo(10.545, 14.786, 10.314, 14.653, 10.079, 14.693),
+ gfx.LineTo(9.378, 14.809),
+ gfx.CubicTo(9.172, 14.843, 8.967, 14.746, 8.863, 14.566),
+ gfx.LineTo(8.209, 13.434),
+ gfx.CubicTo(8.105, 13.254, 8.124, 13.027, 8.256, 12.866),
+ gfx.LineTo(8.707, 12.318),
+ gfx.CubicTo(8.859, 12.133, 8.859, 11.867, 8.707, 11.682),
+ gfx.LineTo(8.256, 11.134),
+ gfx.CubicTo(8.124, 10.973, 8.105, 10.746, 8.209, 10.566),
+ gfx.LineTo(8.863, 9.434),
+ gfx.CubicTo(8.967, 9.254, 9.172, 9.157, 9.378, 9.191),
+ gfx.LineTo(10.079, 9.307),
+ gfx.CubicTo(10.314, 9.347, 10.545, 9.214, 10.629, 8.99),
+ gfx.LineTo(10.878, 8.324),
+ gfx.CubicTo(10.951, 8.129, 11.138, 8.0, 11.346, 8.0),
+ gfx.LineTo(12.653, 8.0),
+ gfx.CubicTo(12.862, 8.0, 13.048, 8.129, 13.122, 8.324),
+ gfx.LineTo(13.371, 8.99),
+ gfx.CubicTo(13.455, 9.214, 13.686, 9.347, 13.921, 9.307),
+ gfx.LineTo(14.622, 9.191),
+ gfx.CubicTo(14.828, 9.157, 15.033, 9.254, 15.137, 9.434),
+ gfx.LineTo(15.791, 10.566),
+ gfx.CubicTo(15.895, 10.746, 15.876, 10.973, 15.744, 11.134),
+ gfx.LineTo(15.292, 11.682),
+ gfx.CubicTo(15.141, 11.867, 15.141, 12.133, 15.292, 12.318),
+ gfx.LineTo(15.744, 12.866),
+ gfx.CubicTo(15.876, 13.027, 15.895, 13.254, 15.791, 13.434),
+ gfx.LineTo(15.137, 14.566),
+ gfx.CubicTo(15.033, 14.746, 14.828, 14.843, 14.622, 14.809),
+ gfx.LineTo(13.921, 14.693),
+ gfx.CubicTo(13.686, 14.653, 13.455, 14.786, 13.371, 15.01),
+ gfx.ClosePath(),
+ gfx.MoveTo(11.693, 15.0),
+ gfx.LineTo(12.307, 15.0),
+ gfx.LineTo(12.435, 14.659),
+ gfx.CubicTo(12.686, 13.988, 13.378, 13.589, 14.085, 13.706),
+ gfx.LineTo(14.444, 13.766),
+ gfx.LineTo(14.752, 13.234),
+ gfx.LineTo(14.52, 12.953),
+ gfx.CubicTo(14.065, 12.399, 14.065, 11.601, 14.52, 11.047),
+ gfx.LineTo(14.752, 10.766),
+ gfx.LineTo(14.444, 10.234),
+ gfx.LineTo(14.085, 10.294),
+ gfx.CubicTo(13.378, 10.411, 12.686, 10.012, 12.435, 9.341),
+ gfx.LineTo(12.307, 9.0),
+ gfx.LineTo(11.693, 9.0),
+ gfx.LineTo(11.565, 9.341),
+ gfx.CubicTo(11.313, 10.012, 10.622, 10.411, 9.914, 10.294),
+ gfx.LineTo(9.555, 10.234),
+ gfx.LineTo(9.248, 10.766),
+ gfx.LineTo(9.48, 11.047),
+ gfx.CubicTo(9.935, 11.601, 9.935, 12.399, 9.48, 12.953),
+ gfx.LineTo(9.248, 13.234),
+ gfx.LineTo(9.555, 13.766),
+ gfx.LineTo(9.914, 13.706),
+ gfx.CubicTo(10.622, 13.589, 11.313, 13.988, 11.565, 14.659),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.905882, Green: 0.937255, Blue: 0.992157, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(12.307, 15.0),
+ gfx.LineTo(11.693, 15.0),
+ gfx.LineTo(11.565, 14.659),
+ gfx.CubicTo(11.313, 13.988, 10.622, 13.589, 9.914, 13.706),
+ gfx.LineTo(9.555, 13.766),
+ gfx.LineTo(9.248, 13.234),
+ gfx.LineTo(9.48, 12.953),
+ gfx.CubicTo(9.935, 12.399, 9.935, 11.601, 9.48, 11.047),
+ gfx.LineTo(9.248, 10.766),
+ gfx.LineTo(9.555, 10.234),
+ gfx.LineTo(9.914, 10.294),
+ gfx.CubicTo(10.622, 10.411, 11.313, 10.012, 11.565, 9.341),
+ gfx.LineTo(11.693, 9.0),
+ gfx.LineTo(12.307, 9.0),
+ gfx.LineTo(12.435, 9.341),
+ gfx.CubicTo(12.686, 10.012, 13.378, 10.411, 14.085, 10.294),
+ gfx.LineTo(14.444, 10.234),
+ gfx.LineTo(14.752, 10.766),
+ gfx.LineTo(14.52, 11.047),
+ gfx.CubicTo(14.065, 11.601, 14.065, 12.399, 14.52, 12.953),
+ gfx.LineTo(14.752, 13.234),
+ gfx.LineTo(14.444, 13.766),
+ gfx.LineTo(14.085, 13.706),
+ gfx.CubicTo(13.378, 13.589, 12.686, 13.988, 12.435, 14.659),
+ gfx.ClosePath(),
+ gfx.MoveTo(13.0, 12.0),
+ gfx.CubicTo(13.0, 11.448, 12.552, 11.0, 12.0, 11.0),
+ gfx.CubicTo(11.448, 11.0, 11.0, 11.448, 11.0, 12.0),
+ gfx.CubicTo(11.0, 12.552, 11.448, 13.0, 12.0, 13.0),
+ gfx.CubicTo(12.552, 13.0, 13.0, 12.552, 13.0, 12.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// taskGroup-dark is a compiled vector icon.
+var TaskGroupDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.784, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 7.389),
+ gfx.CubicTo(14.137, 6.827, 13.107, 6.5, 12.0, 6.5),
+ gfx.CubicTo(8.962, 6.5, 6.5, 8.962, 6.5, 12.0),
+ gfx.CubicTo(6.5, 12.706, 6.633, 13.38, 6.875, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.784, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.038, 3.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.LineTo(13.0, 5.0),
+ gfx.CubicTo(13.552, 5.0, 14.0, 5.448, 14.0, 6.0),
+ gfx.LineTo(14.0, 6.875),
+ gfx.CubicTo(14.352, 7.013, 14.687, 7.186, 15.0, 7.389),
+ gfx.LineTo(15.0, 6.0),
+ gfx.CubicTo(15.0, 4.895, 14.105, 4.0, 13.0, 4.0),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(6.736, 2.283),
+ gfx.CubicTo(6.549, 2.102, 6.299, 2.0, 6.038, 2.0),
+ gfx.LineTo(2.75, 2.0),
+ gfx.CubicTo(1.784, 2.0, 1.0, 2.836, 1.0, 3.867),
+ gfx.LineTo(1.0, 12.133),
+ gfx.CubicTo(1.0, 13.164, 1.784, 14.0, 2.75, 14.0),
+ gfx.LineTo(6.875, 14.0),
+ gfx.CubicTo(6.75, 13.68, 6.654, 13.346, 6.591, 13.0),
+ gfx.LineTo(2.75, 13.0),
+ gfx.CubicTo(2.396, 13.0, 2.0, 12.674, 2.0, 12.133),
+ gfx.LineTo(2.0, 3.867),
+ gfx.CubicTo(2.0, 3.326, 2.396, 3.0, 2.75, 3.0),
+ gfx.LineTo(6.038, 3.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.329412, Green: 0.541176, Blue: 0.968627, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(12.0, 13.0),
+ gfx.CubicTo(12.552, 13.0, 13.0, 12.552, 13.0, 12.0),
+ gfx.CubicTo(13.0, 11.448, 12.552, 11.0, 12.0, 11.0),
+ gfx.CubicTo(11.448, 11.0, 11.0, 11.448, 11.0, 12.0),
+ gfx.CubicTo(11.0, 12.552, 11.448, 13.0, 12.0, 13.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.329412, Green: 0.541176, Blue: 0.968627, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(13.122, 15.676),
+ gfx.CubicTo(13.048, 15.871, 12.862, 16.0, 12.653, 16.0),
+ gfx.LineTo(11.346, 16.0),
+ gfx.CubicTo(11.138, 16.0, 10.951, 15.871, 10.878, 15.676),
+ gfx.LineTo(10.629, 15.01),
+ gfx.CubicTo(10.545, 14.786, 10.314, 14.653, 10.079, 14.693),
+ gfx.LineTo(9.378, 14.809),
+ gfx.CubicTo(9.172, 14.843, 8.967, 14.746, 8.863, 14.566),
+ gfx.LineTo(8.209, 13.434),
+ gfx.CubicTo(8.105, 13.254, 8.124, 13.027, 8.256, 12.866),
+ gfx.LineTo(8.707, 12.318),
+ gfx.CubicTo(8.859, 12.133, 8.859, 11.867, 8.707, 11.682),
+ gfx.LineTo(8.256, 11.134),
+ gfx.CubicTo(8.124, 10.973, 8.105, 10.746, 8.209, 10.566),
+ gfx.LineTo(8.863, 9.434),
+ gfx.CubicTo(8.967, 9.254, 9.172, 9.157, 9.378, 9.191),
+ gfx.LineTo(10.079, 9.307),
+ gfx.CubicTo(10.314, 9.347, 10.545, 9.214, 10.629, 8.99),
+ gfx.LineTo(10.878, 8.324),
+ gfx.CubicTo(10.951, 8.129, 11.138, 8.0, 11.346, 8.0),
+ gfx.LineTo(12.653, 8.0),
+ gfx.CubicTo(12.862, 8.0, 13.048, 8.129, 13.122, 8.324),
+ gfx.LineTo(13.371, 8.99),
+ gfx.CubicTo(13.455, 9.214, 13.686, 9.347, 13.921, 9.307),
+ gfx.LineTo(14.622, 9.191),
+ gfx.CubicTo(14.828, 9.157, 15.033, 9.254, 15.137, 9.434),
+ gfx.LineTo(15.791, 10.566),
+ gfx.CubicTo(15.895, 10.746, 15.876, 10.973, 15.744, 11.134),
+ gfx.LineTo(15.292, 11.682),
+ gfx.CubicTo(15.141, 11.867, 15.141, 12.133, 15.292, 12.318),
+ gfx.LineTo(15.744, 12.866),
+ gfx.CubicTo(15.876, 13.027, 15.895, 13.254, 15.791, 13.434),
+ gfx.LineTo(15.137, 14.566),
+ gfx.CubicTo(15.033, 14.746, 14.828, 14.843, 14.622, 14.809),
+ gfx.LineTo(13.921, 14.693),
+ gfx.CubicTo(13.686, 14.653, 13.455, 14.786, 13.371, 15.01),
+ gfx.ClosePath(),
+ gfx.MoveTo(11.693, 15.0),
+ gfx.LineTo(12.307, 15.0),
+ gfx.LineTo(12.435, 14.659),
+ gfx.CubicTo(12.686, 13.988, 13.378, 13.589, 14.085, 13.706),
+ gfx.LineTo(14.444, 13.766),
+ gfx.LineTo(14.752, 13.234),
+ gfx.LineTo(14.52, 12.953),
+ gfx.CubicTo(14.065, 12.399, 14.065, 11.601, 14.52, 11.047),
+ gfx.LineTo(14.752, 10.766),
+ gfx.LineTo(14.444, 10.234),
+ gfx.LineTo(14.085, 10.294),
+ gfx.CubicTo(13.378, 10.411, 12.686, 10.012, 12.435, 9.341),
+ gfx.LineTo(12.307, 9.0),
+ gfx.LineTo(11.693, 9.0),
+ gfx.LineTo(11.565, 9.341),
+ gfx.CubicTo(11.313, 10.012, 10.622, 10.411, 9.914, 10.294),
+ gfx.LineTo(9.555, 10.234),
+ gfx.LineTo(9.248, 10.766),
+ gfx.LineTo(9.48, 11.047),
+ gfx.CubicTo(9.935, 11.601, 9.935, 12.399, 9.48, 12.953),
+ gfx.LineTo(9.248, 13.234),
+ gfx.LineTo(9.555, 13.766),
+ gfx.LineTo(9.914, 13.706),
+ gfx.CubicTo(10.622, 13.589, 11.313, 13.988, 11.565, 14.659),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.145098, Green: 0.196078, Blue: 0.301961, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(12.307, 15.0),
+ gfx.LineTo(11.693, 15.0),
+ gfx.LineTo(11.565, 14.659),
+ gfx.CubicTo(11.313, 13.988, 10.622, 13.589, 9.914, 13.706),
+ gfx.LineTo(9.555, 13.766),
+ gfx.LineTo(9.248, 13.234),
+ gfx.LineTo(9.48, 12.953),
+ gfx.CubicTo(9.935, 12.399, 9.935, 11.601, 9.48, 11.047),
+ gfx.LineTo(9.248, 10.766),
+ gfx.LineTo(9.555, 10.234),
+ gfx.LineTo(9.914, 10.294),
+ gfx.CubicTo(10.622, 10.411, 11.313, 10.012, 11.565, 9.341),
+ gfx.LineTo(11.693, 9.0),
+ gfx.LineTo(12.307, 9.0),
+ gfx.LineTo(12.435, 9.341),
+ gfx.CubicTo(12.686, 10.012, 13.378, 10.411, 14.085, 10.294),
+ gfx.LineTo(14.444, 10.234),
+ gfx.LineTo(14.752, 10.766),
+ gfx.LineTo(14.52, 11.047),
+ gfx.CubicTo(14.065, 11.601, 14.065, 12.399, 14.52, 12.953),
+ gfx.LineTo(14.752, 13.234),
+ gfx.LineTo(14.444, 13.766),
+ gfx.LineTo(14.085, 13.706),
+ gfx.CubicTo(13.378, 13.589, 12.686, 13.988, 12.435, 14.659),
+ gfx.ClosePath(),
+ gfx.MoveTo(13.0, 12.0),
+ gfx.CubicTo(13.0, 11.448, 12.552, 11.0, 12.0, 11.0),
+ gfx.CubicTo(11.448, 11.0, 11.0, 11.448, 11.0, 12.0),
+ gfx.CubicTo(11.0, 12.552, 11.448, 13.0, 12.0, 13.0),
+ gfx.CubicTo(12.552, 13.0, 13.0, 12.552, 13.0, 12.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// testGroup is a compiled vector icon.
+var TestGroup = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(14.472, 16.0),
+ gfx.CubicTo(14.197, 16.0, 13.947, 15.941, 13.724, 15.824),
+ gfx.CubicTo(13.5, 15.703, 13.324, 15.538, 13.196, 15.329),
+ gfx.CubicTo(13.068, 15.12, 13.003, 14.885, 13.003, 14.625),
+ gfx.LineTo(12.998, 11.242),
+ gfx.LineTo(12.008, 11.242),
+ gfx.LineTo(12.013, 10.368),
+ gfx.LineTo(12.629, 10.368),
+ gfx.CubicTo(12.769, 10.368, 12.88, 10.324, 12.965, 10.236),
+ gfx.CubicTo(13.053, 10.148, 13.097, 10.036, 13.097, 9.9),
+ gfx.LineTo(13.097, 8.993),
+ gfx.LineTo(13.999, 8.993),
+ gfx.LineTo(13.999, 10.368),
+ gfx.LineTo(15.357, 10.368),
+ gfx.LineTo(15.352, 11.242),
+ gfx.LineTo(13.993, 11.242),
+ gfx.LineTo(13.999, 14.537),
+ gfx.CubicTo(13.999, 14.706, 14.054, 14.847, 14.164, 14.96),
+ gfx.CubicTo(14.277, 15.07, 14.419, 15.125, 14.587, 15.125),
+ gfx.LineTo(15.352, 15.125),
+ gfx.LineTo(15.352, 16.0),
+ gfx.LineTo(14.472, 16.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.921569, Green: 0.92549, Blue: 0.941176, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.784, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 8.0),
+ gfx.LineTo(12.086, 8.0),
+ gfx.LineTo(12.086, 9.359),
+ gfx.LineTo(11.0, 9.359),
+ gfx.LineTo(11.0, 12.234),
+ gfx.LineTo(12.0, 12.234),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.784, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.423529, Green: 0.439216, Blue: 0.494118, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.038, 3.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.LineTo(13.0, 5.0),
+ gfx.CubicTo(13.552, 5.0, 14.0, 5.448, 14.0, 6.0),
+ gfx.LineTo(14.0, 8.0),
+ gfx.LineTo(15.0, 8.0),
+ gfx.LineTo(15.0, 6.0),
+ gfx.CubicTo(15.0, 4.895, 14.105, 4.0, 13.0, 4.0),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(6.736, 2.283),
+ gfx.CubicTo(6.549, 2.102, 6.299, 2.0, 6.038, 2.0),
+ gfx.LineTo(2.75, 2.0),
+ gfx.CubicTo(1.784, 2.0, 1.0, 2.836, 1.0, 3.867),
+ gfx.LineTo(1.0, 12.133),
+ gfx.CubicTo(1.0, 13.164, 1.784, 14.0, 2.75, 14.0),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(12.0, 13.0),
+ gfx.LineTo(2.75, 13.0),
+ gfx.CubicTo(2.396, 13.0, 2.0, 12.674, 2.0, 12.133),
+ gfx.LineTo(2.0, 3.867),
+ gfx.CubicTo(2.0, 3.326, 2.396, 3.0, 2.75, 3.0),
+ gfx.LineTo(6.038, 3.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
+// testGroup-dark is a compiled vector icon.
+var TestGroupDark = gfx.Icon{
+ ViewBox: 16.0,
+ Stroke: 2.0,
+ Cap: gfx.CapRound,
+ Join: gfx.JoinRound,
+ Layers: []gfx.IconLayer{
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(14.472, 16.0),
+ gfx.CubicTo(14.197, 16.0, 13.947, 15.941, 13.724, 15.824),
+ gfx.CubicTo(13.5, 15.703, 13.324, 15.538, 13.196, 15.329),
+ gfx.CubicTo(13.068, 15.12, 13.003, 14.885, 13.003, 14.625),
+ gfx.LineTo(12.998, 11.242),
+ gfx.LineTo(12.008, 11.242),
+ gfx.LineTo(12.013, 10.368),
+ gfx.LineTo(12.629, 10.368),
+ gfx.CubicTo(12.769, 10.368, 12.88, 10.324, 12.965, 10.236),
+ gfx.CubicTo(13.053, 10.148, 13.097, 10.036, 13.097, 9.9),
+ gfx.LineTo(13.097, 8.993),
+ gfx.LineTo(13.999, 8.993),
+ gfx.LineTo(13.999, 10.368),
+ gfx.LineTo(15.357, 10.368),
+ gfx.LineTo(15.352, 11.242),
+ gfx.LineTo(13.993, 11.242),
+ gfx.LineTo(13.999, 14.537),
+ gfx.CubicTo(13.999, 14.706, 14.054, 14.847, 14.164, 14.96),
+ gfx.CubicTo(14.277, 15.07, 14.419, 15.125, 14.587, 15.125),
+ gfx.LineTo(15.352, 15.125),
+ gfx.LineTo(15.352, 16.0),
+ gfx.LineTo(14.472, 16.0),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.262745, Green: 0.270588, Blue: 0.290196, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(1.0, 3.867),
+ gfx.CubicTo(1.0, 2.836, 1.784, 2.0, 2.75, 2.0),
+ gfx.LineTo(6.038, 2.0),
+ gfx.CubicTo(6.299, 2.0, 6.549, 2.102, 6.736, 2.283),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(13.0, 4.0),
+ gfx.CubicTo(14.105, 4.0, 15.0, 4.895, 15.0, 6.0),
+ gfx.LineTo(15.0, 8.0),
+ gfx.LineTo(12.086, 8.0),
+ gfx.LineTo(12.086, 9.359),
+ gfx.LineTo(11.0, 9.359),
+ gfx.LineTo(11.0, 12.234),
+ gfx.LineTo(12.0, 12.234),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(2.75, 14.0),
+ gfx.CubicTo(1.784, 14.0, 1.0, 13.164, 1.0, 12.133),
+ gfx.LineTo(1.0, 3.867),
+ gfx.ClosePath(),
+ }},
+ {Fill: gfx.Color{Red: 0.807843, Green: 0.815686, Blue: 0.839216, Alpha: 1.0}, Commands: []gfx.PathCommand{
+ gfx.MoveTo(6.038, 3.0),
+ gfx.LineTo(8.094, 5.0),
+ gfx.LineTo(13.0, 5.0),
+ gfx.CubicTo(13.552, 5.0, 14.0, 5.448, 14.0, 6.0),
+ gfx.LineTo(14.0, 8.0),
+ gfx.LineTo(15.0, 8.0),
+ gfx.LineTo(15.0, 6.0),
+ gfx.CubicTo(15.0, 4.895, 14.105, 4.0, 13.0, 4.0),
+ gfx.LineTo(8.5, 4.0),
+ gfx.LineTo(6.736, 2.283),
+ gfx.CubicTo(6.549, 2.102, 6.299, 2.0, 6.038, 2.0),
+ gfx.LineTo(2.75, 2.0),
+ gfx.CubicTo(1.784, 2.0, 1.0, 2.836, 1.0, 3.867),
+ gfx.LineTo(1.0, 12.133),
+ gfx.CubicTo(1.0, 13.164, 1.784, 14.0, 2.75, 14.0),
+ gfx.LineTo(12.0, 14.0),
+ gfx.LineTo(12.0, 13.0),
+ gfx.LineTo(2.75, 13.0),
+ gfx.CubicTo(2.396, 13.0, 2.0, 12.674, 2.0, 12.133),
+ gfx.LineTo(2.0, 3.867),
+ gfx.CubicTo(2.0, 3.326, 2.396, 3.0, 2.75, 3.0),
+ gfx.LineTo(6.038, 3.0),
+ gfx.ClosePath(),
+ }},
+ },
+}
+
// text is a compiled vector icon.
var Text = gfx.Icon{
ViewBox: 16.0,
diff --git a/desktop/internal/fileicons/icons_tree.go b/desktop/internal/fileicons/icons_tree.go
index 7c9b4e71b4..afdf5e2c4a 100644
--- a/desktop/internal/fileicons/icons_tree.go
+++ b/desktop/internal/fileicons/icons_tree.go
@@ -1,12 +1,13 @@
// Code generated by viva icons. DO NOT EDIT.
// File-type and folder icons of the Lithe desktop client.
//
-// The SVGs in svg/ are the file-tree icons the previous Lithe macOS client shipped in
+// Most SVGs in svg/ are the file-tree icons the previous Lithe macOS client shipped in
// macos/Resources/IDEAIcons/, restored byte for byte from commit f1e8d8139^ of this
-// repository. Except for the two noted below, they come from the JetBrains IntelliJ
+// repository; the Build tool window icons listed last were copied byte for byte from the
+// upstream repository. Except for the two noted below, they come from the JetBrains IntelliJ
// Platform Community repository (https://github.com/JetBrains/intellij-community) and are
// distributed under the Apache License 2.0; see LICENSE-APACHE-2.0.txt. The previous
-// client's NOTICE.txt records their source paths and revisions, chiefly:
+// client's NOTICE.txt records the source paths and revisions of the restored icons, chiefly:
//
// - fileTypes/*.svg: platform/icons/src/expui/fileTypes/ (revisions
// e8d21e84ee23f99ae7237fbb4530ff2e7c3b47c5, c7f91397daa3a961b4e78bc634fe467a0a7d9ade,
@@ -31,6 +32,12 @@
// db_muted_breakpoint.svg (and their _dark siblings): IntelliJ Community classic debugger icons
// from platform/icons/src/debugger/ in the previous client's debugger/ assets (copyright headers
// 2000-2021 JetBrains); the previous NOTICE.txt did not record their source revision.
+// - The Build tool window icons, each with its _dark sibling, from revision
+// 512e1e2ade0c185a1bf30e5286e5f45eef7351a4: taskGroup.svg from platform/icons/src/expui/build/
+// (the New UI form of the configFolder icon of IntelliJ's Maven and Gradle task folders);
+// module.svg, artifact.svg, library.svg, libraryFolder.svg and testGroup.svg from
+// platform/icons/src/expui/nodes/; task.svg from
+// platform/external-system-impl/resources/icons/newui/.
//
// license.svg and makefile.svg (and their _dark siblings) are original Lithe icons,
// because the Community set has no LICENSE or Makefile glyph; they follow the Lithe
diff --git a/desktop/internal/fileicons/svg/artifact.svg b/desktop/internal/fileicons/svg/artifact.svg
new file mode 100644
index 0000000000..2b783ef0b2
--- /dev/null
+++ b/desktop/internal/fileicons/svg/artifact.svg
@@ -0,0 +1,10 @@
+
+
diff --git a/desktop/internal/fileicons/svg/artifact_dark.svg b/desktop/internal/fileicons/svg/artifact_dark.svg
new file mode 100644
index 0000000000..6da64d1375
--- /dev/null
+++ b/desktop/internal/fileicons/svg/artifact_dark.svg
@@ -0,0 +1,10 @@
+
+
diff --git a/desktop/internal/fileicons/svg/library.svg b/desktop/internal/fileicons/svg/library.svg
new file mode 100644
index 0000000000..59538313d8
--- /dev/null
+++ b/desktop/internal/fileicons/svg/library.svg
@@ -0,0 +1,7 @@
+
+
diff --git a/desktop/internal/fileicons/svg/libraryFolder.svg b/desktop/internal/fileicons/svg/libraryFolder.svg
new file mode 100644
index 0000000000..bf172c7758
--- /dev/null
+++ b/desktop/internal/fileicons/svg/libraryFolder.svg
@@ -0,0 +1,9 @@
+
+
diff --git a/desktop/internal/fileicons/svg/libraryFolder_dark.svg b/desktop/internal/fileicons/svg/libraryFolder_dark.svg
new file mode 100644
index 0000000000..8acb73e62c
--- /dev/null
+++ b/desktop/internal/fileicons/svg/libraryFolder_dark.svg
@@ -0,0 +1,9 @@
+
+
diff --git a/desktop/internal/fileicons/svg/library_dark.svg b/desktop/internal/fileicons/svg/library_dark.svg
new file mode 100644
index 0000000000..9dc4f24980
--- /dev/null
+++ b/desktop/internal/fileicons/svg/library_dark.svg
@@ -0,0 +1,7 @@
+
+
diff --git a/desktop/internal/fileicons/svg/module.svg b/desktop/internal/fileicons/svg/module.svg
new file mode 100644
index 0000000000..58df47c65f
--- /dev/null
+++ b/desktop/internal/fileicons/svg/module.svg
@@ -0,0 +1,6 @@
+
+
diff --git a/desktop/internal/fileicons/svg/module_dark.svg b/desktop/internal/fileicons/svg/module_dark.svg
new file mode 100644
index 0000000000..10c4673640
--- /dev/null
+++ b/desktop/internal/fileicons/svg/module_dark.svg
@@ -0,0 +1,6 @@
+
+
diff --git a/desktop/internal/fileicons/svg/task.svg b/desktop/internal/fileicons/svg/task.svg
new file mode 100644
index 0000000000..c1676b9eeb
--- /dev/null
+++ b/desktop/internal/fileicons/svg/task.svg
@@ -0,0 +1,4 @@
+
+
diff --git a/desktop/internal/fileicons/svg/taskGroup.svg b/desktop/internal/fileicons/svg/taskGroup.svg
new file mode 100644
index 0000000000..bf4283762e
--- /dev/null
+++ b/desktop/internal/fileicons/svg/taskGroup.svg
@@ -0,0 +1,8 @@
+
+
diff --git a/desktop/internal/fileicons/svg/taskGroup_dark.svg b/desktop/internal/fileicons/svg/taskGroup_dark.svg
new file mode 100644
index 0000000000..e065e8c4d2
--- /dev/null
+++ b/desktop/internal/fileicons/svg/taskGroup_dark.svg
@@ -0,0 +1,8 @@
+
+
diff --git a/desktop/internal/fileicons/svg/task_dark.svg b/desktop/internal/fileicons/svg/task_dark.svg
new file mode 100644
index 0000000000..e07345b499
--- /dev/null
+++ b/desktop/internal/fileicons/svg/task_dark.svg
@@ -0,0 +1,4 @@
+
+
diff --git a/desktop/internal/fileicons/svg/testGroup.svg b/desktop/internal/fileicons/svg/testGroup.svg
new file mode 100644
index 0000000000..fd35a62696
--- /dev/null
+++ b/desktop/internal/fileicons/svg/testGroup.svg
@@ -0,0 +1,6 @@
+
+
diff --git a/desktop/internal/fileicons/svg/testGroup_dark.svg b/desktop/internal/fileicons/svg/testGroup_dark.svg
new file mode 100644
index 0000000000..b1114bb1ba
--- /dev/null
+++ b/desktop/internal/fileicons/svg/testGroup_dark.svg
@@ -0,0 +1,6 @@
+
+
diff --git a/desktop/internal/i18n/build_messages.go b/desktop/internal/i18n/build_messages.go
index ef8c2edc19..b4bbfc3dfe 100644
--- a/desktop/internal/i18n/build_messages.go
+++ b/desktop/internal/i18n/build_messages.go
@@ -23,14 +23,11 @@ type BuildMessages struct {
Stopping string
Refresh string
Systems string
- Projects string
Targets string
- Tasks string
Output string
Stop string
EmptyOutput string
NoTasks string
- NoProjects string
LoadingModel string
ModelFailed func(error string) string
// TestDiscoveryFailed is the line of the Discovered Tests section after discovery failed.
@@ -65,14 +62,11 @@ func buildMessages(language Language) BuildMessages {
Stopping: Shared(language, "desktop.build.stopping"),
Refresh: Shared(language, "desktop.build.refresh"),
Systems: Shared(language, "desktop.build.systems"),
- Projects: Shared(language, "desktop.build.projects"),
Targets: Shared(language, "desktop.build.targets"),
- Tasks: Shared(language, "desktop.build.tasks"),
Output: Shared(language, "desktop.build.output"),
Stop: Shared(language, "desktop.build.stop"),
EmptyOutput: Shared(language, "desktop.build.emptyOutput"),
NoTasks: Shared(language, "desktop.build.noTasks"),
- NoProjects: Shared(language, "desktop.build.noProjects"),
LoadingModel: Shared(language, "desktop.build.loadingModel"),
ModelFailed: func(reason string) string {
return SharedFormat(language, "desktop.build.modelFailed", map[string]string{"error": reason})
diff --git a/desktop/internal/i18n/shared.generated.go b/desktop/internal/i18n/shared.generated.go
index ab419168e6..5ed5f3854c 100644
--- a/desktop/internal/i18n/shared.generated.go
+++ b/desktop/internal/i18n/shared.generated.go
@@ -86,6 +86,13 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.executableMissing": "No usable build executable was found for this build system.",
"desktop.build.exited": "Build exited with code {code}.",
"desktop.build.filter": "Filter build systems, tasks and targets",
+ "desktop.build.group.build": "Build",
+ "desktop.build.group.documentation": "Documentation",
+ "desktop.build.group.lifecycle": "Lifecycle",
+ "desktop.build.group.other": "Other",
+ "desktop.build.group.run": "Run",
+ "desktop.build.group.test": "Test",
+ "desktop.build.group.verification": "Verification",
"desktop.build.ignoredPaths": "Ignored Paths",
"desktop.build.ignoredPathsDefault": "Using the default list; changes are saved on this machine only.",
"desktop.build.ignoredPathsHelp": "One rule per line, written as in .gitignore and relative to the project root; rules match folders only. Later rules win, and a rule starting with ! brings a folder back into detection, even one Git ignores. By default every folder whose name starts with a dot, such as .claude/worktrees, is skipped; dependency caches and build outputs are always skipped. At most 256 rules.",
@@ -99,7 +106,6 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.noDebugAdapter": "The build provider's own plugin declares no debug adapter that can start a prepared program.",
"desktop.build.noMatches": "No matching build items",
"desktop.build.noOptions": "This build system declares no options.",
- "desktop.build.noProjects": "No projects in the build model",
"desktop.build.noTasks": "No build tasks",
"desktop.build.options": "Options",
"desktop.build.optionsTitle": "Build Options",
@@ -108,7 +114,6 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.preparing": "Preparing…",
"desktop.build.processFailed": "The process ended: {error}",
"desktop.build.projectMissing": "The selected project is no longer in the build model. Refresh the build system.",
- "desktop.build.projects": "Projects",
"desktop.build.refresh": "Detect build systems again",
"desktop.build.runSelected": "Run selected task",
"desktop.build.runTarget": "Run {name}",
@@ -119,9 +124,10 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.systems": "Build systems",
"desktop.build.targetMissing": "The selected target is no longer in the build model. Refresh the build system.",
"desktop.build.targets": "Targets",
- "desktop.build.tasks": "Tasks",
"desktop.build.testDiscoveryFailed": "Could not discover tests: {error}",
"desktop.build.toolchainGap": "The provider prepared {toolchain}. This build cannot launch a toolchain reference yet.",
+ "desktop.build.treeFailed": "The build tree could not be shown: {error}",
+ "desktop.build.treeTruncated": "Too many build items to list them all; only the first ones are shown.",
"desktop.build.versionTooOld": "The build tool is {version}, older than the required {minimum}.",
"desktop.changelists.moveSelected": "Move {count} Selected to Change List",
"desktop.clone.busy": "Cloning…",
@@ -2856,6 +2862,13 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.executableMissing": "未找到此构建系统可用的构建程序。",
"desktop.build.exited": "构建以代码 {code} 退出。",
"desktop.build.filter": "筛选构建系统、任务与目标",
+ "desktop.build.group.build": "构建",
+ "desktop.build.group.documentation": "文档",
+ "desktop.build.group.lifecycle": "生命周期",
+ "desktop.build.group.other": "其他",
+ "desktop.build.group.run": "运行",
+ "desktop.build.group.test": "测试",
+ "desktop.build.group.verification": "验证",
"desktop.build.ignoredPaths": "忽略路径",
"desktop.build.ignoredPathsDefault": "当前使用默认设置;修改后只保存在本机。",
"desktop.build.ignoredPathsHelp": "一行一条规则,写法同 .gitignore,相对项目根目录,只匹配文件夹。后面的规则优先,以 ! 开头的规则让文件夹重新参与检测,包括被 Git 忽略的文件夹。默认忽略所有以 . 开头的文件夹,例如 .claude/worktrees;依赖缓存和构建输出始终跳过。最多 256 条。",
@@ -2869,7 +2882,6 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.noDebugAdapter": "该构建插件所属的插件没有声明可以启动已准备程序的调试适配器。",
"desktop.build.noMatches": "没有匹配的构建项",
"desktop.build.noOptions": "此构建系统没有声明可配置的选项。",
- "desktop.build.noProjects": "构建模型中没有项目",
"desktop.build.noTasks": "没有构建任务",
"desktop.build.options": "选项",
"desktop.build.optionsTitle": "构建选项",
@@ -2878,7 +2890,6 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.preparing": "正在准备…",
"desktop.build.processFailed": "进程结束:{error}",
"desktop.build.projectMissing": "所选项目已不在构建模型中,请刷新构建系统。",
- "desktop.build.projects": "项目",
"desktop.build.refresh": "重新检测构建系统",
"desktop.build.runSelected": "运行所选任务",
"desktop.build.runTarget": "运行 {name}",
@@ -2889,9 +2900,10 @@ var sharedCatalogs = map[string]map[string]string{
"desktop.build.systems": "构建系统",
"desktop.build.targetMissing": "所选目标已不在构建模型中,请刷新构建系统。",
"desktop.build.targets": "目标",
- "desktop.build.tasks": "任务",
"desktop.build.testDiscoveryFailed": "无法发现测试:{error}",
"desktop.build.toolchainGap": "提供者准备了 {toolchain}。当前构建尚不能启动工具链引用。",
+ "desktop.build.treeFailed": "无法显示构建树:{error}",
+ "desktop.build.treeTruncated": "构建项太多,只列出了前面一部分。",
"desktop.build.versionTooOld": "构建工具版本为 {version},低于要求的 {minimum}。",
"desktop.changelists.moveSelected": "将所选 {count} 个变更移到变更列表",
"desktop.clone.busy": "正在克隆…",
diff --git a/desktop/internal/workbench/app.go b/desktop/internal/workbench/app.go
index 470809c70e..d3da893cc9 100644
--- a/desktop/internal/workbench/app.go
+++ b/desktop/internal/workbench/app.go
@@ -118,6 +118,8 @@ type Kernel interface {
PlanBuildDebug(ctx context.Context, manifest json.RawMessage, buildSystemID string, request core.BuildPlanRequest) (core.BuildPlan, error)
DecodeBuildDebug(ctx context.Context, manifest json.RawMessage, buildSystemID string, request core.BuildDecodeDebugRequest) (core.BuildDebugPreparation, error)
DecodeBuildModel(ctx context.Context, manifest json.RawMessage, buildSystemID string, request core.BuildDecodeModelRequest) (core.BuildModel, error)
+ // BuildModelTree lays out a loaded model as the Build tool window's tree (build_tree.go).
+ BuildModelTree(ctx context.Context, manifest json.RawMessage, buildSystemID string, request core.BuildModelTreeRequest) (core.BuildModelTree, error)
DecodeBuildRun(ctx context.Context, manifest json.RawMessage, buildSystemID string, request core.BuildDecodeRunRequest) (core.BuildLaunch, error)
ToolchainRegistryOf(ctx context.Context, manifests []json.RawMessage) (core.ToolchainRegistry, error)
// CommandInstallerRequirements, PlanCommandInstaller and CommandInstallerDefaultDirectory
diff --git a/desktop/internal/workbench/build.go b/desktop/internal/workbench/build.go
index 6054d5819d..8531dea78d 100644
--- a/desktop/internal/workbench/build.go
+++ b/desktop/internal/workbench/build.go
@@ -88,6 +88,10 @@ type buildInstance struct {
modelLoading bool
modelReloadPending bool
modelError string
+ // modelVersion counts the models the instance loaded, so a tree laid out from an earlier
+ // one is known stale; trees are the Build window's trees of the model (build_tree.go).
+ modelVersion uint64
+ trees buildTrees
}
// buildOperation is the one Build execution the window runs: a task or a run, from the
@@ -849,6 +853,7 @@ func (a *App) finishBuildModel(p *project, id string, model core.BuildModel, err
}
p.build.instances[index].Model = model
p.build.instances[index].modelLoaded = true
+ p.build.instances[index].modelVersion++
p.build.status = ""
// The runs the model offers become run configurations.
a.refreshRunConfigurations(p)
@@ -874,10 +879,10 @@ func (p *project) selectedBuildInstance() *buildInstance {
return &p.build.instances[p.build.selected]
}
-// runSelectedBuildTask runs the selected declared or model task. The tree lists tasks under
-// their build system, not under a project, so the window's project and target are only a hint:
-// a model task runs on the project it belongs to, and a declared task on what
-// buildTaskSelection makes of the selection for the scopes it declares.
+// runSelectedBuildTask runs the selected declared or model task. A model task runs on the
+// project it belongs to, and a declared task on what buildTaskSelection makes of the selection
+// for the scopes it declares: a task row of the tree selects the project and target Core
+// placed it under, a run configuration or the header button may leave them to be fitted.
func (a *App) runSelectedBuildTask(p *project) {
projectID, targetID := p.build.projectID, p.build.targetID
if instance := p.selectedBuildInstance(); instance != nil && p.build.operation == nil {
diff --git a/desktop/internal/workbench/build_dependencies.go b/desktop/internal/workbench/build_dependencies.go
index 30f23a251c..791a2c03c2 100644
--- a/desktop/internal/workbench/build_dependencies.go
+++ b/desktop/internal/workbench/build_dependencies.go
@@ -11,14 +11,15 @@ import (
"time"
"github.com/1lck/Lithe-IDEA/desktop/internal/core"
+ "github.com/1lck/Lithe-IDEA/desktop/internal/fileicons"
"github.com/1lck/Lithe-IDEA/desktop/internal/i18n"
- "github.com/1lck/Lithe-IDEA/desktop/internal/icons"
"github.com/1lck/Lithe-IDEA/desktop/internal/treelist"
"github.com/vivaui/viva/ui"
)
-// The Build tool window lists the dependencies of the chosen project (of the whole build when
-// none is chosen) under its projects. The build plugin says how to get them: Core plans the
+// The Build tool window lists each project's dependencies under its node, and the whole
+// build's under the group, for the scopes the build system declares (Core places the nodes,
+// build.modelTree). The build plugin says how to get them: Core plans the
// command or the provider request (build.dependencyPlan) and decodes the answer into a
// bounded tree (build.decodeDependencies); the window only runs, shows and navigates. A
// dependency row opens and closes its children; a double click opens the project's build file.
@@ -59,34 +60,6 @@ func (a *App) dependenciesOf(p *project, instance *buildInstance, projectID stri
return deps
}
-// buildDependencyProject is the project whose dependencies the window lists, and whether it lists
-// any: the chosen project, or the whole build when none is chosen. Core refuses a scope the build
-// system does not declare (plugin.build.invalidSelection), so an undeclared scope lists nothing;
-// with no project chosen and only the project scope declared, a model of one project lists its own.
-func buildDependencyProject(instance *buildInstance, chosen string) (string, bool) {
- declared := instance.System.Dependencies
- if declared == nil {
- return "", false
- }
- declares := func(scope string) bool {
- for _, s := range declared.Scopes {
- if s == scope {
- return true
- }
- }
- return false
- }
- switch {
- case chosen != "" && declares("project"):
- return chosen, true
- case chosen == "" && declares("workspace"):
- return "", true
- case chosen == "" && declares("project") && len(instance.Model.Projects) == 1:
- return instance.Model.Projects[0].ID, true
- }
- return "", false
-}
-
// reloadBuildDependencies forgets every loaded tree, for a reloaded model.
func (p *project) reloadBuildDependencies() {
for _, deps := range p.build.dependencies {
@@ -355,7 +328,7 @@ func (a *App) buildDependencyRow(row ui.ListRow, p *project, instance *buildInst
deps := a.dependenciesOf(p, instance, spec.project)
element := a.buildTreeRowElement(row, spec)
toggled := a.buildArrow(c, spec.label, !spec.leaf, deps.open[spec.path])
- ui.Icon(c, icons.Archive).Size(14, 14).Shrink(0).Color(a.colors.Subtle)
+ ui.Icon(c, fileicons.ForBuildNode(fileicons.BuildDependency, a.colors.Dark)).Size(treelist.Icon, treelist.Icon).Shrink(0)
ui.Text(c, spec.label).FontSize(treeFontSize).Color(treelist.Text(a.colors.Dark)).Ellipsis().Shrink(1).MinWidth(0)
if spec.detail != "" {
ui.Text(c, spec.detail).FontSize(treeFontSize - 1).Color(a.colors.Subtle).Shrink(0)
diff --git a/desktop/internal/workbench/build_menus.go b/desktop/internal/workbench/build_menus.go
index 093f07801a..1fe5c1055a 100644
--- a/desktop/internal/workbench/build_menus.go
+++ b/desktop/internal/workbench/build_menus.go
@@ -19,21 +19,31 @@ import (
// buildRowMenu is the menu of one project, target or task row of the build tree.
func (a *App) buildRowMenu(c ui.C, row ui.Box, p *project, instance *buildInstance, spec buildRow) {
+ node := spec.node
ui.ContextMenu(c, row, func(menu *ui.MenuItems) {
b, lang := &p.build, a.language()
menu.WidthRange(180, 280)
+ index := spec.instance
+ // choose selects what the row stands for, as a click on it does.
+ choose := func() {
+ a.chooseBuildInstance(p, index)
+ b.projectID, b.targetID, b.taskID = node.ProjectID, node.TargetID, node.TaskID
+ }
switch spec.kind {
case buildRowTask:
if menu.Item(i18n.Shared(lang, "desktop.runConfig.run")).Disabled(b.operation != nil).Clicked() {
c.After(func() {
a.performed("build.task.run", surfaceContextMenu)
- a.chooseBuildInstance(p, spec.instance)
- b.taskID = spec.id
+ choose()
a.runSelectedBuildTask(p)
a.showBuildConsole(p)
})
}
case buildRowTarget:
+ if spec.target == nil {
+ return
+ }
+ targetID := node.TargetID
for _, run := range instance.System.Runs {
if !buildRunApplies(run, *spec.target) {
continue
@@ -42,9 +52,8 @@ func (a *App) buildRowMenu(c ui.C, row ui.Box, p *project, instance *buildInstan
if menu.Item(a.text.Build.RunTarget(run.Name)).Disabled(b.operation != nil || instance.modelLoading).Clicked() {
c.After(func() {
a.performed("build.target.run", surfaceContextMenu)
- a.chooseBuildInstance(p, spec.instance)
- b.projectID, b.targetID = spec.project, spec.id
- a.runBuildTarget(p, spec.id, runID)
+ choose()
+ a.runBuildTarget(p, targetID, runID)
a.showBuildConsole(p)
})
}
@@ -53,19 +62,17 @@ func (a *App) buildRowMenu(c ui.C, row ui.Box, p *project, instance *buildInstan
if run.DebugAdapter != "" && menu.Item(i18n.Shared(lang, "desktop.build.debugTarget")).Disabled(b.operation != nil || instance.modelLoading || p.debug.preparing).Clicked() {
c.After(func() {
a.performed("build.target.debug", surfaceContextMenu)
- a.chooseBuildInstance(p, spec.instance)
- b.projectID, b.targetID = spec.project, spec.id
- a.debugBuildTarget(p, spec.id, runID)
+ choose()
+ a.debugBuildTarget(p, targetID, runID)
})
}
}
- for _, entry := range buildTargetRunEntries(instance, spec.id) {
+ for _, entry := range buildTargetRunEntries(instance, targetID) {
entryID := entry.ID
if menu.Item(a.text.Build.RunTarget(entry.Name)).Disabled(b.operation != nil || instance.modelLoading).Clicked() {
c.After(func() {
a.performed("build.target.run", surfaceContextMenu)
- a.chooseBuildInstance(p, spec.instance)
- b.projectID, b.targetID = spec.project, spec.id
+ choose()
a.runBuildEntry(p, entryID)
a.showBuildConsole(p)
})
@@ -75,32 +82,13 @@ func (a *App) buildRowMenu(c ui.C, row ui.Box, p *project, instance *buildInstan
if menu.Item(i18n.Shared(lang, "native.runTests")).Disabled(p.tests.running || instance.modelLoading).Clicked() {
c.After(func() {
a.performed("build.target.test", surfaceContextMenu)
- a.chooseBuildInstance(p, spec.instance)
- b.projectID, b.targetID = spec.project, spec.id
- a.runBuildTargetTests(p, instance, spec.id)
+ choose()
+ a.runBuildTargetTests(p, instance, targetID)
})
}
}
case buildRowProject:
- if buildTestDeclares(instance, "project") {
- if menu.Item(i18n.Shared(lang, "native.runTests")).Disabled(p.tests.running || instance.modelLoading).Clicked() {
- c.After(func() {
- a.performed("build.project.test", surfaceContextMenu)
- a.chooseBuildInstance(p, spec.instance)
- a.runBuildProjectTests(p, instance, spec.id)
- })
- }
- }
- if path := buildFileOf(p, instance, spec.id); path != "" {
- label := i18n.SharedFormat(lang, "native.open", map[string]string{"arg1": filepath.Base(path)})
- if menu.Item(label).Clicked() {
- c.After(func() {
- a.performed("build.project.openBuildFile", surfaceContextMenu)
- a.openFile(p, path)
- })
- }
- }
- index := spec.instance
+ a.buildProjectMenuItems(c, menu, p, instance, index, node.ProjectID)
if menu.Item(i18n.Shared(lang, "native.reload")).Disabled(instance.modelLoading || b.operation != nil).Clicked() {
c.After(func() {
a.performed("build.model.reload", surfaceContextMenu)
@@ -111,6 +99,31 @@ func (a *App) buildRowMenu(c ui.C, row ui.Box, p *project, instance *buildInstan
})
}
+// buildProjectMenuItems are the items of a project's menu, on its row or on the group row that
+// stands for it: run its tests, when its build system declares the project test scope, and open
+// its build file.
+func (a *App) buildProjectMenuItems(c ui.C, menu *ui.MenuItems, p *project, instance *buildInstance, index int, projectID string) {
+ lang := a.language()
+ if buildTestDeclares(instance, "project") {
+ if menu.Item(i18n.Shared(lang, "native.runTests")).Disabled(p.tests.running || instance.modelLoading).Clicked() {
+ c.After(func() {
+ a.performed("build.project.test", surfaceContextMenu)
+ a.chooseBuildInstance(p, index)
+ a.runBuildProjectTests(p, instance, projectID)
+ })
+ }
+ }
+ if path := buildFileOf(p, instance, projectID); path != "" {
+ label := i18n.SharedFormat(lang, "native.open", map[string]string{"arg1": filepath.Base(path)})
+ if menu.Item(label).Clicked() {
+ c.After(func() {
+ a.performed("build.project.openBuildFile", surfaceContextMenu)
+ a.openFile(p, path)
+ })
+ }
+ }
+}
+
// buildDependencyMenu is the menu of the dependency tree of the chosen project: of one of its
// rows, or of the line that stands for it while it loads, after it failed or when it is empty.
func (a *App) buildDependencyMenu(c ui.C, row ui.Box, p *project, instance *buildInstance, projectID string) {
diff --git a/desktop/internal/workbench/build_menus_test.go b/desktop/internal/workbench/build_menus_test.go
index ac6e64874c..cbf29cf74b 100644
--- a/desktop/internal/workbench/build_menus_test.go
+++ b/desktop/internal/workbench/build_menus_test.go
@@ -29,16 +29,17 @@ func TestBuildRowMenusRunTargetsAndOpenTheBuildFile(t *testing.T) {
// The build root is a directory of the workspace and the project's path is relative to it,
// so the build file is found under both.
instance := runConfigInstance("app")
- instance.Manifest = []byte(`{"buildSystems":[{"id":"engine","detection":{"markers":["engine.build"]}}]}`)
+ instance.Manifest = buildTestManifest(&instance)
h.app.post(func(a *App) {
p.build.instances, p.build.loaded = []buildInstance{instance}, true
+ // Every node opens, so the target shows in its project's Targets folder.
+ p.setAllBuildGroups(true)
a.reduceChrome(core.ToggleChrome(itemBuild))
})
- // The choices list holds the projects, dependencies, targets and tasks; a tall window
- // shows every section.
if err := h.driver.Resize(1280, 1400); err != nil {
t.Fatal(err)
}
+ laidOutBuildRows(t, h, p)
h.settle()
h.settle()
@@ -59,7 +60,8 @@ func TestBuildRowMenusRunTargetsAndOpenTheBuildFile(t *testing.T) {
}
awaitStateWithin(t, h, 10*time.Second, "the refused run to end", func() bool { return p.build.operation == nil })
- // A project opens the build file its build system detects in its directory.
+ // A project opens the build file its build system detects in its directory; the only
+ // project's menu is the menu of the group that stands for it.
h.settle()
h.rightClickAt(h.labelBounds("server"))
h.click(center(h.popupHit(i18n.SharedFormat(h.app.language(), "native.open", map[string]string{"arg1": "engine.build"}))))
diff --git a/desktop/internal/workbench/build_panels_visual_test.go b/desktop/internal/workbench/build_panels_visual_test.go
index 5287535697..60d2cfa0eb 100644
--- a/desktop/internal/workbench/build_panels_visual_test.go
+++ b/desktop/internal/workbench/build_panels_visual_test.go
@@ -17,44 +17,72 @@ import (
)
// visualBuildSystems is a workspace with several build systems a plugin could detect, each at
-// its own root, with the projects, targets and tasks their models list.
+// its own root, with the projects, targets and tasks their models list. Maven's is a reactor,
+// as IntelliJ's Maven window shows one: the root project shop holds shop-core and shop-web, and
+// each project lists the lifecycle phases, the plugin goals its model reports by plugin, and
+// its dependencies.
func visualBuildSystems() []buildInstance {
system := func(id, name, root string, runs []pluginservice.BuildRunDeclaration, tasks []pluginservice.BuildTaskDeclaration, model core.BuildModel) buildInstance {
- return buildInstance{
+ instance := buildInstance{
BuildInstance: core.BuildInstance{ID: id + "@" + root, PluginID: "dev.example." + id, BuildSystemID: id, Root: root},
PluginID: "dev.example." + id,
- System: pluginservice.BuildSystemDeclaration{DisplayName: name, Runs: runs, Tasks: tasks},
- Model: model,
- modelLoaded: true,
+ System: pluginservice.BuildSystemDeclaration{
+ DisplayName: name, Runs: runs, Tasks: tasks,
+ Dependencies: &pluginservice.BuildDependenciesDeclaration{Scopes: []string{"project"}},
+ },
+ Model: model,
+ modelLoaded: true,
}
+ instance.Manifest = buildTestManifest(&instance)
+ return instance
}
- task := func(id, name string, category ...string) pluginservice.BuildTaskDeclaration {
- return pluginservice.BuildTaskDeclaration{ID: id, DisplayName: name, Source: "provider", Category: category}
+ // task runs on the whole build or on one of its projects.
+ task := func(id, name, group string, category ...string) pluginservice.BuildTaskDeclaration {
+ return pluginservice.BuildTaskDeclaration{
+ ID: id, DisplayName: name, Group: group, Category: category, Scopes: []string{"workspace", "project"}, Source: "provider",
+ }
+ }
+ goal := func(project, plugin, name string) core.BuildTask {
+ return core.BuildTask{
+ ID: project + ":" + plugin + ":" + name, ProjectID: project, Name: plugin + ":" + name, Template: "goal",
+ Group: "build", Category: []string{"Plugins", plugin}, Execution: "task",
+ }
}
run := []pluginservice.BuildRunDeclaration{{ID: "application", Name: "Run", Tags: []string{"app"}}}
+ lifecycle := []pluginservice.BuildTaskDeclaration{}
+ for _, phase := range []string{"clean", "validate", "compile", "test", "package", "verify", "install", "deploy"} {
+ lifecycle = append(lifecycle, task(phase, phase, "lifecycle", "Lifecycle"))
+ }
+ lifecycle = append(lifecycle, pluginservice.BuildTaskDeclaration{ID: "goal", DisplayName: "Plugin goal", Group: "build", FromModel: true, Source: "provider"})
return []buildInstance{
- system("maven", "Maven", ".", run, []pluginservice.BuildTaskDeclaration{
- task("clean", "clean", "Lifecycle"), task("compile", "compile", "Lifecycle"),
- task("test", "test", "Lifecycle"), task("package", "package", "Lifecycle"), task("install", "install", "Lifecycle"),
- }, core.BuildModel{
- Projects: []core.BuildProject{{ID: "shop", Path: ".", Name: "shop"}, {ID: "core", Path: "core", Name: "shop-core"}, {ID: "web", Path: "web", Name: "shop-web"}},
- Targets: []core.BuildTarget{{ID: "web-app", ProjectID: "web", Name: "ShopApplication", Path: "web", Tags: []string{"app"}}},
+ system("maven", "Maven", ".", run, lifecycle, core.BuildModel{
+ Projects: []core.BuildProject{
+ {ID: "shop", Path: ".", Name: "shop"},
+ {ID: "core", Path: "core", Name: "shop-core", ParentID: "shop"},
+ {ID: "web", Path: "web", Name: "shop-web", ParentID: "shop"},
+ },
+ Targets: []core.BuildTarget{{ID: "web-app", ProjectID: "web", Name: "ShopApplication", Path: "web", Tags: []string{"app"}}},
+ Tasks: []core.BuildTask{
+ goal("shop", "clean", "clean"), goal("shop", "install", "install"),
+ goal("core", "compiler", "compile"), goal("core", "compiler", "testCompile"), goal("core", "surefire", "test"), goal("core", "jar", "jar"),
+ goal("web", "compiler", "compile"), goal("web", "spring-boot", "run"), goal("web", "spring-boot", "repackage"),
+ },
}),
system("gradle", "Gradle", "android", run, []pluginservice.BuildTaskDeclaration{
- task("assemble", "assemble", "Build"), task("build", "build", "Build"), task("check", "check", "Verification"),
+ task("assemble", "assemble", "build", "Build"), task("build", "build", "build", "Build"), task("check", "check", "verification", "Verification"),
}, core.BuildModel{
Projects: []core.BuildProject{{ID: "app", Path: "app", Name: "app"}},
Targets: []core.BuildTarget{{ID: "debug", ProjectID: "app", Name: "debug", Tags: []string{"app"}}, {ID: "release", ProjectID: "app", Name: "release", Tags: []string{"app"}}},
}),
- system("cargo", "Cargo", "tools/cli", run, []pluginservice.BuildTaskDeclaration{task("build", "build"), task("test", "test")}, core.BuildModel{
+ system("cargo", "Cargo", "tools/cli", run, []pluginservice.BuildTaskDeclaration{task("build", "build", "build"), task("test", "test", "test")}, core.BuildModel{
Projects: []core.BuildProject{{ID: "cli", Path: ".", Name: "shop-cli"}},
Targets: []core.BuildTarget{{ID: "bin", ProjectID: "cli", Name: "shop-cli", Tags: []string{"app"}}, {ID: "lib", ProjectID: "cli", Name: "parser", Tags: []string{"library"}}},
}),
- system("go", "Go Modules", "services/api", run, []pluginservice.BuildTaskDeclaration{task("build", "go build"), task("test", "go test")}, core.BuildModel{
+ system("go", "Go Modules", "services/api", run, []pluginservice.BuildTaskDeclaration{task("build", "go build", "build"), task("test", "go test", "test")}, core.BuildModel{
Projects: []core.BuildProject{{ID: "api", Path: ".", Name: "api"}},
Targets: []core.BuildTarget{{ID: "server", ProjectID: "api", Name: "cmd/server", Tags: []string{"app"}}},
}),
- system("npm", "npm", "web/frontend", nil, []pluginservice.BuildTaskDeclaration{task("dev", "dev"), task("build", "build"), task("lint", "lint")}, core.BuildModel{
+ system("npm", "npm", "web/frontend", nil, []pluginservice.BuildTaskDeclaration{task("dev", "dev", "run"), task("build", "build", "build"), task("lint", "lint", "verification")}, core.BuildModel{
Projects: []core.BuildProject{{ID: "frontend", Path: ".", Name: "frontend"}},
}),
}
@@ -68,13 +96,16 @@ func visualGoModule() buildInstance {
pkg := func(dir, tag string) core.BuildTarget {
return core.BuildTarget{ID: dir, ProjectID: "desktop", Name: module + "/" + dir, Path: dir, Tags: []string{tag}}
}
- return buildInstance{
+ instance := buildInstance{
BuildInstance: core.BuildInstance{ID: "go@desktop", PluginID: "dev.example.go", BuildSystemID: "go", Root: "desktop"},
PluginID: "dev.example.go",
System: pluginservice.BuildSystemDeclaration{
- DisplayName: "Go Modules",
- Runs: []pluginservice.BuildRunDeclaration{{ID: "main", Name: "Run", Tags: []string{"application"}}},
- Tasks: []pluginservice.BuildTaskDeclaration{{ID: "build", DisplayName: "Build", Source: "provider"}, {ID: "vet", DisplayName: "Vet", Source: "provider"}},
+ DisplayName: "Go Modules",
+ Runs: []pluginservice.BuildRunDeclaration{{ID: "main", Name: "Run", Tags: []string{"application"}}},
+ Tasks: []pluginservice.BuildTaskDeclaration{
+ {ID: "build", DisplayName: "Build", Group: "build", Scopes: []string{"project"}, Source: "provider"},
+ {ID: "vet", DisplayName: "Vet", Group: "verification", Scopes: []string{"project"}, Source: "provider"},
+ },
Dependencies: &pluginservice.BuildDependenciesDeclaration{Scopes: []string{"project"}},
},
Model: core.BuildModel{
@@ -87,6 +118,8 @@ func visualGoModule() buildInstance {
},
modelLoaded: true,
}
+ instance.Manifest = buildTestManifest(&instance)
+ return instance
}
// TestVisualBuildPanels captures the Build window on the right, with the run configurations
@@ -129,12 +162,17 @@ func TestVisualBuildPanels(t *testing.T) {
p := h.app.project
h.app.post(func(a *App) {
p.build.instances, p.build.loaded, p.build.selected = visualBuildSystems(), true, 0
- p.build.taskID = "package"
- p.setBuildOpen(buildOpenKey(p.build.instances[1].ID, ""), true)
+ p.build.projectID, p.build.taskID = "web", "package"
+ p.setBuildGroupOpen(1, true)
a.reduceChrome(core.SetChromeOpen(itemBuild, true))
a.refreshRunConfigurations(p)
})
h.settleChain()
+ // The folders a user opens to reach shop-core's compiler goals and shop-web's
+ // lifecycle; the rest stay closed, as they start.
+ for _, path := range [][]string{{"shop-core", "Plugins"}, {"shop-core", "Plugins", "compiler"}, {"shop-web", "Lifecycle"}} {
+ setBuildNodeOpen(t, p, laidOutBuildRows(t, h, p), true, path...)
+ }
switch scene {
case "build-and-run":
h.app.post(func(a *App) {
@@ -172,6 +210,8 @@ func TestVisualBuildPanels(t *testing.T) {
p.build.projectID, p.build.targetID, p.build.taskID = "desktop", "internal/catalog", ""
a.refreshRunConfigurations(p)
})
+ h.settleChain()
+ setBuildNodeOpen(t, p, laidOutBuildRows(t, h, p), true, h.app.text.Build.Targets)
}
h.settleChain()
h.app.invalidator.Invalidate()
diff --git a/desktop/internal/workbench/build_test.go b/desktop/internal/workbench/build_test.go
index 03fdb86b1e..69d6be5352 100644
--- a/desktop/internal/workbench/build_test.go
+++ b/desktop/internal/workbench/build_test.go
@@ -109,36 +109,11 @@ func TestBuildLoadKeepsWorkingWhenDetectionReportsAnInvalidManifest(t *testing.T
}
}
-// The window asks only for dependencies of a scope the build system declares (Core refuses any
-// other with plugin.build.invalidSelection), names two instances of one system by their roots, and
-// lists command tasks beside provider ones.
-func TestBuildWindowPresentsDeclaredScopesRootsAndCommandTasks(t *testing.T) {
+// The window names two instances of one system by their roots.
+func TestBuildWindowNamesInstancesByTheirRoots(t *testing.T) {
instance := &buildInstance{
BuildInstance: core.BuildInstance{BuildSystemID: "go", Root: "."},
- System: pluginservice.BuildSystemDeclaration{
- DisplayName: "Go Modules",
- Dependencies: &pluginservice.BuildDependenciesDeclaration{Scopes: []string{"project"}},
- Tasks: []pluginservice.BuildTaskDeclaration{
- {ID: "build", Source: "command", Category: []string{"Build"}},
- {ID: "goal", Source: "provider", Group: "other"},
- {ID: "model", FromModel: true},
- },
- },
- Model: core.BuildModel{Projects: []core.BuildProject{{ID: "root", Path: "."}, {ID: "lib", Path: "lib"}}},
- }
- if _, ok := buildDependencyProject(instance, ""); ok {
- t.Fatal("a build declaring only the project scope was asked for workspace dependencies")
- }
- if project, ok := buildDependencyProject(instance, "lib"); !ok || project != "lib" {
- t.Fatalf("chosen project = %q, %v", project, ok)
- }
- instance.Model.Projects = instance.Model.Projects[:1]
- if project, ok := buildDependencyProject(instance, ""); !ok || project != "root" {
- t.Fatalf("the only project = %q, %v", project, ok)
- }
- instance.System.Dependencies = nil
- if _, ok := buildDependencyProject(instance, "root"); ok {
- t.Fatal("a build declaring no dependencies was asked for them")
+ System: pluginservice.BuildSystemDeclaration{DisplayName: "Go Modules"},
}
if name, root := buildSystemName(instance), buildRootDetail(instance); name != "Go Modules" || root != "" {
t.Fatalf("workspace root group = %q, %q", name, root)
@@ -147,11 +122,4 @@ func TestBuildWindowPresentsDeclaredScopesRootsAndCommandTasks(t *testing.T) {
if name, root := buildSystemName(instance), buildRootDetail(instance); name != "Go Modules" || root != ".claude/worktrees/x/desktop" {
t.Fatalf("nested root group = %q, %q", name, root)
}
- tasks := declaredTasks(instance)
- if len(tasks) != 2 || tasks[0].ID != "build" || tasks[1].ID != "goal" {
- t.Fatalf("declared tasks = %+v", tasks)
- }
- if detail := buildTaskDetail(&tasks[0]); detail != "Build" {
- t.Fatalf("category detail = %q", detail)
- }
}
diff --git a/desktop/internal/workbench/build_tests_test.go b/desktop/internal/workbench/build_tests_test.go
index 52ae51893b..8aade6f69c 100644
--- a/desktop/internal/workbench/build_tests_test.go
+++ b/desktop/internal/workbench/build_tests_test.go
@@ -129,6 +129,13 @@ func TestBuildWindowRunsProjectTargetAndDiscoveredTests(t *testing.T) {
}
runTests := i18n.Shared(h.app.language(), "native.runTests")
+ // The library's targets show in its Targets folder, which starts closed.
+ setBuildNodeOpen(t, p, laidOutBuildRows(t, h, p), true, "library", h.app.text.Build.Targets)
+ showBuild()
+ if h.labelBounds("libapp") == (gfx.Rect{}) || h.labelBounds("libtests") == (gfx.Rect{}) {
+ t.Fatal("the opened Targets folder does not show the library's targets")
+ }
+
// A project runs its own tests.
h.rightClickAt(h.labelBounds("library"))
h.click(center(h.popupHit(runTests)))
@@ -154,7 +161,9 @@ func TestBuildWindowRunsProjectTargetAndDiscoveredTests(t *testing.T) {
t.Fatalf("target run request = %+v", request)
}
- // Discovery runs when asked and lists the provider's tests; one runs alone.
+ // Discovery runs when asked, from the Discovered Tests folder, and lists the provider's
+ // tests; one runs alone.
+ setBuildNodeOpen(t, p, laidOutBuildRows(t, h, p), true, i18n.Shared(h.app.language(), "native.discoveredTests"))
showBuild()
h.clickNamed(i18n.Shared(h.app.language(), "native.discoverTests"))
awaitStateWithin(t, h, 60*time.Second, "the discovered tests", func() bool {
diff --git a/desktop/internal/workbench/build_tree.go b/desktop/internal/workbench/build_tree.go
index 0305f37253..ac1b345729 100644
--- a/desktop/internal/workbench/build_tree.go
+++ b/desktop/internal/workbench/build_tree.go
@@ -1,8 +1,10 @@
package workbench
import (
+ "context"
"hash/fnv"
"strings"
+ "time"
"github.com/1lck/Lithe-IDEA/desktop/internal/core"
"github.com/1lck/Lithe-IDEA/desktop/internal/i18n"
@@ -10,72 +12,130 @@ import (
// The Build tool window on the right stripe: every build system the workspace uses, as one
// tree. A workspace can hold many of them (a nested checkout per module, one build tool beside
-// another), so they are not tabs to switch between but groups the user opens and closes, each
-// with its projects, dependencies, targets, tasks and discovered tests as sections.
+// another), so they are not tabs to switch between but groups the user opens and closes.
+//
+// Inside a group the tree is the build tool's own: Core lays it out from the loaded model
+// (build.modelTree), with child projects nested under their parent and every project holding
+// its task folders (a Maven project's lifecycle and plugins), its dependencies and its targets.
+// A model with one root project shows that project's contents straight under the group, so
+// the group row stands for it. The layout runs off the window thread, once per model and
+// filter; the window thread only walks the nodes that are open.
//
// The window's actions act on one instance, the selected one (build.go): a click on a row of
// another group selects that group's instance first. The selected instance's group is open
-// until the user closes it, and only its rows show a selection and the project scope; the
-// other groups show what their model holds.
+// until the user closes it, and only its rows show a selection.
//
// A group's model is loaded when the group is open, a few at a time, so a workspace of many
-// build systems does not start every build tool at once. The dependencies section starts
-// closed: its tree is a command of the build tool, run only once the user asks to see it.
-
-// The sections of one build system's group, by the key their open state is stored under.
-const (
- buildSectionProjects = "projects"
- buildSectionDependencies = "dependencies"
- buildSectionTargets = "targets"
- buildSectionTasks = "tasks"
- buildSectionTests = "tests"
-)
+// build systems does not start every build tool at once. A dependencies node starts closed:
+// its tree is a command of the build tool, run only once the user opens it.
// buildModelLoadsAtOnce bounds the models loaded together for the open groups; the next one
// starts when one of them ends.
const buildModelLoadsAtOnce = 4
-// buildOpenKey names the open state of a group (section "") or of one of its sections.
-func buildOpenKey(instanceID, section string) string { return instanceID + "\x00" + section }
+// buildTreeTimeout bounds one layout of a tree by Core, which reads only the model it is sent.
+const buildTreeTimeout = 30 * time.Second
+
+// buildGroupHeadings name every task group a build system files its tasks under; Core heads the
+// folder of a task without a category with its group's name.
+func buildGroupHeadings(language i18n.Language) map[string]string {
+ return map[string]string{
+ "lifecycle": i18n.Shared(language, "desktop.build.group.lifecycle"),
+ "build": i18n.Shared(language, "desktop.build.group.build"),
+ "test": i18n.Shared(language, "desktop.build.group.test"),
+ "run": i18n.Shared(language, "desktop.build.group.run"),
+ "verification": i18n.Shared(language, "desktop.build.group.verification"),
+ "documentation": i18n.Shared(language, "desktop.build.group.documentation"),
+ "other": i18n.Shared(language, "desktop.build.group.other"),
+ }
+}
+
+// buildTree is one instance's tree as Core laid it out for one filter. version is the model
+// version it came from (buildInstance.modelVersion), query and language the filter and the
+// language of its folder headings. targets finds a target node's target in that model by ID.
+type buildTree struct {
+ version uint64
+ query string
+ language i18n.Language
+ tree core.BuildModelTree
+ failed string
+ targets map[string]int
+}
+
+// buildTrees are the trees of one instance: the whole tree and the latest filtered one, each
+// with whether a layout of it is out. A filtered tree for an older query keeps showing until
+// the layout for the current one arrives, so typing does not empty the window.
+type buildTrees struct {
+ whole, filtered *buildTree
+ wholeOut, filteredOut bool
+}
+
+// buildOpenState is what the user left a node of the tree as; dependencies marks a
+// dependencies node, which opening every node leaves as it was.
+type buildOpenState struct {
+ open, dependencies bool
+}
+
+// buildOpenKey names the open state of a group (key "") or of one of its nodes by the node's
+// key, which Core keeps across reloads and filters.
+func buildOpenKey(instanceID, key string) string { return instanceID + "\x00" + key }
-// buildGroupOpen says whether the group of the instance at index shows its sections: as the
-// user left it, else open for the selected instance only.
+// buildGroupOpen says whether the group of the instance at index shows its tree: as the user
+// left it, else open for the selected instance only.
func (p *project) buildGroupOpen(index int) bool {
- if open, ok := p.panels.buildOpen[buildOpenKey(p.build.instances[index].ID, "")]; ok {
- return open
+ if state, ok := p.panels.buildOpen[buildOpenKey(p.build.instances[index].ID, "")]; ok {
+ return state.open
}
return index == p.build.selected
}
-// buildSectionOpen says whether a section of a group shows its rows: as the user left it, else
-// open, except the dependencies, whose tree costs a run of the build tool.
-func (p *project) buildSectionOpen(instanceID, section string) bool {
- if open, ok := p.panels.buildOpen[buildOpenKey(instanceID, section)]; ok {
+// buildNodeOpen says whether a node of an instance's tree shows its children: as the user left
+// it; else, after the user opened or closed every node, as that left them, but a dependencies
+// node stays closed; else open for a project and closed for anything else, as IntelliJ shows a
+// build tool's projects with their lifecycle and plugins closed.
+func (p *project) buildNodeOpen(instanceID string, node *core.BuildTreeNode) bool {
+ if state, ok := p.panels.buildOpen[buildOpenKey(instanceID, node.Key)]; ok {
+ return state.open
+ }
+ if node.Kind == core.BuildTreeDependencies {
+ return false
+ }
+ if open, ok := p.panels.buildFold[instanceID]; ok {
return open
}
- return section != buildSectionDependencies
+ return node.Kind == core.BuildTreeProject
}
-// setBuildOpen stores the open state of a group or a section.
-func (p *project) setBuildOpen(key string, open bool) {
+// setBuildOpen stores the open state of a group or a node.
+func (p *project) setBuildOpen(key string, state buildOpenState) {
if p.panels.buildOpen == nil {
- p.panels.buildOpen = map[string]bool{}
+ p.panels.buildOpen = map[string]buildOpenState{}
}
- p.panels.buildOpen[key] = open
+ p.panels.buildOpen[key] = state
}
-// setAllBuildGroups opens or closes every group. Opening also opens the sections that cost
-// nothing to show; the dependencies stay as they were.
+// setBuildGroupOpen stores whether the group of the instance at index shows its tree.
+func (p *project) setBuildGroupOpen(index int, open bool) {
+ p.setBuildOpen(buildOpenKey(p.build.instances[index].ID, ""), buildOpenState{open: open})
+}
+
+// setAllBuildGroups opens or closes every group and every node in them. It forgets what the
+// user opened and closed inside the groups and stores the fold for each instance instead, so
+// it costs as many steps as the user made, not as many as the trees hold. Opening keeps the
+// dependencies nodes as they were, since each opened one runs the build tool.
func (p *project) setAllBuildGroups(open bool) {
- for index := range p.build.instances {
- id := p.build.instances[index].ID
- p.setBuildOpen(buildOpenKey(id, ""), open)
- if open {
- for _, section := range []string{buildSectionProjects, buildSectionTargets, buildSectionTasks, buildSectionTests} {
- p.setBuildOpen(buildOpenKey(id, section), true)
- }
+ if p.panels.buildFold == nil {
+ p.panels.buildFold = map[string]bool{}
+ }
+ for key, state := range p.panels.buildOpen {
+ if _, node, _ := strings.Cut(key, "\x00"); node != "" && !(open && state.dependencies) {
+ delete(p.panels.buildOpen, key)
}
}
+ for index := range p.build.instances {
+ p.panels.buildFold[p.build.instances[index].ID] = open
+ p.setBuildGroupOpen(index, open)
+ }
}
// chooseBuildInstance makes the instance at index the one the window acts on, before an
@@ -87,9 +147,9 @@ func (a *App) chooseBuildInstance(p *project, index int) {
return
}
if previous := b.selected; previous >= 0 && previous < len(b.instances) {
- p.setBuildOpen(buildOpenKey(b.instances[previous].ID, ""), p.buildGroupOpen(previous))
+ p.setBuildGroupOpen(previous, p.buildGroupOpen(previous))
}
- p.setBuildOpen(buildOpenKey(b.instances[index].ID, ""), true)
+ p.setBuildGroupOpen(index, true)
a.selectBuildInstance(p, index)
}
@@ -120,6 +180,95 @@ func (a *App) loadOpenBuildModels(p *project) {
}
}
+// buildTreeOf is the tree of the instance at index for query, already trimmed and lower case,
+// and starts its layout when the model, the filter or the language changed since the tree
+// shown was laid out. Only one layout of each kind is out at a time: the one that ends starts
+// the next when the tree it brought is already stale, so fast typing lays out only the
+// queries the window still shows. The result is nil while the first layout is out and the
+// model is not loaded; a filtered tree for an older query stands in for the current one.
+func (a *App) buildTreeOf(p *project, index int, query string) *buildTree {
+ instance := &p.build.instances[index]
+ if !instance.modelLoaded {
+ return nil
+ }
+ shown, out := instance.trees.whole, &instance.trees.wholeOut
+ if query != "" {
+ shown, out = instance.trees.filtered, &instance.trees.filteredOut
+ }
+ language := a.language()
+ current := shown != nil && shown.version == instance.modelVersion && shown.query == query && shown.language == language
+ if !current && !*out {
+ *out = true
+ a.layOutBuildTree(p, instance, query, language)
+ }
+ return shown
+}
+
+// layOutBuildTree asks Core for the tree of instance's model for query off the window thread.
+// The model's slices are never changed in place, only replaced, so the goroutine reads them as
+// they were when the layout started.
+func (a *App) layOutBuildTree(p *project, instance *buildInstance, query string, language i18n.Language) {
+ kernel := a.kernel
+ id, generation := instance.ID, p.build.generation
+ manifest, buildSystemID, version := instance.Manifest, instance.BuildSystemID, instance.modelVersion
+ model := core.BuildModelTreeInput{Projects: instance.Model.Projects, Targets: instance.Model.Targets, Tasks: instance.Model.Tasks}
+ headings := buildGroupHeadings(language)
+ a.background(p, buildTreeTimeout, func(ctx context.Context) func(*App) {
+ tree := &buildTree{version: version, query: query, language: language}
+ laid, err := kernel.BuildModelTree(ctx, manifest, buildSystemID, core.BuildModelTreeRequest{Model: model, Query: query, GroupHeadings: headings})
+ if err != nil {
+ a.backgroundFailedIn(ctx, "build_tree", err)
+ tree.failed = err.Error()
+ } else {
+ tree.tree = laid
+ tree.targets = make(map[string]int, len(model.Targets))
+ for at := range model.Targets {
+ if _, seen := tree.targets[model.Targets[at].ID]; !seen {
+ tree.targets[model.Targets[at].ID] = at
+ }
+ }
+ }
+ return func(a *App) { a.finishBuildTree(p, id, generation, tree) }
+ })
+}
+
+// finishBuildTree stores a laid out tree in its instance, unless the instances were detected
+// again since the layout started or the model changed under it. A stale tree is dropped and
+// the next frame lays out the current one.
+func (a *App) finishBuildTree(p *project, id string, generation uint64, tree *buildTree) {
+ if a.project != p || p.build.generation != generation {
+ return
+ }
+ instance := p.buildInstanceByID(id)
+ if instance == nil {
+ return
+ }
+ trees := &instance.trees
+ if tree.query == "" {
+ trees.wholeOut = false
+ } else {
+ trees.filteredOut = false
+ }
+ if tree.version != instance.modelVersion {
+ return
+ }
+ if tree.query == "" {
+ trees.whole = tree
+ } else {
+ trees.filtered = tree
+ }
+}
+
+// targetOf is the model target a target node of tree stands for, nil when the model no longer
+// has it.
+func (instance *buildInstance) targetOf(tree *buildTree, id string) *core.BuildTarget {
+ at, ok := tree.targets[id]
+ if !ok || at >= len(instance.Model.Targets) || instance.Model.Targets[at].ID != id {
+ return nil
+ }
+ return &instance.Model.Targets[at]
+}
+
// buildSystemName is the name of an instance's build system, without its root.
func buildSystemName(instance *buildInstance) string {
if name := instance.System.DisplayName; name != "" {
@@ -146,15 +295,18 @@ func (p *project) buildFilterQuery() string {
return strings.ToLower(strings.TrimSpace(p.panels.buildFilter))
}
-// buildTreeRows lists the rows of the tree in the order it shows them. Without a filter every
-// group shows as the user left it. With one, a group whose name or root matches shows as
-// without a filter; another shows only its projects, targets, tasks and tests that match, all
-// open, and is left out when none does. The filter reads the models already loaded and never
-// starts a load: it narrows what the tree holds, it does not ask the build tools.
-func (a *App) buildTreeRows(p *project) []buildRow {
+// buildTreeRows lists the rows of the tree in the order it shows them, into a buffer the
+// window reuses. Without a filter every group shows as the user left it. With one, a group
+// whose name or root matches shows as without a filter; another shows what Core kept of its
+// tree, every node on the way to a match open and each match as the user left it, and is
+// left out when nothing in it matches. The filter reads the models already loaded and never
+// starts a load: it narrows what the tree holds, it does not ask the build tools. pending says
+// a group was left out only because its first filtered tree is still being laid out, so an
+// empty tree is not yet known to match nothing.
+func (a *App) buildTreeRows(p *project) (rows []buildRow, pending bool) {
b := &p.build
query := p.buildFilterQuery()
- var rows []buildRow
+ rows = p.panels.buildRows[:0]
for index := range b.instances {
instance := &b.instances[index]
group := buildRow{
@@ -163,159 +315,159 @@ func (a *App) buildTreeRows(p *project) []buildRow {
}
if query == "" || buildMatches(query, group.label, group.detail) {
group.open = p.buildGroupOpen(index)
+ // A closed group is laid out too once its model is loaded, so its row names the
+ // project it stands for whether it is open or not. The layout only reads the model.
+ tree := a.buildTreeOf(p, index, "")
+ group.node = rootProjectOf(tree)
rows = append(rows, group)
if group.open {
- rows = a.appendBuildGroup(rows, p, index, "")
+ rows = a.appendBuildTree(rows, p, index, tree, false)
}
continue
}
- matched := a.appendBuildGroup(nil, p, index, query)
- if len(matched) == 0 {
+ tree := a.buildTreeOf(p, index, query)
+ if tree == nil || tree.failed != "" {
+ pending = pending || tree == nil && instance.trees.filteredOut
continue
}
+ group.node = rootProjectOf(tree)
+ // A match on the project the group stands for keeps the whole tree, as the user left it.
+ filtering := group.node == nil || !group.node.Matched
group.open, group.fixed = true, true
rows = append(rows, group)
- rows = append(rows, matched...)
+ start := len(rows)
+ rows = a.appendBuildTree(rows, p, index, tree, filtering)
+ if len(rows) == start && filtering {
+ rows = rows[:start-1]
+ }
}
- return rows
+ p.panels.buildRows = rows
+ return rows, pending
}
-// appendBuildGroup appends the sections of the instance at index; with a query, only the rows
-// that match it, under the sections that hold any.
-func (a *App) appendBuildGroup(rows []buildRow, p *project, index int, query string) []buildRow {
- b, t := &p.build, a.text.Build
- instance := &b.instances[index]
- filtering := query != ""
- if !instance.modelLoaded {
- switch {
- case filtering:
- case instance.modelError != "":
- // The row has one line; the tool's own explanation that follows is its tooltip.
- first, _, more := strings.Cut(instance.modelError, "\n")
- row := buildRow{kind: buildRowEmpty, instance: index, level: 1, label: t.ModelFailed(first), warning: true}
- if more {
- row.tooltip = t.ModelFailed(instance.modelError)
- }
- rows = append(rows, row)
- default:
- rows = append(rows, buildRow{kind: buildRowEmpty, instance: index, level: 1, label: t.LoadingModel, loading: true})
- }
- return rows
+// rootProjectOf is the project a group stands for, the only root project of its model.
+func rootProjectOf(tree *buildTree) *core.BuildTreeNode {
+ if tree == nil {
+ return nil
}
- selected := index == b.selected
- // The project scope is the selected instance's, and a search looks past it.
- scope := ""
- if selected && !filtering {
- scope = b.projectID
- }
- keep := func(label, detail string) bool { return !filtering || buildMatches(query, label, detail) }
- // add appends one section and, when it is open, its rows. Without a filter count is what
- // the heading shows, -1 for not known yet, and items is asked for only when the section is
- // open, so a closed section loads nothing; with one, the section shows only its matches.
- add := func(section, label string, count int, items func() []buildRow) {
- if filtering {
- list := items()
- if len(list) == 0 {
- return
- }
- rows = append(rows, buildRow{kind: buildRowSection, instance: index, level: 1, section: section, label: label, count: len(list), open: true, fixed: true})
- rows = append(rows, list...)
- return
- }
- open := p.buildSectionOpen(instance.ID, section)
- rows = append(rows, buildRow{kind: buildRowSection, instance: index, level: 1, section: section, label: label, count: count, open: open})
- if open {
- rows = append(rows, items()...)
- }
- }
- model := &instance.Model
+ return tree.tree.Project
+}
- projects := make([]buildRow, 0, len(model.Projects))
- for _, project := range model.Projects {
- name := project.DisplayName
- if name == "" {
- name = project.Name
- }
- if keep(name, project.Path) {
- // The project at the build root says nothing more with a path of ".".
- detail := project.Path
- if detail == "." {
- detail = ""
- }
- projects = append(projects, buildRow{kind: buildRowProject, instance: index, level: 2, label: name, detail: detail, id: project.ID, selected: selected && b.projectID == project.ID})
- }
- }
- if len(model.Projects) != 0 {
- add(buildSectionProjects, t.Projects, len(projects), func() []buildRow { return projects })
+// appendBuildTree appends the rows of the tree of the instance at index under its group:
+// what the model or the tree's layout are doing when they are not ready, else the open nodes.
+// filtering says the tree is what a filter kept; it then shows no line for what is missing.
+func (a *App) appendBuildTree(rows []buildRow, p *project, index int, tree *buildTree, filtering bool) []buildRow {
+ t := a.text.Build
+ instance := &p.build.instances[index]
+ note := func(label string) buildRow {
+ return buildRow{kind: buildRowEmpty, instance: index, level: 1, label: label}
}
-
- if projectID, ok := buildDependencyProject(instance, scope); ok && !filtering {
- count := -1
- if deps := b.dependencies[buildDependencyKey(instance.ID, projectID)]; deps != nil && !deps.loading && deps.failed == "" {
- count = len(deps.tree.Dependencies)
+ switch {
+ case filtering:
+ case instance.modelError != "":
+ // The row has one line; the tool's own explanation that follows is its tooltip.
+ first, _, more := strings.Cut(instance.modelError, "\n")
+ row := note(t.ModelFailed(first))
+ row.warning, row.model = true, true
+ if more {
+ row.tooltip = t.ModelFailed(instance.modelError)
}
- add(buildSectionDependencies, i18n.Shared(a.language(), "native.dependencies"), count, func() []buildRow {
- return a.buildDependencyRows(p, index, projectID, 2)
- })
+ return append(rows, row)
+ case !instance.modelLoaded || tree == nil:
+ row := note(t.LoadingModel)
+ row.loading = true
+ return append(rows, row)
+ case tree.failed != "":
+ first, _, _ := strings.Cut(tree.failed, "\n")
+ row := note(i18n.SharedFormat(a.language(), "desktop.build.treeFailed", map[string]string{"error": first}))
+ row.warning, row.tooltip = true, tree.failed
+ return append(rows, row)
+ case len(tree.tree.Nodes) == 0:
+ return append(rows, note(t.NoTasks))
}
-
- var targets []buildRow
- for at := range model.Targets {
- target := &model.Targets[at]
- if scope != "" && target.ProjectID != scope || !keep(target.Name, target.Path) {
- continue
- }
- label, detail, tooltip := buildTargetLabel(target)
- targets = append(targets, buildRow{
- kind: buildRowTarget, instance: index, level: 2, label: label, detail: detail, tooltip: tooltip,
- id: target.ID, project: target.ProjectID, selected: selected && b.targetID == target.ID, target: target,
- })
+ if tree == nil {
+ return rows
}
- if len(targets) != 0 {
- add(buildSectionTargets, t.Targets, len(targets), func() []buildRow { return targets })
+ rows = a.appendBuildNodes(rows, p, index, tree, tree.tree.Nodes, 1, filtering)
+ if tree.tree.Truncated && !filtering {
+ row := note(i18n.Shared(a.language(), "desktop.build.treeTruncated"))
+ row.warning = true
+ rows = append(rows, row)
}
+ return rows
+}
- var tasks []buildRow
- for _, task := range declaredTasks(instance) {
- if name, detail := buildTaskName(&task), buildTaskDetail(&task); keep(name, detail) {
- tasks = append(tasks, buildRow{kind: buildRowTask, instance: index, level: 2, label: name, detail: detail, id: task.ID, selected: selected && b.taskID == task.ID})
- }
+// appendBuildNodes appends nodes at level and, under each open one, its children: the nodes
+// Core nested in it, or the dependencies or discovered tests the host loads for it. While
+// filtering, a node Core kept for a match below it is open and stays so, and a match shows as
+// the user left it with all it holds; the discovered tests node shows only the tests that
+// match, and is left out when none does.
+func (a *App) appendBuildNodes(rows []buildRow, p *project, index int, tree *buildTree, nodes []core.BuildTreeNode, level int, filtering bool) []buildRow {
+ b, t, language := &p.build, a.text.Build, a.language()
+ instance := &b.instances[index]
+ selected := index == b.selected
+ query := ""
+ if filtering {
+ query = p.buildFilterQuery()
}
- for _, task := range model.Tasks {
- // A model task belongs to its project, so the project scope narrows tasks as it does targets.
- if scope != "" && task.ProjectID != scope {
+ for at := range nodes {
+ node := &nodes[at]
+ row := buildRow{instance: index, level: level, node: node, label: node.Label, detail: node.Detail, tooltip: node.Tooltip}
+ fixed := filtering && !node.Matched
+ var tests []buildRow
+ switch node.Kind {
+ case core.BuildTreeProject:
+ row.kind = buildRowProject
+ row.selected = selected && b.projectID == node.ProjectID && b.targetID == "" && b.taskID == ""
+ case core.BuildTreeTarget:
+ row.kind, row.target = buildRowTarget, instance.targetOf(tree, node.TargetID)
+ row.selected = selected && b.targetID == node.TargetID && b.taskID == ""
+ case core.BuildTreeTask:
+ row.kind = buildRowTask
+ row.selected = selected && b.taskID == node.TaskID && b.projectID == node.ProjectID && b.targetID == node.TargetID
+ case core.BuildTreeFolder:
+ // Core names the folder: by its category heading, else by the group heading it was sent.
+ row.kind = buildRowFolder
+ case core.BuildTreeTargets:
+ row.kind, row.label = buildRowFolder, t.Targets
+ case core.BuildTreeDependencies:
+ row.kind, row.label = buildRowFolder, i18n.Shared(language, "native.dependencies")
+ case core.BuildTreeTests:
+ row.kind, row.label = buildRowFolder, i18n.Shared(language, "native.discoveredTests")
+ if fixed {
+ // Core keeps the tests node for the host to filter, as it alone has the tests.
+ if tests = a.buildTestRows(p, index, "", query, level+1); len(tests) == 0 {
+ continue
+ }
+ }
+ default:
continue
}
- name := task.DisplayName
- if name == "" {
- name = task.Name
- }
- if detail := strings.Join(task.Category, " / "); keep(name, detail) {
- tasks = append(tasks, buildRow{kind: buildRowTask, instance: index, level: 2, label: name, detail: detail, id: task.ID, selected: selected && b.taskID == task.ID})
- }
- }
- add(buildSectionTasks, t.Tasks, len(tasks), func() []buildRow {
- if len(tasks) == 0 && !filtering {
- return []buildRow{{kind: buildRowEmpty, instance: index, level: 2, label: t.NoTasks}}
+ row.branch = len(node.Children) != 0 || node.Kind == core.BuildTreeDependencies || node.Kind == core.BuildTreeTests
+ row.fixed = fixed && row.branch
+ row.open = row.branch && (row.fixed || p.buildNodeOpen(instance.ID, node))
+ rows = append(rows, row)
+ if !row.open {
+ continue
}
- return tasks
- })
-
- if instance.System.Test != nil && instance.System.Test.Discovery {
- count := -1
- if view := p.discoveredTestsView(instance); view.loaded && !view.loading {
- count = len(buildScopedTests(instance, view.tests, scope, ""))
+ switch node.Kind {
+ case core.BuildTreeDependencies:
+ rows = append(rows, a.buildDependencyRows(p, index, node.ProjectID, level+1)...)
+ case core.BuildTreeTests:
+ if tests == nil {
+ tests = a.buildTestRows(p, index, "", "", level+1)
+ }
+ rows = append(rows, tests...)
+ default:
+ rows = a.appendBuildNodes(rows, p, index, tree, node.Children, level+1, fixed)
}
- add(buildSectionTests, i18n.Shared(a.language(), "native.discoveredTests"), count, func() []buildRow {
- return a.buildTestRows(p, index, scope, query, 2)
- })
}
return rows
}
// reloadBuildSystems detects the workspace's build systems again: the instances, their models,
-// dependency trees and discovered tests are dropped and found anew. What the user opened and
-// closed is kept by instance, so an instance found again shows as before.
+// trees, dependency trees and discovered tests are dropped and found anew. What the user
+// opened and closed is kept by instance and node, so an instance found again shows as before.
func (a *App) reloadBuildSystems(p *project) {
b := &p.build
p.reloadBuildDependencies()
@@ -339,6 +491,9 @@ type buildTargetAction struct {
// buildPrimaryAction is the first of a target's runs, as its context menu lists them: the
// provider's runs that apply to it, then the command entries. ok is false when it has none.
func buildPrimaryAction(instance *buildInstance, target *core.BuildTarget) (buildTargetAction, bool) {
+ if target == nil {
+ return buildTargetAction{}, false
+ }
for _, run := range instance.System.Runs {
if buildRunApplies(run, *target) {
return buildTargetAction{runID: run.ID, name: run.Name, debug: run.DebugAdapter != ""}, true
@@ -394,19 +549,3 @@ func buildSystemFamily(buildSystemID string) symbolFamily {
_, _ = h.Write([]byte(buildSystemID))
return symbolFamily(1 + h.Sum32()%uint32(familyModule))
}
-
-// buildTargetLabel is what the row of target shows: its name with its path beside it, or the
-// path alone when the name already ends with it, as a Go import path ends with the folder of
-// its package; the full name then shows while the pointer rests on the row. The filter still
-// matches the name and the path.
-func buildTargetLabel(target *core.BuildTarget) (label, detail, tooltip string) {
- name, at := target.Name, strings.Trim(target.Path, "/")
- switch {
- case at == "" || at == ".":
- case name == at:
- return at, "", ""
- case strings.HasSuffix(name, "/"+at):
- return at, "", name
- }
- return name, target.Path, ""
-}
diff --git a/desktop/internal/workbench/build_tree_test.go b/desktop/internal/workbench/build_tree_test.go
index 064d6fa8c4..768ebc690a 100644
--- a/desktop/internal/workbench/build_tree_test.go
+++ b/desktop/internal/workbench/build_tree_test.go
@@ -1,6 +1,7 @@
package workbench
import (
+ "cmp"
"context"
"encoding/json"
"errors"
@@ -16,41 +17,214 @@ import (
"github.com/vivaui/viva/gfx"
)
-// buildTreeShape names each row of the build tree by its kind, label and, for a group, its
-// root, so a test compares the whole tree at once.
+// buildTestManifest is a plugin manifest declaring the build system of instance as the window
+// knows it, for the Core requests the window sends with an instance's manifest: the layout of
+// its tree and the build file a project opens. Every task runs through the provider, so the
+// declaration needs no command lines; a task without a name or a group shows its ID and files
+// under "other".
+func buildTestManifest(instance *buildInstance) json.RawMessage {
+ type task struct {
+ ID string `json:"id"`
+ DisplayName string `json:"displayName"`
+ Description string `json:"description,omitempty"`
+ Group string `json:"group"`
+ Scopes []string `json:"scopes,omitempty"`
+ TargetTags []string `json:"targetTags,omitempty"`
+ RequiresUserArguments bool `json:"requiresUserArguments,omitempty"`
+ FromModel bool `json:"fromModel,omitempty"`
+ Category []string `json:"category,omitempty"`
+ Source string `json:"source"`
+ Arguments []string `json:"arguments"`
+ }
+ system, id := instance.System, instance.BuildSystemID
+ tasks := make([]task, 0, len(system.Tasks))
+ for _, declared := range system.Tasks {
+ tasks = append(tasks, task{
+ ID: declared.ID, DisplayName: cmp.Or(declared.DisplayName, declared.ID), Description: declared.Description,
+ Group: cmp.Or(declared.Group, "other"), Scopes: declared.Scopes, TargetTags: declared.TargetTags,
+ RequiresUserArguments: declared.RequiresUserArguments, FromModel: declared.FromModel, Category: declared.Category,
+ Source: "provider", Arguments: []string{},
+ })
+ }
+ declaration := map[string]any{
+ "id": id, "displayName": buildSystemName(instance),
+ "detection": map[string]any{"markers": []string{id + ".build"}},
+ "invocation": map[string]any{"executables": []any{map[string]string{"kind": "command", "command": id}}},
+ "provider": map[string]any{
+ "launch": map[string]string{"kind": "packaged", "path": "provider"}, "arguments": []string{},
+ "executesProjectCode": false, "mayUseNetwork": false,
+ },
+ "model": map[string]string{"source": "provider"},
+ "tasks": tasks,
+ }
+ if system.Dependencies != nil {
+ declaration["dependencies"] = map[string]any{"source": "provider", "scopes": system.Dependencies.Scopes}
+ }
+ if test := system.Test; test != nil {
+ entry := map[string]any{"source": "provider", "scopes": test.Scopes, "arguments": []string{}}
+ if len(test.TargetTags) != 0 {
+ entry["targetTags"] = test.TargetTags
+ }
+ if test.Discovery {
+ entry["discovery"], entry["filters"] = true, []string{"suite", "case"}
+ }
+ declaration["test"] = entry
+ }
+ body, err := json.Marshal(map[string]any{
+ "schemaVersion": 0, "id": cmp.Or(instance.PluginID, "dev.example."+id), "displayName": buildSystemName(instance),
+ "version": "1.0.0", "pluginAPIVersion": 0, "requires": map[string]int{"buildProviders": 0, "buildSystems": 0},
+ "vendor": map[string]string{"id": "dev.example", "displayName": "Example", "signatureRequirement": "publisherPackage"},
+ "permissions": []string{"languageServer.launch", "process.build"}, "activationEvents": []string{"onBuildSystem:" + id},
+ "languages": []string{}, "buildSystems": []any{declaration},
+ })
+ if err != nil {
+ panic(err)
+ }
+ return body
+}
+
+// buildRowName is the name a row shows: a group standing for its only root project shows that
+// project's name.
+func buildRowName(row buildRow) string {
+ if row.kind == buildRowGroup && row.node != nil {
+ return row.node.Label
+ }
+ return row.label
+}
+
+// buildTreeShape names each row of the build tree by its depth, kind, label and detail, and a
+// group standing for a project by both names, so a test compares the whole tree at once.
func buildTreeShape(rows []buildRow) []string {
kinds := map[buildRowKind]string{
- buildRowGroup: "group", buildRowSection: "section", buildRowEmpty: "note", buildRowProject: "project",
+ buildRowGroup: "group", buildRowFolder: "folder", buildRowEmpty: "note", buildRowProject: "project",
buildRowTarget: "target", buildRowTask: "task", buildRowDependency: "dependency", buildRowTest: "test",
}
shape := make([]string, 0, len(rows))
for _, row := range rows {
- entry := kinds[row.kind] + " " + row.label
- if row.kind == buildRowGroup && row.detail != "" {
- entry += " @" + row.detail
+ entry := strings.Repeat(" ", row.level) + kinds[row.kind] + " " + row.label
+ if row.kind == buildRowGroup && row.node != nil {
+ entry += ": " + row.node.Label
+ }
+ if row.detail != "" {
+ entry += " (" + row.detail + ")"
}
shape = append(shape, entry)
}
return shape
}
-// twoEngines is one build system used at two roots of the workspace, its second checkout's
-// targets named apart from the first's.
-func twoEngines() []buildInstance {
- alpha := runConfigInstance("alpha")
- alpha.System.DisplayName = "Engine"
- beta := runConfigInstance("beta")
- beta.System.DisplayName = "Engine"
- beta.Model.Targets = []core.BuildTarget{
- {ID: "main", ProjectID: "server", Name: "Beta Main", Tags: []string{"app"}},
- {ID: "lib", ProjectID: "server", Name: "Beta Lib", Tags: []string{"library"}},
+// buildRowAt is the row a path down the tree names: the first row named by the last name that
+// follows the rows named by the names before it, in order.
+func buildRowAt(t *testing.T, rows []buildRow, names ...string) buildRow {
+ t.Helper()
+ at := 0
+ for step, name := range names {
+ for at < len(rows) && buildRowName(rows[at]) != name {
+ at++
+ }
+ if at == len(rows) {
+ t.Fatalf("no row %q in\n%s", names[:step+1], strings.Join(buildTreeShape(rows), "\n"))
+ }
+ if step < len(names)-1 {
+ at++
+ }
+ }
+ return rows[at]
+}
+
+// setBuildNodeOpen opens or closes the node of the row at the path names, as its arrow does.
+func setBuildNodeOpen(t *testing.T, p *project, rows []buildRow, open bool, names ...string) {
+ t.Helper()
+ row := buildRowAt(t, rows, names...)
+ p.setBuildOpen(buildOpenKey(p.build.instances[row.instance].ID, row.node.Key),
+ buildOpenState{open: open, dependencies: row.node.Kind == core.BuildTreeDependencies})
+}
+
+// laidOutBuildRows lists the tree's rows once Core has laid out every tree they show. A listing
+// starts the layouts it lacks and shows what it already has, so the listing after them is the
+// one the window settles on.
+func laidOutBuildRows(t *testing.T, h *harness, p *project) []buildRow {
+ t.Helper()
+ for range 5 {
+ rows, out := h.app.buildTreeRows(p)
+ for index := range p.build.instances {
+ trees := &p.build.instances[index].trees
+ out = out || trees.wholeOut || trees.filteredOut
+ }
+ if !out {
+ return slices.Clone(rows)
+ }
+ h.settle()
}
- return []buildInstance{alpha, beta}
+ t.Fatal("the build trees were still being laid out")
+ return nil
}
-// openBuildTree opens a workspace whose detected build systems are instances.
+// expectBuildTree fails unless the tree's rows, once laid out, are want.
+func expectBuildTree(t *testing.T, h *harness, p *project, what string, want []string) []buildRow {
+ t.Helper()
+ rows := laidOutBuildRows(t, h, p)
+ if got := buildTreeShape(rows); !slices.Equal(got, want) {
+ t.Fatalf("%s =\n%s\nwant\n%s", what, strings.Join(got, "\n"), strings.Join(want, "\n"))
+ }
+ return rows
+}
+
+// nestedEngine is a build of several modules at root, as a Maven reactor is: the root project
+// shop holds shop-core and shop-web, and shop-web holds shop-web-api. Every project cleans and
+// packages, the build runs a goal the user types once for the whole build, shop-web has an
+// application that starts, and shop-core lists a plugin goal its model reports.
+func nestedEngine(root string) buildInstance {
+ instance := buildInstance{
+ BuildInstance: core.BuildInstance{ID: "engine@" + root, PluginID: "dev.example.engine", BuildSystemID: "engine", Root: root},
+ PluginID: "dev.example.engine",
+ System: pluginservice.BuildSystemDeclaration{
+ DisplayName: "Engine",
+ Runs: []pluginservice.BuildRunDeclaration{{ID: "application", Name: "Run", Tags: []string{"app"}}},
+ Tasks: []pluginservice.BuildTaskDeclaration{
+ {ID: "clean", DisplayName: "clean", Group: "lifecycle", Category: []string{"Lifecycle"}, Scopes: []string{"workspace", "project"}, Source: "provider"},
+ {ID: "package", DisplayName: "package", Group: "lifecycle", Category: []string{"Lifecycle"}, Scopes: []string{"workspace", "project"}, Source: "provider"},
+ {ID: "goal", DisplayName: "Run Goal…", Group: "other", Scopes: []string{"workspace", "project"}, RequiresUserArguments: true, Source: "provider"},
+ {ID: "start", DisplayName: "Start", Group: "run", Scopes: []string{"target"}, TargetTags: []string{"app"}, Source: "provider"},
+ {ID: "plugin", DisplayName: "Plugin Goal", Group: "build", Category: []string{"Plugins"}, FromModel: true, Source: "provider"},
+ },
+ Dependencies: &pluginservice.BuildDependenciesDeclaration{Scopes: []string{"project"}},
+ },
+ Model: core.BuildModel{
+ Projects: []core.BuildProject{
+ {ID: "shop", Path: ".", Name: "shop"},
+ {ID: "core", Path: "core", Name: "shop-core", ParentID: "shop"},
+ {ID: "web", Path: "web", Name: "shop-web", ParentID: "shop"},
+ {ID: "api", Path: "web/api", Name: "shop-web-api", ParentID: "web"},
+ },
+ Targets: []core.BuildTarget{{ID: "app", ProjectID: "web", Name: "ShopApplication", Path: "web", Tags: []string{"app"}}},
+ Tasks: []core.BuildTask{{
+ ID: "core:compile", ProjectID: "core", Name: "compiler:compile", Template: "plugin", Group: "build",
+ Category: []string{"Plugins"}, Execution: "task",
+ }},
+ },
+ modelLoaded: true,
+ }
+ return instance
+}
+
+// twoEngines is one build system used at two roots of the workspace: the nested build at alpha,
+// and at beta two projects side by side with no root project above them.
+func twoEngines() []buildInstance {
+ beta := nestedEngine("beta")
+ beta.Model = core.BuildModel{Projects: []core.BuildProject{{ID: "a", Path: "a", Name: "tool-a"}, {ID: "b", Path: "b", Name: "tool-b"}}}
+ return []buildInstance{nestedEngine("alpha"), beta}
+}
+
+// openBuildTree opens a workspace whose detected build systems are instances, each declared by
+// a manifest of its own unless it has one.
func openBuildTree(t *testing.T, kernel Kernel, instances []buildInstance) (*harness, *project) {
t.Helper()
+ for index := range instances {
+ if instances[index].Manifest == nil {
+ instances[index].Manifest = buildTestManifest(&instances[index])
+ }
+ }
h := newHarness(t, kernel)
h.open(t.TempDir())
p := h.app.project
@@ -61,99 +235,227 @@ func openBuildTree(t *testing.T, kernel Kernel, instances []buildInstance) (*har
return h, p
}
-// Every build system is a group of one tree, named once with its root beside it. The selected
-// one is open by default and the others closed; a group the user opens or closes stays so, and
-// opening every group opens their sections but the dependencies.
-func TestBuildTreeGroupsEveryBuildSystemAndOpensTheSelectedOne(t *testing.T) {
+// buildTreeWords are the headings the host gives the nodes Core leaves unnamed, and the
+// heading of the "other" task group.
+func buildTreeWords(h *harness) (dependencies, targets, other string) {
+ language := h.app.language()
+ return i18n.Shared(language, "native.dependencies"), h.app.text.Build.Targets, i18n.Shared(language, "desktop.build.group.other")
+}
+
+// Every build system is a group of one tree, as IntelliJ's Maven window shows a build: child
+// projects nest under their parent, and every project holds its tasks in folders, its
+// dependencies and its targets. A group whose build has one root project stands for it; one
+// with several lists them. The selected group is open by default and the others closed, the
+// projects open and everything else closed. What the user opens and closes stays so, across a
+// reload of the model too; opening every node leaves the dependencies closed, since each one
+// opened runs the build tool. A task every project lists shows chosen under its own project
+// only.
+func TestBuildTreeNestsProjectsWithTheirFolders(t *testing.T) {
h, p := openBuildTree(t, &testKernel{Client: core.NewClient()}, twoEngines())
- tb := h.app.text.Build
+ dependencies, targets, other := buildTreeWords(h)
alpha := []string{
- "section " + tb.Projects, "project server",
- "section " + tb.Targets, "target Main", "target Lib",
- "section " + tb.Tasks, "note " + tb.NoTasks,
- }
+ "group Engine: shop (alpha)",
+ " folder Lifecycle",
+ " folder " + other,
+ " folder " + dependencies,
+ " project shop-core (core)",
+ " folder Lifecycle",
+ " folder Plugins",
+ " folder " + dependencies,
+ " project shop-web (web)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ " folder " + targets,
+ " project shop-web-api (web/api)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ }
+ rows := expectBuildTree(t, h, p, "default tree", append(slices.Clone(alpha), "group Engine (beta)"))
+
+ p.setBuildGroupOpen(1, true)
+ setBuildNodeOpen(t, p, rows, true, "shop-core", "Lifecycle")
+ setBuildNodeOpen(t, p, rows, false, "shop-web")
beta := []string{
- "section " + tb.Projects, "project server",
- "section " + tb.Targets, "target Beta Main", "target Beta Lib",
- "section " + tb.Tasks, "note " + tb.NoTasks,
- }
- want := slices.Concat([]string{"group Engine @alpha"}, alpha, []string{"group Engine @beta"})
- if got := buildTreeShape(h.app.buildTreeRows(p)); !slices.Equal(got, want) {
- t.Fatalf("default tree =\n%s\nwant\n%s", strings.Join(got, "\n"), strings.Join(want, "\n"))
- }
-
- p.setBuildOpen(buildOpenKey(p.build.instances[1].ID, ""), true)
- p.setBuildOpen(buildOpenKey(p.build.instances[0].ID, buildSectionTargets), false)
- rows := h.app.buildTreeRows(p)
- want = slices.Concat([]string{"group Engine @alpha", "section " + tb.Projects, "project server", "section " + tb.Targets,
- "section " + tb.Tasks, "note " + tb.NoTasks, "group Engine @beta"}, beta)
- if got := buildTreeShape(rows); !slices.Equal(got, want) {
- t.Fatalf("tree after opening the second group =\n%s\nwant\n%s", strings.Join(got, "\n"), strings.Join(want, "\n"))
- }
- if section := rows[3]; section.open || section.count != 2 {
- t.Fatalf("a closed section shows open %v with count %d, want closed with its 2 targets", section.open, section.count)
- }
+ "group Engine (beta)",
+ " folder " + other,
+ " project tool-a (a)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ " project tool-b (b)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ }
+ changed := slices.Concat(alpha[:5], []string{" folder Lifecycle", " task clean", " task package"}, alpha[6:9], beta)
+ expectBuildTree(t, h, p, "tree after opening and closing nodes", changed)
+
+ // A reload keeps every node as the user left it: Core keys a node by what it stands for.
+ instance := &p.build.instances[0]
+ instance.Model.Projects = append(slices.Clone(instance.Model.Projects), core.BuildProject{ID: "docs", Path: "docs", Name: "shop-docs", ParentID: "shop"})
+ instance.modelVersion++
+ reloaded := slices.Concat(changed[:len(changed)-len(beta)], []string{" project shop-docs (docs)", " folder Lifecycle", " folder " + dependencies}, beta)
+ expectBuildTree(t, h, p, "tree after a reload", reloaded)
p.setAllBuildGroups(false)
- if got := buildTreeShape(h.app.buildTreeRows(p)); !slices.Equal(got, []string{"group Engine @alpha", "group Engine @beta"}) {
- t.Fatalf("collapsed tree = %q", got)
- }
+ expectBuildTree(t, h, p, "collapsed tree", []string{"group Engine: shop (alpha)", "group Engine (beta)"})
p.setAllBuildGroups(true)
- want = slices.Concat([]string{"group Engine @alpha"}, alpha, []string{"group Engine @beta"}, beta)
- if got := buildTreeShape(h.app.buildTreeRows(p)); !slices.Equal(got, want) {
- t.Fatalf("expanded tree =\n%s\nwant\n%s", strings.Join(got, "\n"), strings.Join(want, "\n"))
+ expanded := []string{
+ "group Engine: shop (alpha)",
+ " folder Lifecycle",
+ " task clean",
+ " task package",
+ " folder " + other,
+ " task Run Goal…",
+ " folder " + dependencies,
+ " project shop-core (core)",
+ " folder Lifecycle",
+ " task clean",
+ " task package",
+ " folder Plugins",
+ " task compiler:compile",
+ " folder " + dependencies,
+ " project shop-web (web)",
+ " folder Lifecycle",
+ " task clean",
+ " task package",
+ " folder " + dependencies,
+ " folder " + targets,
+ " target ShopApplication (web)",
+ " task Start",
+ " project shop-web-api (web/api)",
+ " folder Lifecycle",
+ " task clean",
+ " task package",
+ " folder " + dependencies,
+ " project shop-docs (docs)",
+ " folder Lifecycle",
+ " task clean",
+ " task package",
+ " folder " + dependencies,
+ "group Engine (beta)",
+ " folder " + other,
+ " task Run Goal…",
+ " project tool-a (a)",
+ " folder Lifecycle",
+ " task clean",
+ " task package",
+ " folder " + dependencies,
+ " project tool-b (b)",
+ " folder Lifecycle",
+ " task clean",
+ " task package",
+ " folder " + dependencies,
+ }
+ rows = expectBuildTree(t, h, p, "expanded tree", expanded)
+
+ p.build.projectID, p.build.taskID = "core", "clean"
+ want := buildRowAt(t, rows, "shop-core", "clean").node.Key
+ // A group row's flag says its build system is selected; the rows below it say what is chosen.
+ var chosen []string
+ for _, row := range laidOutBuildRows(t, h, p) {
+ if row.selected && row.kind != buildRowGroup {
+ chosen = append(chosen, row.node.Key)
+ }
}
- if p.buildSectionOpen(p.build.instances[0].ID, buildSectionDependencies) {
- t.Fatal("opening every group opened the dependencies, which run the build tool")
+ if !slices.Equal(chosen, []string{want}) {
+ t.Fatalf("the chosen rows are %q, want only shop-core's clean %q", chosen, want)
}
}
-// The filter keeps a group whose name or root matches as it shows without one, and of another
-// only the rows that match, open under their sections. It reads the models already loaded and
-// never starts a load.
-func TestBuildTreeFilterKeepsMatchesUnderTheirGroups(t *testing.T) {
+// The filter keeps of every group the nodes that match and the nodes on the way to them, open
+// and fixed so, and leaves out a group where nothing matches. A match shows as the user left it,
+// with all it holds; so does a whole group whose name, root or project matches. The folder
+// headings the host names match too. While the first filtered layout is out the window does
+// not yet say nothing matches, and a later query shows the tree of the one before until its
+// own is laid out. The filter reads the models already loaded and never starts a load.
+func TestBuildTreeFilterKeepsMatchesUnderTheirProjects(t *testing.T) {
h, p := openBuildTree(t, &testKernel{Client: core.NewClient()}, twoEngines())
- tb := h.app.text.Build
-
- p.panels.buildFilter = " MAIN "
- rows := h.app.buildTreeRows(p)
- want := []string{
- "group Engine @alpha", "section " + tb.Targets, "target Main",
- "group Engine @beta", "section " + tb.Targets, "target Beta Main",
- }
- if got := buildTreeShape(rows); !slices.Equal(got, want) {
- t.Fatalf("filtered tree =\n%s\nwant\n%s", strings.Join(got, "\n"), strings.Join(want, "\n"))
- }
- for _, row := range rows {
- if (row.kind == buildRowGroup || row.kind == buildRowSection) && (!row.open || !row.fixed) {
- t.Fatalf("row %q of a filtered group is open %v, fixed %v; want open and fixed", row.label, row.open, row.fixed)
+ dependencies, targets, other := buildTreeWords(h)
+
+ p.panels.buildFilter = " START "
+ if rows, pending := h.app.buildTreeRows(p); len(rows) != 0 || !pending {
+ t.Fatalf("before its layout the filtered tree shows %q, pending %v", buildTreeShape(rows), pending)
+ }
+ started := []string{
+ "group Engine: shop (alpha)",
+ " project shop-web (web)",
+ " folder " + targets,
+ " target ShopApplication (web)",
+ " task Start",
+ }
+ rows := expectBuildTree(t, h, p, "filtered tree", started)
+ for _, row := range rows[:4] {
+ if !row.open || !row.fixed {
+ t.Fatalf("row %q on the way to a match is open %v, fixed %v; want open and fixed", row.label, row.open, row.fixed)
}
}
- if rows[1].count != 1 {
- t.Fatalf("a filtered section counts %d rows, want its 1 match", rows[1].count)
+ p.panels.buildFilter = "star"
+ if rows, _ := h.app.buildTreeRows(p); !slices.Equal(buildTreeShape(rows), started) {
+ t.Fatalf("while the next query is laid out the tree shows %q", buildTreeShape(rows))
+ }
+ expectBuildTree(t, h, p, "tree filtered by the next query", started)
+
+ p.panels.buildFilter = "shop-web"
+ rows = expectBuildTree(t, h, p, "tree filtered by a project", []string{
+ "group Engine: shop (alpha)",
+ " project shop-web (web)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ " folder " + targets,
+ " project shop-web-api (web/api)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ })
+ if row := rows[1]; row.fixed || !row.open {
+ t.Fatalf("a matching project shows open %v, fixed %v; want as the user left it", row.open, row.fixed)
+ }
+
+ p.panels.buildFilter = "shop"
+ rows = expectBuildTree(t, h, p, "tree filtered by the project a group stands for", []string{
+ "group Engine: shop (alpha)",
+ " folder Lifecycle",
+ " folder " + other,
+ " folder " + dependencies,
+ " project shop-core (core)",
+ " folder Lifecycle",
+ " folder Plugins",
+ " folder " + dependencies,
+ " project shop-web (web)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ " folder " + targets,
+ " project shop-web-api (web/api)",
+ " folder Lifecycle",
+ " folder " + dependencies,
+ })
+ if !rows[0].fixed || rows[4].fixed {
+ t.Fatalf("the group is fixed %v and its projects %v; want the group fixed open and the rest as without a filter", rows[0].fixed, rows[4].fixed)
}
p.panels.buildFilter = "beta"
- rows = h.app.buildTreeRows(p)
- if got := buildTreeShape(rows); !slices.Equal(got, []string{"group Engine @beta"}) {
- t.Fatalf("tree filtered by a root = %q", got)
- }
+ rows = expectBuildTree(t, h, p, "tree filtered by a root", []string{"group Engine (beta)"})
if rows[0].fixed || rows[0].open {
t.Fatalf("a group matching by its root shows open %v, fixed %v; want it as without a filter", rows[0].open, rows[0].fixed)
}
+ p.panels.buildFilter = other
+ expectBuildTree(t, h, p, "tree filtered by a folder heading", []string{
+ "group Engine: shop (alpha)", " folder " + other, "group Engine (beta)", " folder " + other,
+ })
+
p.panels.buildFilter = "nothing matches this"
- if rows = h.app.buildTreeRows(p); len(rows) != 0 {
- t.Fatalf("tree filtered by an unmatched query = %q", buildTreeShape(rows))
+ laidOutBuildRows(t, h, p)
+ if rows, pending := h.app.buildTreeRows(p); len(rows) != 0 || pending {
+ t.Fatalf("tree filtered by an unmatched query = %q, pending %v", buildTreeShape(rows), pending)
}
- p.build.instances[1].modelLoaded = false
- p.setBuildOpen(buildOpenKey(p.build.instances[1].ID, ""), true)
- p.panels.buildFilter = "main"
- if got := buildTreeShape(h.app.buildTreeRows(p)); !slices.Equal(got, want[:3]) {
- t.Fatalf("tree filtered with an unloaded model = %q", got)
- }
- if p.build.instances[1].modelLoading {
+ p.build.instances[0].modelLoaded = false
+ p.setBuildGroupOpen(0, true)
+ p.panels.buildFilter = "tool-a"
+ expectBuildTree(t, h, p, "tree filtered with an unloaded model", []string{
+ "group Engine (beta)", " project tool-a (a)",
+ " folder Lifecycle", " folder " + dependencies,
+ })
+ if p.build.instances[0].modelLoading {
t.Fatal("the filter started a model load")
}
}
@@ -171,9 +473,11 @@ func TestBuildTargetRowShowsThePathAndTheFullNameOnHover(t *testing.T) {
{ID: "shop", ProjectID: "server", Name: "shop", Path: "shop/", Tags: []string{"library"}},
}
h, p := openBuildTree(t, &testKernel{Client: core.NewClient()}, []buildInstance{instance})
+ p.setAllBuildGroups(true)
targets := func() [][3]string {
+ t.Helper()
var out [][3]string
- for _, row := range h.app.buildTreeRows(p) {
+ for _, row := range laidOutBuildRows(t, h, p) {
if row.kind == buildRowTarget {
out = append(out, [3]string{row.label, row.detail, row.tooltip})
}
@@ -185,9 +489,7 @@ func TestBuildTargetRowShowsThePathAndTheFullNameOnHover(t *testing.T) {
t.Fatalf("target rows (label, detail, tooltip) = %q, want %q", got, want)
}
- h.app.reduceChrome(core.SetChromeOpen(itemBuild, true))
- h.settle()
- h.settle()
+ openBuildWindow(t, h, p)
if h.labelBounds("shop/cmd/api") == (gfx.Rect{}) || h.labelBounds("example.com/shop/cmd/api") != (gfx.Rect{}) {
t.Fatal("the row of a target named after its path did not show the path alone")
}
@@ -255,7 +557,7 @@ func TestBuildTreeLoadsOpenModelsAFewAtATime(t *testing.T) {
t.Fatal("the Build window is open by default, so its view would start loads of its own")
}
p.setAllBuildGroups(true)
- p.setBuildOpen(buildOpenKey(p.build.instances[5].ID, ""), false)
+ p.setBuildGroupOpen(5, false)
loading := func() []int {
var indexes []int
@@ -311,28 +613,39 @@ func TestBuildTreeLoadsOpenModelsAFewAtATime(t *testing.T) {
}
// A click on a row of another group selects that group's build system and the row, so the
-// window's Run button runs it; a click on a group selects it and leaves it open or closed, and
-// its arrow opens and closes it.
+// window's Run button runs it; a click on a group, which shows the name of the project it
+// stands for, selects it and leaves it open or closed, and its arrow opens and closes it.
func TestBuildTreeRowsChooseTheirBuildSystem(t *testing.T) {
- instances := twoEngines()
- instances[1].BuildSystemID, instances[1].System.DisplayName = "forge", "Forge"
- h, p := openBuildTree(t, &testKernel{Client: core.NewClient()}, instances)
+ alpha := runConfigInstance("alpha")
+ alpha.System.DisplayName = "Engine"
+ beta := runConfigInstance("beta")
+ beta.BuildSystemID, beta.System.DisplayName = "forge", "Forge"
+ beta.Model.Projects = []core.BuildProject{{ID: "server", Path: "server", Name: "tools"}}
+ beta.Model.Targets = []core.BuildTarget{
+ {ID: "main", ProjectID: "server", Name: "Beta Main", Tags: []string{"app"}},
+ {ID: "lib", ProjectID: "server", Name: "Beta Lib", Tags: []string{"library"}},
+ }
+ h, p := openBuildTree(t, &testKernel{Client: core.NewClient()}, []buildInstance{alpha, beta})
+ // Every node opens, so a group shows its targets once it opens; the second group closes.
+ p.setAllBuildGroups(true)
+ p.setBuildGroupOpen(1, false)
h.app.reduceChrome(core.SetChromeOpen(itemBuild, true))
if err := h.driver.Resize(1280, 1400); err != nil {
t.Fatal(err)
}
+ laidOutBuildRows(t, h, p)
h.settle()
h.settle()
absent := func(value string) bool { return h.labelBounds(value) == (gfx.Rect{}) }
- if absent("Main") || !absent("Beta Main") {
- t.Fatal("the tree did not open the selected build system alone")
+ if absent("Main") || !absent("Beta Main") || absent("tools") {
+ t.Fatal("the tree did not show the first group open and the second closed by the name of its project")
}
language := h.app.language()
expand := i18n.Shared(language, "native.expandSection")
collapse := i18n.Shared(language, "native.collapseSection")
// The group row selects its build system and leaves it closed.
- h.click(center(h.labelBounds("beta")))
+ h.click(center(h.labelBounds("tools")))
if p.build.selected != 1 || p.buildGroupOpen(1) || !p.buildGroupOpen(0) {
t.Fatalf("selected %d, open %v and %v after a click on the closed group", p.build.selected, p.buildGroupOpen(0), p.buildGroupOpen(1))
}
@@ -341,7 +654,7 @@ func TestBuildTreeRowsChooseTheirBuildSystem(t *testing.T) {
}
// Its arrow opens it.
- h.click(center(h.pageHit(expand + " Forge").Bounds))
+ h.click(center(h.pageHit(expand + " tools").Bounds))
if !p.buildGroupOpen(1) || absent("Beta Main") {
t.Fatal("the arrow did not open the group")
}
@@ -359,7 +672,7 @@ func TestBuildTreeRowsChooseTheirBuildSystem(t *testing.T) {
}
// The arrow closes a group and hides its rows.
- h.click(center(h.pageHit(collapse + " Engine").Bounds))
+ h.click(center(h.pageHit(collapse + " server").Bounds))
if p.buildGroupOpen(0) || !absent("Main") || absent("Beta Main") {
t.Fatal("the arrow did not close the group alone")
}
@@ -425,11 +738,25 @@ func (k *captureBuildTask) PlanBuildTask(_ context.Context, _ json.RawMessage, _
return core.BuildPlan{}, errors.New("captured")
}
+// openBuildWindow opens every node of the tree and the Build window, tall enough for all of it.
+// The window opens through a post, which wakes the driver to paint it.
+func openBuildWindow(t *testing.T, h *harness, p *project) {
+ t.Helper()
+ p.setAllBuildGroups(true)
+ h.app.post(func(a *App) { a.reduceChrome(core.SetChromeOpen(itemBuild, true)) })
+ if err := h.driver.Resize(1280, 1400); err != nil {
+ t.Fatal(err)
+ }
+ laidOutBuildRows(t, h, p)
+ h.settle()
+ h.settle()
+}
+
// A task, and a target that has a run, lead with the green triangle that runs them whether
// they are chosen or not, as IntelliJ's Make window marks its targets: one click on it chooses
// the row and runs it. A target with nothing to run keeps the icon of its kind, a build
// operation in flight leaves no triangle to click, a row's hover hint holds its whole name and
-// path, and the Dependencies heading has the ⓘ that says when its tree is read.
+// path, and the Dependencies node has the ⓘ that says when its tree is read.
func TestBuildTreeRunMarksRunTheirRowsAtOnce(t *testing.T) {
instance := runConfigInstance("app")
instance.System.Tasks = []pluginservice.BuildTaskDeclaration{{ID: "vet", DisplayName: "Vet verification", Scopes: []string{"project"}, Source: "provider"}}
@@ -437,12 +764,7 @@ func TestBuildTreeRunMarksRunTheirRowsAtOnce(t *testing.T) {
instance.Model.Targets[0].Path = "server/cmd/main"
kernel := &captureBuildTask{Kernel: &testKernel{Client: core.NewClient()}, requests: make(chan core.BuildPlanRequest, 1)}
h, p := openBuildTree(t, kernel, []buildInstance{instance})
- h.app.reduceChrome(core.SetChromeOpen(itemBuild, true))
- if err := h.driver.Resize(1280, 1400); err != nil {
- t.Fatal(err)
- }
- h.settle()
- h.settle()
+ openBuildWindow(t, h, p)
text, language := h.app.text.Build, h.app.language()
controls := func(label string) []gfx.Hit {
var found []gfx.Hit
@@ -465,7 +787,7 @@ func TestBuildTreeRunMarksRunTheirRowsAtOnce(t *testing.T) {
}
help := controls(i18n.Shared(language, "native.moreInformation"))
if len(help) != 1 || help[0].Hint != i18n.Shared(language, "desktop.build.dependenciesHelp") {
- t.Fatalf("the Dependencies heading's ⓘ is %+v", help)
+ t.Fatalf("the Dependencies node's ⓘ is %+v", help)
}
// One click on the triangle of a task nothing chose chooses it and runs it.
@@ -490,21 +812,19 @@ func TestBuildTreeRunMarksRunTheirRowsAtOnce(t *testing.T) {
h.settle()
}
-// A task row of the tree carries no project, so the run fits the selection to the task: a
-// project task runs on the build system's only project instead of the workspace, a model task
-// on its own project, and a project task with no project to infer asks for one.
+// A task row runs on the project and target Core filed it under: a declared project task on
+// the project it shows under, a model task on its own project. A project task chosen with no
+// project, which nothing in the tree offers, asks for one when the build has several.
func TestBuildTreeTasksRunOnTheScopeTheyDeclare(t *testing.T) {
instance := runConfigInstance("app")
- instance.System.Tasks = []pluginservice.BuildTaskDeclaration{{ID: "vet", DisplayName: "Vet verification", Scopes: []string{"project"}, Source: "provider"}}
- instance.Model.Tasks = []core.BuildTask{{ID: "server:check", ProjectID: "server", Name: "check", Template: "check", Execution: "task"}}
+ instance.System.Tasks = []pluginservice.BuildTaskDeclaration{
+ {ID: "vet", DisplayName: "Vet verification", Scopes: []string{"project"}, Source: "provider"},
+ {ID: "check", DisplayName: "Check", Group: "verification", FromModel: true, Source: "provider"},
+ }
+ instance.Model.Tasks = []core.BuildTask{{ID: "server:check", ProjectID: "server", Name: "check", Template: "check", Group: "verification", Execution: "task"}}
kernel := &captureBuildTask{Kernel: &testKernel{Client: core.NewClient()}, requests: make(chan core.BuildPlanRequest, 1)}
h, p := openBuildTree(t, kernel, []buildInstance{instance})
- h.app.reduceChrome(core.SetChromeOpen(itemBuild, true))
- if err := h.driver.Resize(1280, 1400); err != nil {
- t.Fatal(err)
- }
- h.settle()
- h.settle()
+ openBuildWindow(t, h, p)
run := func(row string) core.BuildPlanRequest {
t.Helper()
h.click(center(h.labelBounds(row)))
@@ -537,12 +857,4 @@ func TestBuildTreeTasksRunOnTheScopeTheyDeclare(t *testing.T) {
if h.app.notice != h.app.text.Build.ChooseTaskScope || len(kernel.requests) != 0 || p.build.operation != nil {
t.Fatalf("notice %q, %d requests, operation %v", h.app.notice, len(kernel.requests), p.build.operation)
}
-
- // The chosen project narrows the model tasks to its own.
- h.app.post(func(*App) { p.build.projectID, p.build.taskID = "web", "" })
- h.settle()
- h.settle()
- if h.labelBounds("check") != (gfx.Rect{}) || h.labelBounds("Vet verification") == (gfx.Rect{}) {
- t.Fatal("another project's model task stayed in the tree")
- }
}
diff --git a/desktop/internal/workbench/build_tree_view.go b/desktop/internal/workbench/build_tree_view.go
index 99e1cc2c94..daf22ff8a2 100644
--- a/desktop/internal/workbench/build_tree_view.go
+++ b/desktop/internal/workbench/build_tree_view.go
@@ -1,10 +1,10 @@
package workbench
import (
- "strconv"
"strings"
"unicode/utf8"
+ "github.com/1lck/Lithe-IDEA/desktop/internal/core"
"github.com/1lck/Lithe-IDEA/desktop/internal/fileicons"
"github.com/1lck/Lithe-IDEA/desktop/internal/i18n"
"github.com/1lck/Lithe-IDEA/desktop/internal/icons"
@@ -112,13 +112,16 @@ func (a *App) buildToolView(c ui.C, p *project) {
a.buildFilter(c, p)
// The rows are listed after the filter field took this frame's typing, so the tree
// already shows what was typed.
- rows := a.buildTreeRows(p)
+ rows, pending := a.buildTreeRows(p)
if len(rows) == 0 {
- a.buildNotice(c, i18n.Shared(language, "desktop.build.noMatches"), "", nil)
+ // A filter whose trees are still being laid out shows nothing rather than no match.
+ if !pending {
+ a.buildNotice(c, i18n.Shared(language, "desktop.build.noMatches"), "", nil)
+ }
return
}
list := &p.panels.choices
- // Groups and sections open and close by a click, so none of them is a pinned header.
+ // Groups and folders open and close by a click, so none of them is a pinned header.
list.Header = nil
list.Label = func(i int) string {
if i >= 0 && i < len(rows) {
@@ -174,8 +177,8 @@ func (a *App) buildTreeRow(row ui.ListRow, p *project, spec buildRow) {
switch spec.kind {
case buildRowGroup:
a.buildGroupRow(row, p, instance, spec)
- case buildRowSection:
- a.buildSectionRow(row, p, instance, spec)
+ case buildRowFolder:
+ a.buildFolderRow(row, p, instance, spec)
case buildRowEmpty:
if spec.tests {
a.buildTestStatusRow(row, p, instance, spec)
@@ -243,19 +246,36 @@ func (a *App) buildSystemBadge(c ui.C, instance *buildInstance) {
}
// buildGroupRow declares the row of one build system: its arrow, badge, name and root, and
-// whether its model loads or failed. A click selects the build system, the one the window's
-// actions act on; the arrow or a double click opens or closes it. The selected build system's
-// row has the buttons that load its model again and open its options.
+// whether its model loads or failed. When the model has one root project the row stands for
+// it, as IntelliJ's root node does: it shows the project's name, with the build system's
+// name and root in its hover hint, and its menu has the project's items. A click selects the
+// build system, the one the window's actions act on; the arrow or a double click opens or
+// closes it. The selected build system's row has the buttons that load its model again and
+// open its options.
func (a *App) buildGroupRow(row ui.ListRow, p *project, instance *buildInstance, spec buildRow) {
c, b := row.C, &p.build
index := spec.instance
- // The group row shows as chosen while its build system is selected and nothing in it is.
+ root := ""
+ if spec.node != nil {
+ root = spec.node.ProjectID
+ }
+ // The group row shows as chosen while its build system is selected and nothing in it is,
+ // or only the project it stands for.
look := spec
- look.selected = spec.selected && b.projectID == "" && b.targetID == "" && b.taskID == ""
+ look.selected = spec.selected && (b.projectID == "" || b.projectID == root) && b.targetID == "" && b.taskID == ""
element := a.buildTreeRowElement(row, look)
- toggled := a.buildArrow(c, spec.label, !spec.fixed, spec.open)
+ label := spec.label
+ if spec.node != nil {
+ label = spec.node.Label
+ tip := spec.label
+ if spec.detail != "" {
+ tip += "\n" + spec.detail
+ }
+ element = element.Tooltip(tip)
+ }
+ toggled := a.buildArrow(c, label, !spec.fixed, spec.open)
a.buildSystemBadge(c.Part("badge"), instance)
- ui.Text(c, spec.label).FontSize(treeFontSize).Weight(gfx.WeightSemibold).Color(treelist.Text(a.colors.Dark)).Ellipsis().Shrink(0)
+ ui.Text(c, label).FontSize(treeFontSize).Weight(gfx.WeightSemibold).Color(treelist.Text(a.colors.Dark)).Ellipsis().Shrink(0)
if spec.detail != "" {
ui.Text(c, spec.detail).FontSize(treeFontSize - 1).Color(a.colors.Subtle).Ellipsis().Shrink(1).MinWidth(0)
}
@@ -287,7 +307,7 @@ func (a *App) buildGroupRow(row ui.ListRow, p *project, instance *buildInstance,
case !fixed && (toggled || element.DoubleClicked()):
c.After(func() {
a.performed("build.group.toggle", surfaceButton)
- p.setBuildOpen(buildOpenKey(instance.ID, ""), !open)
+ p.setBuildGroupOpen(index, !open)
})
case element.Clicked():
c.After(func() {
@@ -299,7 +319,7 @@ func (a *App) buildGroupRow(row ui.ListRow, p *project, instance *buildInstance,
// Selecting a group leaves it open or closed as it showed.
shown := p.buildGroupOpen(index)
a.chooseBuildInstance(p, index)
- p.setBuildOpen(buildOpenKey(instance.ID, ""), shown)
+ p.setBuildGroupOpen(index, shown)
})
}
ui.ContextMenu(c, element, func(menu *ui.MenuItems) {
@@ -317,70 +337,67 @@ func (a *App) buildGroupRow(row ui.ListRow, p *project, instance *buildInstance,
a.openBuildOptions(p, p.selectedBuildInstance())
})
}
+ if root != "" {
+ a.buildProjectMenuItems(c, menu, p, instance, index, root)
+ }
})
}
-// buildSectionIcons are the icons of a group's sections.
-var buildSectionIcons = map[string]*gfx.Icon{
- buildSectionProjects: &icons.Folder,
- buildSectionDependencies: &icons.Archive,
- buildSectionTargets: &icons.CircleDot,
- buildSectionTasks: &icons.SquareTerminal,
- buildSectionTests: &icons.CircleCheck,
+// buildFolderIcons are the icons of the rows that head other nodes, by the kind of node: the
+// IntelliJ New UI icons of the same folders in IntelliJ's Maven and Gradle tool windows.
+var buildFolderIcons = map[string]fileicons.BuildNode{
+ core.BuildTreeFolder: fileicons.BuildTaskFolder,
+ core.BuildTreeTargets: fileicons.BuildTargets,
+ core.BuildTreeDependencies: fileicons.BuildDependencies,
+ core.BuildTreeTests: fileicons.BuildTests,
}
-// buildSectionRow declares the heading of one section of a group: its arrow, icon, name and
-// how many rows it holds, once that is known. A click opens or closes it, unless a filter
-// keeps it open. The Dependencies and Discovered Tests headings have the menu of their rows,
-// and the Dependencies heading the ⓘ that says when its tree is read.
-func (a *App) buildSectionRow(row ui.ListRow, p *project, instance *buildInstance, spec buildRow) {
- c := row.C
+// buildFolderRow declares a row that heads other nodes: a task folder (a Maven project's
+// Lifecycle or Plugins, a plugin's goals), a project's targets, its dependencies or the
+// discovered tests. A click opens or closes it, unless a filter keeps it open. The
+// Dependencies and Discovered Tests rows have the menu of their rows, and the Dependencies
+// row the ⓘ that says when its tree is read.
+func (a *App) buildFolderRow(row ui.ListRow, p *project, instance *buildInstance, spec buildRow) {
+ c, node := row.C, spec.node
element := a.buildTreeRowElement(row, spec)
- toggled := a.buildArrow(c, spec.label, !spec.fixed, spec.open)
- if icon := buildSectionIcons[spec.section]; icon != nil {
- ui.Icon(c, *icon).Size(14, 14).Shrink(0).Color(a.colors.Subtle)
+ if spec.tooltip != "" {
+ element = element.Tooltip(spec.tooltip)
}
- ui.Text(c, spec.label).FontSize(treeFontSize).Weight(gfx.WeightMedium).Color(treelist.Text(a.colors.Dark)).Ellipsis().Shrink(1).MinWidth(0)
- if spec.count >= 0 {
- ui.Text(c, strconv.Itoa(spec.count)).FontSize(treeFontSize - 1).Color(a.colors.Subtle).Shrink(0)
+ toggled := a.buildArrow(c, spec.label, spec.branch && !spec.fixed, spec.open)
+ if icon, ok := buildFolderIcons[node.Kind]; ok {
+ ui.Icon(c, fileicons.ForBuildNode(icon, a.colors.Dark)).Size(treelist.Icon, treelist.Icon).Shrink(0)
+ }
+ ui.Text(c, spec.label).FontSize(treeFontSize).Color(treelist.Text(a.colors.Dark)).Ellipsis().Shrink(1).MinWidth(0)
+ if spec.detail != "" {
+ ui.Text(c, spec.detail).FontSize(treeFontSize - 1).Color(a.colors.Subtle).Ellipsis().Shrink(buildDetailShrink).MinWidth(0)
}
- if spec.section == buildSectionDependencies {
- // The heading shows no count until the tree is read, and opening it runs the build
- // tool, so the ⓘ says when that happens and how to read it again.
+ if node.Kind == core.BuildTreeDependencies {
+ // Opening the node runs the build tool, so the ⓘ says when that happens and how to read
+ // the tree again.
language := a.language()
ui.Button(c.Part("help"), i18n.Shared(language, "native.moreInformation")).Icon(icons.Info).IconOnly().Ghost().Size(18, 18).
Tooltip(i18n.Shared(language, "desktop.build.dependenciesHelp")).TooltipOn(ui.TooltipRight)
}
ui.Spacer(c)
- if !spec.fixed && (toggled || element.Clicked()) {
- key, open := buildOpenKey(instance.ID, spec.section), spec.open
+ if spec.branch && !spec.fixed && (toggled || element.Clicked()) {
+ key := buildOpenKey(instance.ID, node.Key)
+ state := buildOpenState{open: !spec.open, dependencies: node.Kind == core.BuildTreeDependencies}
c.After(func() {
- a.performed("build.section.toggle", surfaceButton)
- p.setBuildOpen(key, !open)
+ a.performed("build.folder.toggle", surfaceButton)
+ p.setBuildOpen(key, state)
})
}
- switch spec.section {
- case buildSectionDependencies:
- if projectID, ok := buildDependencyProject(instance, a.buildScopeOf(p, spec.instance)); ok {
- a.buildDependencyMenu(c, element, p, instance, projectID)
- }
- case buildSectionTests:
+ switch node.Kind {
+ case core.BuildTreeDependencies:
+ a.buildDependencyMenu(c, element, p, instance, node.ProjectID)
+ case core.BuildTreeTests:
a.buildTestsMenu(c, element, p, instance)
}
}
-// buildScopeOf is the project scope of the instance at index: the chosen project of the
-// selected instance, none for the others.
-func (a *App) buildScopeOf(p *project, index int) string {
- if index == p.build.selected {
- return p.build.projectID
- }
- return ""
-}
-
-// buildNoteRow declares a line that stands for rows not there: a model or a dependency tree
-// that loads, failed or is empty, or a section without tasks. The dependency lines have the
-// menu of the tree, and a model that failed has the item that loads it again.
+// buildNoteRow declares a line that stands for rows not there: a model, its tree or a
+// dependency tree that loads, failed or is empty, or a tree cut short. The dependency lines
+// have the menu of the tree, and a model that failed has the item that loads it again.
func (a *App) buildNoteRow(row ui.ListRow, p *project, instance *buildInstance, spec buildRow) {
c := row.C
element := a.buildTreeRowElement(row, spec)
@@ -401,7 +418,7 @@ func (a *App) buildNoteRow(row ui.ListRow, p *project, instance *buildInstance,
a.buildDependencyMenu(c, element, p, instance, spec.project)
return
}
- if spec.warning && spec.level == 1 {
+ if spec.model {
index := spec.instance
ui.ContextMenu(c, element, func(menu *ui.MenuItems) {
menu.WidthRange(180, 280)
@@ -416,10 +433,10 @@ func (a *App) buildNoteRow(row ui.ListRow, p *project, instance *buildInstance,
}
// buildItemIcons are the icons of the rows a user chooses or runs that have nothing to run.
-var buildItemIcons = map[buildRowKind]*gfx.Icon{
- buildRowProject: &icons.Folder,
- buildRowTarget: &icons.CircleDot,
- buildRowTask: &icons.SquareTerminal,
+var buildItemIcons = map[buildRowKind]fileicons.BuildNode{
+ buildRowProject: fileicons.BuildProject,
+ buildRowTarget: fileicons.BuildTarget,
+ buildRowTask: fileicons.BuildTask,
}
// buildDetailShrink is how much faster than its name a row's detail gives way when the row is
@@ -434,7 +451,7 @@ const buildDetailShrink = 1000
func (a *App) buildRunMark(c ui.C, label string, disabled bool) bool {
k := c.Part("run")
// As wide as the icons of the rows beside it, so the names line up.
- slot := ui.Row(k).Size(14, treelist.Icon).Shrink(0).Center()
+ slot := ui.Row(k).Size(treelist.Icon, treelist.Icon).Shrink(0).Center()
if disabled {
slot.Children(func() {
ui.Icon(k, icons.Play).Size(14, 14).Color(a.colors.Subtle).Opacity(0.5)
@@ -449,8 +466,8 @@ func (a *App) buildRunMark(c ui.C, label string, disabled bool) bool {
}
// buildItemTip is the hover hint of a project, target or task row: its whole name and, under
-// it, its whole detail, which a narrow window cuts short; or the row's own tooltip, the full
-// name of a target that shows only its path (buildTargetLabel).
+// it, its whole detail, which a narrow window cuts short; or the tooltip Core gave the node:
+// a task's description, or the full name of a target that shows only its path.
func buildItemTip(spec buildRow) string {
if spec.tooltip != "" {
return spec.tooltip
@@ -461,32 +478,27 @@ func buildItemTip(spec buildRow) string {
return spec.label + "\n" + spec.detail
}
-// buildItemRow declares a project, target or task: its icon, name and detail. A task, and a
-// target that has a run, lead with the green triangle that runs it; the others lead with the
-// icon of their kind. A click chooses the row, in its build system, which it selects first,
-// and a click on the row already chosen lets it go; a double click runs a task or a target's
-// first run, and opens a project's build file. The chosen target whose first run debugs has
-// the button that debugs it. When the row is too narrow, the detail gives way before the
-// name, and the hover hint shows both whole.
+// buildItemRow declares a project, target or task: its arrow when it holds other nodes, its
+// icon, name and detail. A task, and a target that has a run, lead with the green triangle
+// that runs it; the others lead with the icon of their kind. A click chooses the row, in its
+// build system, which it selects first, and a click on the row already chosen lets it go; the
+// arrow opens or closes it; a double click runs a task or a target's first run, and opens a
+// project's build file. The chosen target whose first run debugs has the button that debugs
+// it. When the row is too narrow, the detail gives way before the name, and the hover hint
+// shows both whole.
func (a *App) buildItemRow(row ui.ListRow, p *project, instance *buildInstance, spec buildRow) {
- c, b := row.C, &p.build
+ c, b, node := row.C, &p.build, spec.node
element := a.buildTreeRowElement(row, spec)
if tip := buildItemTip(spec); tip != "" {
element = element.Tooltip(tip)
}
busy := b.operation != nil || instance.modelLoading
index := spec.instance
- // choose makes the row the window's choice; run, when set, then starts what it runs.
+ // choose makes the row the window's choice, the node's project, target and task as Core
+ // placed it; run, when set, then starts what it runs.
choose := func() {
a.chooseBuildInstance(p, index)
- switch spec.kind {
- case buildRowProject:
- b.projectID, b.targetID, b.taskID = spec.id, "", ""
- case buildRowTarget:
- b.projectID, b.targetID = spec.project, spec.id
- case buildRowTask:
- b.taskID = spec.id
- }
+ b.projectID, b.targetID, b.taskID = node.ProjectID, node.TargetID, node.TaskID
}
var run func()
var debug func()
@@ -498,7 +510,7 @@ func (a *App) buildItemRow(row ui.ListRow, p *project, instance *buildInstance,
run = func() { a.runSelectedBuildTask(p) }
case buildRowTarget:
if action, ok := buildPrimaryAction(instance, spec.target); ok {
- targetID := spec.id
+ targetID := node.TargetID
runLabel = a.text.Build.RunTarget(action.name)
run = func() { a.runBuildTargetAction(p, targetID, action) }
if action.debug {
@@ -506,7 +518,13 @@ func (a *App) buildItemRow(row ui.ListRow, p *project, instance *buildInstance,
}
}
}
- ui.Row(c.Part("arrow")).Size(treelist.Disclosure, treelist.Icon).Shrink(0)
+ if a.buildArrow(c, spec.label, spec.branch && !spec.fixed, spec.open) {
+ key, state := buildOpenKey(instance.ID, node.Key), buildOpenState{open: !spec.open}
+ c.After(func() {
+ a.performed("build.node.toggle", surfaceButton)
+ p.setBuildOpen(key, state)
+ })
+ }
if run != nil {
if a.buildRunMark(c, runLabel, busy) {
c.After(func() {
@@ -516,8 +534,8 @@ func (a *App) buildItemRow(row ui.ListRow, p *project, instance *buildInstance,
a.showBuildConsole(p)
})
}
- } else if icon := buildItemIcons[spec.kind]; icon != nil {
- ui.Icon(c, *icon).Size(14, 14).Shrink(0).Color(a.colors.Subtle)
+ } else if icon, ok := buildItemIcons[spec.kind]; ok {
+ ui.Icon(c, fileicons.ForBuildNode(icon, a.colors.Dark)).Size(treelist.Icon, treelist.Icon).Shrink(0)
}
ui.Text(c, spec.label).FontSize(treeFontSize).Color(treelist.Text(a.colors.Dark)).Ellipsis().Shrink(1).MinWidth(0)
if spec.detail != "" {
@@ -537,7 +555,7 @@ func (a *App) buildItemRow(row ui.ListRow, p *project, instance *buildInstance,
case spec.kind == buildRowProject:
c.After(func() {
a.performed("build.project.openBuildFile", surfaceButton)
- a.openBuildFile(p, instance, spec.id)
+ a.openBuildFile(p, instance, node.ProjectID)
})
case run != nil && !busy:
c.After(func() {
@@ -555,14 +573,7 @@ func (a *App) buildItemRow(row ui.ListRow, p *project, instance *buildInstance,
choose()
return
}
- switch spec.kind {
- case buildRowProject:
- b.projectID, b.targetID = "", ""
- case buildRowTarget:
- b.targetID = ""
- case buildRowTask:
- b.taskID = ""
- }
+ b.projectID, b.targetID, b.taskID = "", "", ""
})
}
a.buildRowMenu(c, element, p, instance, spec)
diff --git a/desktop/internal/workbench/build_view.go b/desktop/internal/workbench/build_view.go
index 8516a7bd0a..b59f74d38a 100644
--- a/desktop/internal/workbench/build_view.go
+++ b/desktop/internal/workbench/build_view.go
@@ -1,8 +1,6 @@
package workbench
import (
- "strings"
-
"github.com/1lck/Lithe-IDEA/desktop/internal/core"
"github.com/1lck/Lithe-IDEA/desktop/internal/pluginservice"
)
@@ -15,7 +13,9 @@ type buildRowKind uint8
const (
buildRowGroup buildRowKind = iota
- buildRowSection
+ // buildRowFolder heads nodes it holds: a task folder, a project's targets, dependencies or
+ // discovered tests.
+ buildRowFolder
buildRowEmpty
buildRowProject
buildRowTarget
@@ -24,31 +24,36 @@ const (
buildRowTest
)
-// buildRow is one row of the build tree (build_tree.go): a build system's group, a section
-// of it, a note that a section is empty or still loading, or something to choose or run.
+// buildRow is one row of the build tree (build_tree.go): a build system's group, a node of
+// the tree Core laid out for it, a dependency or discovered test the host loads under one, or
+// a note that something is empty, still loading or failed.
type buildRow struct {
kind buildRowKind
label string
detail string
selected bool
// tooltip is what the row shows while the pointer rests on it: the full name of a target
- // whose label is its path alone (buildTargetLabel); empty for none.
+ // whose label is its path alone, or a task's description; empty for none.
tooltip string
- // instance is the index of the build system the row belongs to, level its indentation in
- // the tree, and section the section a section row heads.
+ // instance is the index of the build system the row belongs to and level its indentation
+ // in the tree.
instance int
level int
- section string
- // count is what a section row shows beside its name, -1 for not known yet; open says a
- // group or a section shows its rows, and fixed that a filter keeps it open.
- count int
- open, fixed bool
- // warning marks a row that tells of a failure, loading one of a model still loading.
- warning, loading bool
- // id is the project, target or task the row chooses; project is the project a
- // target belongs to.
+ // node is the tree node a folder, project, target or task row shows; on a group row, the
+ // project the group stands for, nil when its model has no single root project. Its IDs are
+ // what the row chooses and runs.
+ node *core.BuildTreeNode
+ // branch says the row has children to show, open that it shows them, and fixed that a
+ // filter keeps it open.
+ branch, open, fixed bool
+ // warning marks a row that tells of a failure, loading one of a model still loading, and
+ // model the line that tells the model failed, whose menu loads it again.
+ warning, loading, model bool
+ // id is the discovered test a test row runs; project is the project whose dependency
+ // tree a dependency row belongs to.
id, project string
- target *core.BuildTarget
+ // target is the model target a target row stands for, nil when the model no longer has it.
+ target *core.BuildTarget
// path and leaf place a dependency row in its tree (build_dependencies.go); dependencies
// marks the line that stands for a tree still loading, failed or empty.
path string
@@ -61,36 +66,6 @@ type buildRow struct {
test *core.BuildDiscoveredTest
}
-// declaredTasks are the tasks the manifest names itself, command and provider alike; a fromModel
-// template is listed through the model tasks it stands for.
-func declaredTasks(instance *buildInstance) []pluginservice.BuildTaskDeclaration {
- if instance == nil {
- return nil
- }
- tasks := make([]pluginservice.BuildTaskDeclaration, 0, len(instance.System.Tasks))
- for _, task := range instance.System.Tasks {
- if !task.FromModel {
- tasks = append(tasks, task)
- }
- }
- return tasks
-}
-
-// buildTaskDetail is what a task row shows beside its name: its category path, else its group.
-func buildTaskDetail(task *pluginservice.BuildTaskDeclaration) string {
- if len(task.Category) != 0 {
- return strings.Join(task.Category, " / ")
- }
- return task.Group
-}
-
-func buildTaskName(task *pluginservice.BuildTaskDeclaration) string {
- if task.DisplayName != "" {
- return task.DisplayName
- }
- return task.ID
-}
-
func buildRunApplies(run pluginservice.BuildRunDeclaration, target core.BuildTarget) bool {
if len(run.Tags) == 0 {
return true
diff --git a/desktop/internal/workbench/runpanels.go b/desktop/internal/workbench/runpanels.go
index 211297da68..40ec1a71a9 100644
--- a/desktop/internal/workbench/runpanels.go
+++ b/desktop/internal/workbench/runpanels.go
@@ -6,11 +6,15 @@ import "github.com/vivaui/viva/ui"
// model they show (build, tests, debug) stays in the project, so this holds only what the
// user is doing to them: which list is scrolled where and which popup is open.
type runPanels struct {
- // buildOpen holds the groups and sections of the build tree the user opened or closed, by
- // buildOpenKey; one not in it shows as it does by default (build_tree.go). buildFilter is
- // the text the tree's filter field edits in place.
- buildOpen map[string]bool
+ // buildOpen holds the groups and nodes of the build tree the user opened or closed, by
+ // buildOpenKey; one not in it shows as buildFold says for its instance, else as it does by
+ // default (build_tree.go). buildFold is what opening or closing every node left each
+ // instance as, by instance ID. buildFilter is the text the tree's filter field edits in
+ // place, and buildRows the rows the tree showed last, a buffer each frame reuses.
+ buildOpen map[string]buildOpenState
+ buildFold map[string]bool
buildFilter string
+ buildRows []buildRow
// choices is the Build window's tree of every build system. runSplit is the Run window's
// divider between its execution tree and the selected execution's console; each
// execution keeps its own console list (runEntry.list).
diff --git a/docs/assets/build-panels/README.md b/docs/assets/build-panels/README.md
index 4363844842..16ef14c30a 100644
--- a/docs/assets/build-panels/README.md
+++ b/docs/assets/build-panels/README.md
@@ -3,12 +3,14 @@
来自生产 Viva Page 的无头渲染,使用隔离的临时项目和配置。工作区里有五个示例构建系统实例
(Maven、Gradle、Cargo、Go Modules、npm),模型由测试直接注入,不代表任何真实插件的输出。
深色使用中文、浅色使用英文。截图不代表 macOS/Windows 原生窗口验收。
+树的行图标是 IntelliJ New UI 中同类节点的图标:任务文件夹是带齿轮的文件夹,依赖是带书的文件夹,
+子项目是模块文件夹,没有运行入口的目标是构件图标。
| 场景 | 深色中文 | 浅色英文 |
| --- | --- | --- |
-| 右侧构建窗口(运行配置列表和聚合构建树)与底部运行窗口(只显示构建控制台) | [截图](build-and-run-dark.png) | [截图](build-and-run-light.png) |
-| 构建窗口按名称筛选 | [截图](build-filter-dark.png) | [截图](build-filter-light.png) |
-| Go 模块的目标以完整导入路径命名,行上只显示所在目录:可运行的目标和任务行首是绿色运行按钮,依赖标题旁有 ⓘ | [截图](build-go-targets-dark.png) | [截图](build-go-targets-light.png) |
+| 右侧构建窗口(运行配置列表和按父子项目嵌套的构建树)与底部运行窗口(只显示构建控制台):Maven 的唯一根项目 shop 由构建系统行代表,子模块 shop-core、shop-web 嵌套在它下面,各自列出 Lifecycle、Plugins 和依赖;展开了 shop-core 的 Plugins / compiler 和 shop-web 的 Lifecycle,其余文件夹保持默认折叠 | [截图](build-and-run-dark.png) | [截图](build-and-run-light.png) |
+| 构建窗口按名称筛选:只保留命中的节点和通往它的项目与文件夹,没有命中的构建系统不显示 | [截图](build-filter-dark.png) | [截图](build-filter-light.png) |
+| Go 模块的 Targets 文件夹展开:目标以完整导入路径命名,行上只显示所在目录;可运行的目标和任务行首是绿色运行按钮,依赖标题旁有 ⓘ | [截图](build-go-targets-dark.png) | [截图](build-go-targets-light.png) |
复验:设置 `LITHE_VISUAL_OUTPUT_DIR`,通过 `scripts/desktop/desktop-go.sh test
-tags vivahead,lithevisual ./internal/workbench -run '^TestVisualBuildPanels'
diff --git a/docs/assets/build-panels/build-and-run-dark.png b/docs/assets/build-panels/build-and-run-dark.png
index 7acd4e043f..ab9cf5758c 100644
Binary files a/docs/assets/build-panels/build-and-run-dark.png and b/docs/assets/build-panels/build-and-run-dark.png differ
diff --git a/docs/assets/build-panels/build-and-run-light.png b/docs/assets/build-panels/build-and-run-light.png
index 58cb2673bd..58705f1c53 100644
Binary files a/docs/assets/build-panels/build-and-run-light.png and b/docs/assets/build-panels/build-and-run-light.png differ
diff --git a/docs/assets/build-panels/build-filter-dark.png b/docs/assets/build-panels/build-filter-dark.png
index b65adac7e2..abb9990773 100644
Binary files a/docs/assets/build-panels/build-filter-dark.png and b/docs/assets/build-panels/build-filter-dark.png differ
diff --git a/docs/assets/build-panels/build-filter-light.png b/docs/assets/build-panels/build-filter-light.png
index 8c08073c0b..44fc35400c 100644
Binary files a/docs/assets/build-panels/build-filter-light.png and b/docs/assets/build-panels/build-filter-light.png differ
diff --git a/docs/assets/build-panels/build-go-targets-dark.png b/docs/assets/build-panels/build-go-targets-dark.png
index 1e1ea989c9..e0c0c04c37 100644
Binary files a/docs/assets/build-panels/build-go-targets-dark.png and b/docs/assets/build-panels/build-go-targets-dark.png differ
diff --git a/docs/assets/build-panels/build-go-targets-light.png b/docs/assets/build-panels/build-go-targets-light.png
index 5babb80c76..c2ceade7ce 100644
Binary files a/docs/assets/build-panels/build-go-targets-light.png and b/docs/assets/build-panels/build-go-targets-light.png differ
diff --git a/scripts/desktop/build-desktop-core.sh b/scripts/desktop/build-desktop-core.sh
index a9f76ccfdb..00c5fed7a9 100755
--- a/scripts/desktop/build-desktop-core.sh
+++ b/scripts/desktop/build-desktop-core.sh
@@ -27,6 +27,11 @@ native_path() {
fi
}
+# Lithe-core-rust main at 84735ea, #76 squash-merged on top of ac8825b: build.modelTree lays out
+# the Build tool window's tree of a decoded model for every build tool, projects nested by
+# parentID, each with its task folders (by category, else by group), dependencies, targets and
+# child projects; a filter marks the matched nodes and keeps the nodes on the way to them
+# (#1866).
# Lithe-core-rust main at ac8825b, #72 squash-merged: Core hides only .git, .worktree,
# .worktrees, .DS_Store and .lithe by itself; workspace.configureVisibility takes the
# manifests of the enabled plugins and hides the folders their build systems name in
@@ -166,7 +171,7 @@ PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git"
# the contract, plugin guides, reference and SDKs live only in shared/plugins; on top of #16 (reported Git queries folded in the console),
# #15 (git.write cherryPick, revert and reset fields), #14 (word-level changed ranges of diff
# rows), #13, #8, #7, #6 and #4.
-PINNED_CORE_REVISION="ac8825beaca4ecdf32d7aa031182a24874619e1c"
+PINNED_CORE_REVISION="84735ea6cf7d7f3dd3faa037526a3325d54bf5d4"
PROFILE="debug"
while [[ $# -gt 0 ]]; do
case "$1" in
diff --git a/shared/i18n/locales/en-US.json b/shared/i18n/locales/en-US.json
index c6f415d0a3..d85ffcc5a7 100644
--- a/shared/i18n/locales/en-US.json
+++ b/shared/i18n/locales/en-US.json
@@ -793,14 +793,12 @@
"desktop.build.modelFailed": "The build model could not be loaded: {error}",
"desktop.build.testDiscoveryFailed": "Could not discover tests: {error}",
"desktop.build.noBuildSystems": "No provider-backed build system was detected.",
- "desktop.build.noProjects": "No projects in the build model",
"desktop.build.noTasks": "No build tasks",
"desktop.build.output": "Build output",
"desktop.build.pluginsUnavailable": "Build plugins are unavailable in this window.",
"desktop.build.preparing": "Preparing…",
"desktop.build.processFailed": "The process ended: {error}",
"desktop.build.projectMissing": "The selected project is no longer in the build model. Refresh the build system.",
- "desktop.build.projects": "Projects",
"desktop.build.refresh": "Detect build systems again",
"desktop.build.runSelected": "Run selected task",
"desktop.build.runTarget": "Run {name}",
@@ -810,7 +808,6 @@
"desktop.build.systems": "Build systems",
"desktop.build.targetMissing": "The selected target is no longer in the build model. Refresh the build system.",
"desktop.build.targets": "Targets",
- "desktop.build.tasks": "Tasks",
"desktop.build.toolchainGap": "The provider prepared {toolchain}. This build cannot launch a toolchain reference yet.",
"desktop.build.versionTooOld": "The build tool is {version}, older than the required {minimum}.",
"desktop.clone.busy": "Cloning…",
@@ -11215,6 +11212,15 @@
"desktop.build.filter": "Filter build systems, tasks and targets",
"desktop.build.dependenciesHelp": "The build tool reads the dependency tree only when this is first opened, which can take a while as the tool runs. The tree is then kept until the build systems are detected again or Reload is chosen on the build system or on Dependencies.",
"desktop.build.noMatches": "No matching build items",
+ "desktop.build.group.lifecycle": "Lifecycle",
+ "desktop.build.group.build": "Build",
+ "desktop.build.group.test": "Test",
+ "desktop.build.group.run": "Run",
+ "desktop.build.group.verification": "Verification",
+ "desktop.build.group.documentation": "Documentation",
+ "desktop.build.group.other": "Other",
+ "desktop.build.treeTruncated": "Too many build items to list them all; only the first ones are shown.",
+ "desktop.build.treeFailed": "The build tree could not be shown: {error}",
"desktop.build.noDebugAdapter": "The build provider's own plugin declares no debug adapter that can start a prepared program.",
"desktop.debug.consoleEmpty": "The debug session's output appears here.",
"desktop.debug.evaluatePlaceholder": "Evaluate expression ({evaluate}) or add a watch ({watch})",
diff --git a/shared/i18n/locales/zh-CN.json b/shared/i18n/locales/zh-CN.json
index 0f6555973b..ea35ce1b03 100644
--- a/shared/i18n/locales/zh-CN.json
+++ b/shared/i18n/locales/zh-CN.json
@@ -793,14 +793,12 @@
"desktop.build.modelFailed": "构建模型加载失败:{error}",
"desktop.build.testDiscoveryFailed": "无法发现测试:{error}",
"desktop.build.noBuildSystems": "没有检测到由提供者驱动的构建系统。",
- "desktop.build.noProjects": "构建模型中没有项目",
"desktop.build.noTasks": "没有构建任务",
"desktop.build.output": "构建输出",
"desktop.build.pluginsUnavailable": "此窗口无法使用构建插件。",
"desktop.build.preparing": "正在准备…",
"desktop.build.processFailed": "进程结束:{error}",
"desktop.build.projectMissing": "所选项目已不在构建模型中,请刷新构建系统。",
- "desktop.build.projects": "项目",
"desktop.build.refresh": "重新检测构建系统",
"desktop.build.runSelected": "运行所选任务",
"desktop.build.runTarget": "运行 {name}",
@@ -810,7 +808,6 @@
"desktop.build.systems": "构建系统",
"desktop.build.targetMissing": "所选目标已不在构建模型中,请刷新构建系统。",
"desktop.build.targets": "目标",
- "desktop.build.tasks": "任务",
"desktop.build.toolchainGap": "提供者准备了 {toolchain}。当前构建尚不能启动工具链引用。",
"desktop.build.versionTooOld": "构建工具版本为 {version},低于要求的 {minimum}。",
"desktop.clone.busy": "正在克隆…",
@@ -11215,6 +11212,15 @@
"desktop.build.filter": "筛选构建系统、任务与目标",
"desktop.build.dependenciesHelp": "第一次展开时才让构建工具读取依赖树,构建工具运行期间可能要等一会儿。读到的依赖会一直保留,直到重新检测构建系统,或在构建系统或“依赖”上选“重新加载”。",
"desktop.build.noMatches": "没有匹配的构建项",
+ "desktop.build.group.lifecycle": "生命周期",
+ "desktop.build.group.build": "构建",
+ "desktop.build.group.test": "测试",
+ "desktop.build.group.run": "运行",
+ "desktop.build.group.verification": "验证",
+ "desktop.build.group.documentation": "文档",
+ "desktop.build.group.other": "其他",
+ "desktop.build.treeTruncated": "构建项太多,只列出了前面一部分。",
+ "desktop.build.treeFailed": "无法显示构建树:{error}",
"desktop.build.noDebugAdapter": "该构建插件所属的插件没有声明可以启动已准备程序的调试适配器。",
"desktop.debug.consoleEmpty": "调试会话的输出会显示在这里。",
"desktop.debug.evaluatePlaceholder": "对表达式求值({evaluate})或添加监视({watch})",
diff --git a/shared/i18n/messages.json b/shared/i18n/messages.json
index ad82ddb291..0fbecec8ed 100644
--- a/shared/i18n/messages.json
+++ b/shared/i18n/messages.json
@@ -6665,6 +6665,72 @@
"desktop"
]
},
+ {
+ "id": "desktop.build.group.lifecycle",
+ "description": "Build tool window: heading of the folder that holds a project's lifecycle tasks (clean, compile, package and the like)",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.group.build",
+ "description": "Build tool window: heading of the folder that holds a project's build tasks",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.group.test",
+ "description": "Build tool window: heading of the folder that holds a project's test tasks",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.group.run",
+ "description": "Build tool window: heading of the folder that holds a project's tasks that run the application",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.group.verification",
+ "description": "Build tool window: heading of the folder that holds a project's checks (lint, verify and the like)",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.group.documentation",
+ "description": "Build tool window: heading of the folder that holds a project's documentation tasks",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.group.other",
+ "description": "Build tool window: heading of the folder that holds the tasks of no other group",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.treeTruncated",
+ "description": "Build tool window line under a build system whose tree holds too many items to list them all",
+ "platforms": [
+ "desktop"
+ ]
+ },
+ {
+ "id": "desktop.build.treeFailed",
+ "description": "Build tool window line when a loaded build model could not be laid out as a tree: {error}",
+ "platforms": [
+ "desktop"
+ ],
+ "parameters": {
+ "error": "string"
+ }
+ },
{
"id": "desktop.build.emptyOutput",
"description": "Run a build task to see output.",
@@ -6727,13 +6793,6 @@
"desktop"
]
},
- {
- "id": "desktop.build.noProjects",
- "description": "No projects in the build model",
- "platforms": [
- "desktop"
- ]
- },
{
"id": "desktop.build.noTasks",
"description": "No build tasks",
@@ -6855,13 +6914,6 @@
"desktop"
]
},
- {
- "id": "desktop.build.projects",
- "description": "Projects",
- "platforms": [
- "desktop"
- ]
- },
{
"id": "desktop.build.refresh",
"description": "Detect build systems again",
@@ -6935,13 +6987,6 @@
"desktop"
]
},
- {
- "id": "desktop.build.tasks",
- "description": "Tasks",
- "platforms": [
- "desktop"
- ]
- },
{
"id": "desktop.build.testDiscoveryFailed",
"description": "The build system could not list its tests: {error}",
diff --git a/shared/platform-feature-matrix/features/build-system-plugins.json b/shared/platform-feature-matrix/features/build-system-plugins.json
index 2a5731f7ec..fa6482b806 100644
--- a/shared/platform-feature-matrix/features/build-system-plugins.json
+++ b/shared/platform-feature-matrix/features/build-system-plugins.json
@@ -77,8 +77,8 @@
]
},
"owner": "Extensions",
- "verification": "macOS 已接入 static、command、hostIntegration、provider 四种模型来源:宿主向 Core 声明 buildSystems 与 buildProviders 能力,插件市场因此列出兼容的 API 3 声明式和 Provider 版本;Provider 进程按插件、构建系统和工作区各自独立,经各自 stdio 用 JSON-RPC(LSP 基础协议)与宿主通信,initialize 协商 capabilities.experimental.litheBuild 后宿主才经 lsp.buildRequest 发送 lithe/build/model、lithe/build/dependencies,回复交给 Core 解码;共享写法只复用同一插件的语言服务器会话;进程只在用户加载模型或依赖时启动,切换工作区、关闭项目窗口、停止执行模块、停用或更新插件、退出应用时停止;ExecutionFeatureGraph.stop 经 BuildSystemService.stop 同时回收已就绪和初始化中的 Provider,停止后的初始化完成也不得重新登记会话;状态写入插件状态目录;每个已启用的构建系统插件在打开工作区后各有一个右侧工具窗口(标题为 displayName、图标为 icon),不依赖识别结果,工作区没有对应工程时窗口内显示未检测到该构建系统,工具栏放运行、参数任务、刷新和 presentation=toolbar 的开关,树顶部是 presentation=tree 的勾选选项,工程下按 category(缺省按 group)分级列出任务,再列测试、目标和依赖;旧客户端内置的构建窗口与共享 Build 窗口已删除,Build Output 显示输出、诊断与测试结果。窗口恢复先激活所属插件模块,激活中的命令面板项禁用;参数任务遵守 workspace/project/target 作用范围与目标标签,模型或工作区变化后清除旧选择。隔离回归覆盖这些边界、窗口布局恢复及包内图标读取前后文件清单与字节不变;多实例的根目录选择器保留每个实例的模型候选和生效值,编辑多选时保留兄弟实例独有的已选值;显式清空按实例根持久化为空覆盖,检测、同步指纹、任务计划和语言服务器导入使用同一覆盖,兄弟编辑或重开不会恢复非空默认值,非空编辑清当前实例标记而共享编辑/重置清该选项全部标记;真实 Core、生产存储与服务回归核对最终 argv 和导入值;列表单选与多选支持 allowCustom 原生输入和移除已选自定义值,文本/文件/目录清空提交显式空字符串,只有重置删除覆盖。运行时准备后再等一次,覆盖等待期间失效。命令模型 run 配置尚未接入;buildProviders 2 已接入原生任务 lithe/build/execute,复用工作区进程并校验协议版本、进度/结果、取消/超时和旧结果隔离,真实安装包/工具工作流仍待验收,Provider 无操作系统级沙盒;Windows 宿主尚未调用 build.* 命令。自动化:cargo test -p lithe-core --lib build_systems、cargo test -p lithe-core --lib lsp、scripts/architecture/verify-shared-contracts.sh、./scripts/macos/test/test-macos.sh --filter 'BuildSystemToolWindowTests|RustBuildSystemOperationsTests|BuildSystemServiceTests|PluginMarketplaceServiceTests'。手动验证:安装 fixtures 中 build-static-file、build-command-stdout 形态的插件包,确认每个构建系统各出现一个工具窗口,列出工程、分级任务、选项和依赖,停用插件后窗口消失;执行任务与测试的 argv 与 build-plans.json 一致,停止与输出上限生效;JUnit 报告与 lineMatcher 诊断可跳转到源码;命令模型和项目内 Wrapper 只在用户点击加载或运行后启动;禁用插件后实例消失;Windows 接入后另需验证未信任工作区不启动任何模型命令或 Wrapper;build-provider 形态的自有 Provider 只在用户操作或工作区信任后启动、停用插件时停止,build-provider-language-server 形态复用语言服务器会话而不启动第二个进程;运行前后 app bundle 文件清单不变(scripts/desktop/verify/verify-runtime-bundle-immutability.sh)。;新路径选择使用 executableResolution 1 + settings 2,已发布 buildSystems 2 旧字段只作统一候选输入适配:MacBuildToolResolverTests 验证带空格绝对路径、权限与版本失败不回退,BuildSystemServiceTests 验证 Provider 失败不独立发现,RustBuildSystemOperationsTests 验证全局值接入。发布前需把独立仓库 sdk.lock.json 的宿主 pin 更新到包含该能力的已发布提交。;回归增加非法存储值不回默认、数组/priority/插入顺序与拒绝循环、宿主注入发现、空设置跳过和被动选择不探测;Language Server/Execution Provider 新清单语法尚未开放,Windows 不声明 executableResolution。;真实 Core + macOS resolver + BuildSystemService 组合回归覆盖前置 Runtime 缺失/版本不足时保留工具或后置 Runtime 的非空 setting 约束,Provider 不发送独立发现请求;全部设置为空时仍可回退。自定义 Runtime 先构造含所选目录的 PATH,再以同一环境探测与执行,同目录 helper 的带空格路径回归通过。;buildProviders 3 增加原生测试执行 lithe/build/test,筛选参数保持类型化,报告复用 JUnit/标准结果解析;旧协议明确拒绝测试,报告解析期间配置失效会取消操作并丢弃迟到结果。原生树已接入按需测试发现,Core 校验完整清单并保留模块身份,运行前重查当前清单;配置/源码/包变化、停用/重开使缓存或进行中的发现失效。Windows 工作流仍待验收。;buildProviders 4 应用目标准备接入原生 Build 树,构建进度在 Build Output 展示,验证后转交 RunService 解析工具与启动/停止应用;准备期间源码、选项、工作区或停用变化拒绝迟到启动,旧操作 ID 不得停止替换进程;Core 拒绝绝对可执行路径、越界目录/符号链接及超限参数环境。服务编排与调试尚未完成;真实插件/发行包和 Windows 工作流仍待验收。;Run v2 本地层显式保存 Provider 选择器,参数保持原始数组;无 generated.json 也能读回/显示,重复保存保留 ID/其他配置/项目环境;重启重新进入当前 Provider,停止与晚到结果按身份隔离。原生入口保存工作区文档后再准备,Run 窗口在未生成旧配置时仍显示 Provider 输出。;Agent 入口回归从真实本地配置启动,验证准备到进程退出保持公开操作 ID、准备中停止与重启重新准备,旧 ID 不能停止替换操作;Provider 与进程为可控替身,真实插件端到端验收仍待完成。;Core 的 Node/Java SDK 补齐协议 2/3/4 的处理器、版本准入与进度;无页面示例经真实 Core 验证非零构建退出码、精确筛选、运行前构建及准备计划、并行工作区、取消工具清理和完整包不变,另保留锁定旧契约的兼容场景与 TypeScript 调用方编译检查。SDK 尚未发布,Windows 验收仍待完成。 原生 Debug:运行声明引用同包适配器,点击 Build 树 Debug 或保存配置的 Debug 后先保存并构建,验证程序路径/参数/环境交给注册表;停止、源码或配置变化、模型重载、插件停用与工作区切换均丢弃过期结果,解码后的文件别名变化和不可执行文件在平台交接前拒绝。Node/Java SDK 进程的准备协议与 Core 解码有端到端覆盖;真实适配器、跨插件协作和 Windows 尚未验收。 正式包、完整 macOS UI 与 Windows 验收未完成,保持 partial/pending。 真实原生调试集成:公开 Node SDK Provider 用 Clang 编译 C 程序,经生产 macOS 会话、Core 准备、Registry 明确身份、生产 stdio 传输和 LLDB 命中源码断点、读取 main 栈帧、保留空格参数后继续并退出码 0;包 SHA-256/权限不变,所有本次进程回收。测试显式选择 SDK/工具,完整 UI、正式发行与 Windows 尚未验收,verification 保持 pending。 Build 树应用从文档保存阶段起持有同一可取消运行 ID;保存 gate 下启动新任务/测试或停止、切换工作区、选项/源码/模型/插件失效后,旧保存返回不得启动 Provider、替换新运行或清空新输出;保存失败不启动,成功后才准备。 原生视图隔离回归用真实 Core 与受控 Provider 数据检查深浅主题的测试发现、Debug 入口和 Run 输出;截图仅验证该视图状态,不代替完整发行包或 Windows 实机验收。 实例作用域:用同一工作区的两个独立根验证 Profiles、文件/目录、布尔与文本值独立持久化;编辑、清空或重置 A 不影响 B,重开后任务、静态运行入口、同步和语言导入读取相同根的配置;未声明作用域的插件保留共享行为。Windows 运行验收另行完成,保持 partial/pending。 作用域变更的旧 Build 偏好先复制并验证目标,再删除共享源;写入失败阻止默认配置发布并允许重试,已有实例值优先,暂未检测到根的空标记也迁移保留。 工具链候选通过真实 Core 与生产本地文档验证按实例选择工具,Provider 环境保留选中工具的环境变量与 PATH 且不转发无关测试凭据;被动导入不探测版本或运行 Wrapper,显式路径失败不能独立发现。Windows 不声明 executableResolution 2。 共享 Build 文档验证工作区/实例默认值、逐根覆盖和本机差异合并;重开和检测不改共享字节,重置本机值恢复继承,外部修改冲突或文档损坏明确失败并保留原始数据。 未选中的自定义候选仅在 allowCustom 选项中展示,不改变选择和模型;真实 Core、生产存储和服务回归通过,新增实例静态入口继承团队默认值。 协议 8 回归覆盖协商拒绝、随执行返回的报告、缺失/损坏失败、模块同名测试隔离、取消/配置变更后拒绝晚到解码,以及普通任务中的测试结果。Java/Node SDK 同步,正式发布尚未完成。 本机选项、逐根映射和空多选标记中存在非 Data 存储值时,检测失败并保留原始偏好,不得当缺失键发布默认值。 本机实例默认值继承、逐根覆盖与重置通过真实 Core 和生产存储验证,团队文档字节不变;本机默认值不进入资源复用。 正式发行组合仍待验证。 协议 10 接通带版本协商的类型化运行选项与服务/任务准备(Core、Swift、Node/Java SDK)。原生 Run/Start All 为每个 Provider 服务独立准备,配置 ABA/Stop/重置拒绝旧回复,已停进程输出不能覆盖新会话;Build 树按服务/任务类型发请求;停用和包更新在删除包前停止准备及进程,旧启动注册更新后不可再次使用。macOS 无调用者的旧内置构建桥和工程模型已删除;Windows 当前旧命令消费者、Core 旧实现和正式发行/完整 UI 验收仍待完成。 保存 Provider service/task 引用保留执行类型、稳定配置 ID 和参数,重开后按当前声明重验;独立准备至进程交接保留 Agent 操作身份。 服务所有者使用完整插件包身份;停用其中一个插件不会停止同名构建系统下另一插件的进程。preview 内存检测层保留 Provider 模型摘要,自动识别不写工作区。 Windows Build 选项编辑与 Agent 共用原生本机存储:开页只读,修改草稿后显式保存/恢复继承;隐藏重开保留草稿。团队/本机两层版本同时检查,冲突、关闭、插件撤销拒绝迟到写入。实例选择独立,工作区多选保留兄弟实例值和显式空选择;无关系统/根/记忆选项与团队文件字节保持。保存后重新检测并使旧模型失效。长选项/模型选择使用有界视口,不启动工具或 Provider。产品能力准入仍关闭,不能据此认定 Windows 迁移完成。 Viva 2026-11-09:Tests 工具窗口经 build.testPlan 计划工作区测试,宿主只启动 Core 展开的命令或 Provider 请求;报告由 Core build.decodeTestResults 解码,最终判定由 build.resolveTestRunOutcome 归约,宿主不解析报告格式、不按退出码自行判定。结果树按 suite/case 分组并有界虚拟化,失败项按解码出的 workspace-relative path/line 打开;停止、工作区关闭和过期结果按 run generation 丢弃。desktop/internal/workbench/tests_test.go 以隔离 fixture 插件、真实测试进程和 JUnit fixture 覆盖运行→解码→结果树→失败定位、停止取消和关闭项目停止运行;desktop/internal/workbench/tests_provider_test.go 用真实 Provider 进程(lithe/build/test 返回规范报告)覆盖 Provider 运行→Core 解码→结果树、Provider 取消和关闭项目停止 Provider 会话;原生窗口与 Windows 实机仍 pending。 Viva 聚合 Build 窗口:build_tree_test.go 覆盖默认只展开选中实例、用户展开/折叠的记忆、全部展开时依赖保持折叠、筛选按分组/根目录/行匹配且不触发加载、同时最多加载 4 个模型、失败和折叠的分组不加载,以及点击其他分组的行切换构建系统并能运行选中的目标;build_menus_test.go 覆盖从右键菜单运行目标后打开 Run 窗口的构建控制台;runconfig_browser_test.go 覆盖 Build 窗口中的运行配置列表:范围与计数、固定写入客户端存储而不写项目、分组折叠展开、双击运行和行内停止。运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run 'TestBuild|TestRunConfiguration' -count=1。真实插件组合与 Windows 实机仍待验收。 Viva 2026-11-14 任务范围:构建树的任务行不带项目,从树里运行时按任务声明的范围推断,不再把只能在项目上运行的任务当作工作区请求(Core 会报 plugin.build.invalidSelection)。模型任务用它所属的项目;声明任务依次用选中的目标、选中的项目(或目标所在的项目)、工作区;什么都没选时取构建根目录的项目或唯一的项目、唯一适用的目标;推断不出时提示先选择项目或目标,不发请求。选中项目时,任务分组只列出这个项目的模型任务。IDE API 仍按请求原样交给 Core 校验。build_tree_test.go 的 TestBuildTaskSelectionFitsDeclaredScopes、TestBuildTreeTasksRunOnTheScopeTheyDeclare 覆盖这些规则,后者在修复前失败(Project 为空);真实插件组合与 Windows 实机仍待验收。",
- "notes": "Viva 已接入 buildSystems 1 / buildProviders 1–2 的纵向切片:Build 工具窗口用 Core 检测实例、加载 provider 模型或执行 command 模型,列出项目、目标、command/provider 任务;command 任务按 build.invocationPlan 的候选顺序解析并做版本检查,provider 任务经 lsp.buildRequest 执行,共享 provider 复用同插件语言服务器;输出有界、支持停止,关闭项目回收 provider 与进程树。GitHub Release 原始包按契约 / 目录布局发布,当前 pluginpkg 只接受解压根目录的 plugin.json,安装器布局问题单独记录。未声明 buildProviders 4、settings、executableResolution、测试与 Debug:工具链运行引用、需设置插件、测试/诊断面板仍缺失。Windows Job Object 已实现并交叉编译,但无实机验证,保持 pending。Viva 客户端尚未逐项盘点;legacy 是迁移前基线,不代表当前实现。 Viva 运行设置接线:build.invocationPlan 携带真实全局插件层,显式无效工具路径直接失败并保留自动候选顺序;有效显式工具父目录进入 PATH。Provider 启动携带独立全局/项目层,工作区 URI 由 Core 生成。此接线不表示通用设置界面、原生配置页或完整 Build 协议迁移已验收。 Viva 2026-11-14:构建系统改为一个聚合的 Build 工具窗口,放在右侧工具栏上方(与 IDEA 的位置一致),不再为每个实例开标签页。窗口里是一棵树,每个检测到的构建系统实例是一个分组,显示构建系统名称、徽标和相对根目录;分组下是项目、目标、任务、测试和依赖。默认只展开当前选中的实例,用户手动展开或折叠过的分组保持该状态;依赖分组默认折叠,因为加载依赖要运行构建工具。筛选框按分组名称、根目录和行名称过滤,匹配的行固定展开在所属分组下;筛选只读已加载的模型,不会触发加载。展开的分组按需加载模型,同时最多加载 4 个,加载失败的不会自动重试,折叠的分组不加载。点击其他分组的行会切换到该构建系统并选中这一行,工具栏的运行按钮会执行选中的目标或任务。运行配置列表放在右侧 Build 窗口顶部,和下面的构建树之间有可拖动的分隔条,按范围、固定和执行类型筛选,双击运行、行内按钮停止。目标的名称以其路径结尾时(如包的导入路径以所在目录结尾),目标行只显示路径,鼠标悬停显示完整名称;其他目标仍显示名称并在旁边显示路径,筛选仍按名称和路径匹配。底部原先的 Build 窗口改为 Run 窗口,只显示运行输出:构建控制台,以及插件启动的运行各自的标签页;Build 窗口发起的任务或运行会打开 Run 窗口并切到构建控制台。 Viva 2026-11-14:参照 IDEA 的 Make 窗口,每个任务和有运行入口的目标行首常驻绿色运行按钮,不必先选中,点一下就选中该行并运行,构建进行中按钮变暗不可点;没有运行入口的目标和项目保留类型图标,调试按钮仍只在选中的行上。名称与路径放不下时路径先省略、名称以省略号结尾,悬停提示显示完整名称和路径(只显示路径的目标显示完整名称);依赖标题旁的 ⓘ 说明依赖树在第一次展开时才由构建工具读取,以及何时重新读取。自动化:TestBuildTreeRunMarksRunTheirRowsAtOnce;截图 docs/assets/build-panels/build-go-targets-*.png。 Viva 2026-11-14:Core 固定版本升到 Lithe-core-rust#33,构建检测和自动运行项发现跳过被 Git 忽略的目录(工作区内的 .gitignore 与仓库的 info/exclude),代理工作树、生成目录和本地副本不再被列成构建系统,同一模块不再出现两遍;Core 自动化:tests::build_systems::detection_skips_directories_git_ignores。 Viva 2026-11-14:Core 固定版本升到 Lithe-core-rust#35,构建选项新增“检测”分区的忽略路径:一行一条 .gitignore 写法的规则,相对项目根目录、只匹配文件夹,默认忽略所有以 . 开头的文件夹(如 .claude/worktrees),以 ! 开头的规则可以让文件夹(包括被 Git 忽略的)重新参与检测。列表按本机、团队文件 .lithe/build/options.json、默认值的顺序取第一个,对话框写明当前来源;修改只保存在本机,恢复默认删除本机列表,保存后重新检测。Build 窗口标题栏的齿轮打开只含忽略路径的构建选项,构建系统行的齿轮和右键菜单在忽略路径下方显示该构建系统的选项;Core 拒绝的规则标出所在行,对话框保持打开、不写入。自动化:TestBuildOptionsIgnoredPathsAreSavedOnThisMachineAndRestored、TestBuildOptionsNameTheLineOfARefusedIgnoredPath、core 包 TestBuildIgnoredPathsResolveFromTheLayersAndEditTheLocalList、TestBuildDetectSkipsTheIgnoredPaths。 Viva 2026-11-16(#2032):Windows 上由宿主启动的 .cmd/.bat(构建工具、版本探测、Run、Tests 共用 buildprocess)改为宿主自己构造 cmd.exe /d /c \"\"脚本\" 参数\" 命令行,参数按 BatBadBut 修复后的规则转义;此前脚本目录和参数都含空格时 cmd 去掉首尾引号,Maven 模型加载报 C:\\Program 不是命令并以 exit 1 失败。模型和依赖命令失败时,错误附带工具最后 12 行输出(去掉终端控制符),构建树行悬停显示全文。Windows 11 ARM64 来宾(x64 仿真)实机:TestBatchFileUnderASpacedDirectoryReceivesItsArguments 修复前失败、修复后通过,buildprocess 全部用例通过;同一来宾用真实 mvn.cmd 跑模型命令,修复前 exit 1,修复后写出模型。完整客户端界面验收尚未执行,状态保持 pending。",
+ "verification": "macOS 已接入 static、command、hostIntegration、provider 四种模型来源:宿主向 Core 声明 buildSystems 与 buildProviders 能力,插件市场因此列出兼容的 API 3 声明式和 Provider 版本;Provider 进程按插件、构建系统和工作区各自独立,经各自 stdio 用 JSON-RPC(LSP 基础协议)与宿主通信,initialize 协商 capabilities.experimental.litheBuild 后宿主才经 lsp.buildRequest 发送 lithe/build/model、lithe/build/dependencies,回复交给 Core 解码;共享写法只复用同一插件的语言服务器会话;进程只在用户加载模型或依赖时启动,切换工作区、关闭项目窗口、停止执行模块、停用或更新插件、退出应用时停止;ExecutionFeatureGraph.stop 经 BuildSystemService.stop 同时回收已就绪和初始化中的 Provider,停止后的初始化完成也不得重新登记会话;状态写入插件状态目录;每个已启用的构建系统插件在打开工作区后各有一个右侧工具窗口(标题为 displayName、图标为 icon),不依赖识别结果,工作区没有对应工程时窗口内显示未检测到该构建系统,工具栏放运行、参数任务、刷新和 presentation=toolbar 的开关,树顶部是 presentation=tree 的勾选选项,工程下按 category(缺省按 group)分级列出任务,再列测试、目标和依赖;旧客户端内置的构建窗口与共享 Build 窗口已删除,Build Output 显示输出、诊断与测试结果。窗口恢复先激活所属插件模块,激活中的命令面板项禁用;参数任务遵守 workspace/project/target 作用范围与目标标签,模型或工作区变化后清除旧选择。隔离回归覆盖这些边界、窗口布局恢复及包内图标读取前后文件清单与字节不变;多实例的根目录选择器保留每个实例的模型候选和生效值,编辑多选时保留兄弟实例独有的已选值;显式清空按实例根持久化为空覆盖,检测、同步指纹、任务计划和语言服务器导入使用同一覆盖,兄弟编辑或重开不会恢复非空默认值,非空编辑清当前实例标记而共享编辑/重置清该选项全部标记;真实 Core、生产存储与服务回归核对最终 argv 和导入值;列表单选与多选支持 allowCustom 原生输入和移除已选自定义值,文本/文件/目录清空提交显式空字符串,只有重置删除覆盖。运行时准备后再等一次,覆盖等待期间失效。命令模型 run 配置尚未接入;buildProviders 2 已接入原生任务 lithe/build/execute,复用工作区进程并校验协议版本、进度/结果、取消/超时和旧结果隔离,真实安装包/工具工作流仍待验收,Provider 无操作系统级沙盒;Windows 宿主尚未调用 build.* 命令。自动化:cargo test -p lithe-core --lib build_systems、cargo test -p lithe-core --lib lsp、scripts/architecture/verify-shared-contracts.sh、./scripts/macos/test/test-macos.sh --filter 'BuildSystemToolWindowTests|RustBuildSystemOperationsTests|BuildSystemServiceTests|PluginMarketplaceServiceTests'。手动验证:安装 fixtures 中 build-static-file、build-command-stdout 形态的插件包,确认每个构建系统各出现一个工具窗口,列出工程、分级任务、选项和依赖,停用插件后窗口消失;执行任务与测试的 argv 与 build-plans.json 一致,停止与输出上限生效;JUnit 报告与 lineMatcher 诊断可跳转到源码;命令模型和项目内 Wrapper 只在用户点击加载或运行后启动;禁用插件后实例消失;Windows 接入后另需验证未信任工作区不启动任何模型命令或 Wrapper;build-provider 形态的自有 Provider 只在用户操作或工作区信任后启动、停用插件时停止,build-provider-language-server 形态复用语言服务器会话而不启动第二个进程;运行前后 app bundle 文件清单不变(scripts/desktop/verify/verify-runtime-bundle-immutability.sh)。;新路径选择使用 executableResolution 1 + settings 2,已发布 buildSystems 2 旧字段只作统一候选输入适配:MacBuildToolResolverTests 验证带空格绝对路径、权限与版本失败不回退,BuildSystemServiceTests 验证 Provider 失败不独立发现,RustBuildSystemOperationsTests 验证全局值接入。发布前需把独立仓库 sdk.lock.json 的宿主 pin 更新到包含该能力的已发布提交。;回归增加非法存储值不回默认、数组/priority/插入顺序与拒绝循环、宿主注入发现、空设置跳过和被动选择不探测;Language Server/Execution Provider 新清单语法尚未开放,Windows 不声明 executableResolution。;真实 Core + macOS resolver + BuildSystemService 组合回归覆盖前置 Runtime 缺失/版本不足时保留工具或后置 Runtime 的非空 setting 约束,Provider 不发送独立发现请求;全部设置为空时仍可回退。自定义 Runtime 先构造含所选目录的 PATH,再以同一环境探测与执行,同目录 helper 的带空格路径回归通过。;buildProviders 3 增加原生测试执行 lithe/build/test,筛选参数保持类型化,报告复用 JUnit/标准结果解析;旧协议明确拒绝测试,报告解析期间配置失效会取消操作并丢弃迟到结果。原生树已接入按需测试发现,Core 校验完整清单并保留模块身份,运行前重查当前清单;配置/源码/包变化、停用/重开使缓存或进行中的发现失效。Windows 工作流仍待验收。;buildProviders 4 应用目标准备接入原生 Build 树,构建进度在 Build Output 展示,验证后转交 RunService 解析工具与启动/停止应用;准备期间源码、选项、工作区或停用变化拒绝迟到启动,旧操作 ID 不得停止替换进程;Core 拒绝绝对可执行路径、越界目录/符号链接及超限参数环境。服务编排与调试尚未完成;真实插件/发行包和 Windows 工作流仍待验收。;Run v2 本地层显式保存 Provider 选择器,参数保持原始数组;无 generated.json 也能读回/显示,重复保存保留 ID/其他配置/项目环境;重启重新进入当前 Provider,停止与晚到结果按身份隔离。原生入口保存工作区文档后再准备,Run 窗口在未生成旧配置时仍显示 Provider 输出。;Agent 入口回归从真实本地配置启动,验证准备到进程退出保持公开操作 ID、准备中停止与重启重新准备,旧 ID 不能停止替换操作;Provider 与进程为可控替身,真实插件端到端验收仍待完成。;Core 的 Node/Java SDK 补齐协议 2/3/4 的处理器、版本准入与进度;无页面示例经真实 Core 验证非零构建退出码、精确筛选、运行前构建及准备计划、并行工作区、取消工具清理和完整包不变,另保留锁定旧契约的兼容场景与 TypeScript 调用方编译检查。SDK 尚未发布,Windows 验收仍待完成。 原生 Debug:运行声明引用同包适配器,点击 Build 树 Debug 或保存配置的 Debug 后先保存并构建,验证程序路径/参数/环境交给注册表;停止、源码或配置变化、模型重载、插件停用与工作区切换均丢弃过期结果,解码后的文件别名变化和不可执行文件在平台交接前拒绝。Node/Java SDK 进程的准备协议与 Core 解码有端到端覆盖;真实适配器、跨插件协作和 Windows 尚未验收。 正式包、完整 macOS UI 与 Windows 验收未完成,保持 partial/pending。 真实原生调试集成:公开 Node SDK Provider 用 Clang 编译 C 程序,经生产 macOS 会话、Core 准备、Registry 明确身份、生产 stdio 传输和 LLDB 命中源码断点、读取 main 栈帧、保留空格参数后继续并退出码 0;包 SHA-256/权限不变,所有本次进程回收。测试显式选择 SDK/工具,完整 UI、正式发行与 Windows 尚未验收,verification 保持 pending。 Build 树应用从文档保存阶段起持有同一可取消运行 ID;保存 gate 下启动新任务/测试或停止、切换工作区、选项/源码/模型/插件失效后,旧保存返回不得启动 Provider、替换新运行或清空新输出;保存失败不启动,成功后才准备。 原生视图隔离回归用真实 Core 与受控 Provider 数据检查深浅主题的测试发现、Debug 入口和 Run 输出;截图仅验证该视图状态,不代替完整发行包或 Windows 实机验收。 实例作用域:用同一工作区的两个独立根验证 Profiles、文件/目录、布尔与文本值独立持久化;编辑、清空或重置 A 不影响 B,重开后任务、静态运行入口、同步和语言导入读取相同根的配置;未声明作用域的插件保留共享行为。Windows 运行验收另行完成,保持 partial/pending。 作用域变更的旧 Build 偏好先复制并验证目标,再删除共享源;写入失败阻止默认配置发布并允许重试,已有实例值优先,暂未检测到根的空标记也迁移保留。 工具链候选通过真实 Core 与生产本地文档验证按实例选择工具,Provider 环境保留选中工具的环境变量与 PATH 且不转发无关测试凭据;被动导入不探测版本或运行 Wrapper,显式路径失败不能独立发现。Windows 不声明 executableResolution 2。 共享 Build 文档验证工作区/实例默认值、逐根覆盖和本机差异合并;重开和检测不改共享字节,重置本机值恢复继承,外部修改冲突或文档损坏明确失败并保留原始数据。 未选中的自定义候选仅在 allowCustom 选项中展示,不改变选择和模型;真实 Core、生产存储和服务回归通过,新增实例静态入口继承团队默认值。 协议 8 回归覆盖协商拒绝、随执行返回的报告、缺失/损坏失败、模块同名测试隔离、取消/配置变更后拒绝晚到解码,以及普通任务中的测试结果。Java/Node SDK 同步,正式发布尚未完成。 本机选项、逐根映射和空多选标记中存在非 Data 存储值时,检测失败并保留原始偏好,不得当缺失键发布默认值。 本机实例默认值继承、逐根覆盖与重置通过真实 Core 和生产存储验证,团队文档字节不变;本机默认值不进入资源复用。 正式发行组合仍待验证。 协议 10 接通带版本协商的类型化运行选项与服务/任务准备(Core、Swift、Node/Java SDK)。原生 Run/Start All 为每个 Provider 服务独立准备,配置 ABA/Stop/重置拒绝旧回复,已停进程输出不能覆盖新会话;Build 树按服务/任务类型发请求;停用和包更新在删除包前停止准备及进程,旧启动注册更新后不可再次使用。macOS 无调用者的旧内置构建桥和工程模型已删除;Windows 当前旧命令消费者、Core 旧实现和正式发行/完整 UI 验收仍待完成。 保存 Provider service/task 引用保留执行类型、稳定配置 ID 和参数,重开后按当前声明重验;独立准备至进程交接保留 Agent 操作身份。 服务所有者使用完整插件包身份;停用其中一个插件不会停止同名构建系统下另一插件的进程。preview 内存检测层保留 Provider 模型摘要,自动识别不写工作区。 Windows Build 选项编辑与 Agent 共用原生本机存储:开页只读,修改草稿后显式保存/恢复继承;隐藏重开保留草稿。团队/本机两层版本同时检查,冲突、关闭、插件撤销拒绝迟到写入。实例选择独立,工作区多选保留兄弟实例值和显式空选择;无关系统/根/记忆选项与团队文件字节保持。保存后重新检测并使旧模型失效。长选项/模型选择使用有界视口,不启动工具或 Provider。产品能力准入仍关闭,不能据此认定 Windows 迁移完成。 Viva 2026-11-09:Tests 工具窗口经 build.testPlan 计划工作区测试,宿主只启动 Core 展开的命令或 Provider 请求;报告由 Core build.decodeTestResults 解码,最终判定由 build.resolveTestRunOutcome 归约,宿主不解析报告格式、不按退出码自行判定。结果树按 suite/case 分组并有界虚拟化,失败项按解码出的 workspace-relative path/line 打开;停止、工作区关闭和过期结果按 run generation 丢弃。desktop/internal/workbench/tests_test.go 以隔离 fixture 插件、真实测试进程和 JUnit fixture 覆盖运行→解码→结果树→失败定位、停止取消和关闭项目停止运行;desktop/internal/workbench/tests_provider_test.go 用真实 Provider 进程(lithe/build/test 返回规范报告)覆盖 Provider 运行→Core 解码→结果树、Provider 取消和关闭项目停止 Provider 会话;原生窗口与 Windows 实机仍 pending。 Viva 聚合 Build 窗口:build_tree_test.go 的 TestBuildTreeNestsProjectsWithTheirFolders 覆盖父子项目按 parentID 嵌套、每个项目各自列出任务文件夹/依赖/Targets、单一根项目并入构建系统行、默认只展开选中实例且项目展开而文件夹/Targets/依赖折叠、用户展开/折叠的记忆、全部展开时依赖保持折叠、重新加载后保留展开状态;TestBuildTreeFilterKeepsMatchesUnderTheirProjects 覆盖筛选保留命中节点和通往它的项目与文件夹、构建系统名称/根目录/根项目命中时保留整棵树、筛选不触发加载、新筛选结果到达前沿用上一次结果;TestBuildTreeLoadsOpenModelsAFewAtATime 覆盖同时最多加载 4 个模型、失败和折叠的分组不加载;TestBuildTreeRowsChooseTheirBuildSystem 覆盖点击其他分组的行切换构建系统并能运行选中的目标;build_menus_test.go 覆盖从右键菜单运行目标后打开 Run 窗口的构建控制台;runconfig_browser_test.go 覆盖 Build 窗口中的运行配置列表:范围与计数、固定写入客户端存储而不写项目、分组折叠展开、双击运行和行内停止。运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run 'TestBuild|TestRunConfiguration' -count=1。真实插件组合与 Windows 实机仍待验收。 Viva 2026-11-14 任务范围:构建树的任务行不带项目,从树里运行时按任务声明的范围推断,不再把只能在项目上运行的任务当作工作区请求(Core 会报 plugin.build.invalidSelection)。模型任务用它所属的项目;声明任务依次用选中的目标、选中的项目(或目标所在的项目)、工作区;什么都没选时取构建根目录的项目或唯一的项目、唯一适用的目标;推断不出时提示先选择项目或目标,不发请求。选中项目时,任务分组只列出这个项目的模型任务。IDE API 仍按请求原样交给 Core 校验。build_tree_test.go 的 TestBuildTaskSelectionFitsDeclaredScopes、TestBuildTreeTasksRunOnTheScopeTheyDeclare 覆盖这些规则,后者在修复前失败(Project 为空);真实插件组合与 Windows 实机仍待验收。",
+ "notes": "Viva 已接入 buildSystems 1 / buildProviders 1–2 的纵向切片:Build 工具窗口用 Core 检测实例、加载 provider 模型或执行 command 模型,列出项目、目标、command/provider 任务;command 任务按 build.invocationPlan 的候选顺序解析并做版本检查,provider 任务经 lsp.buildRequest 执行,共享 provider 复用同插件语言服务器;输出有界、支持停止,关闭项目回收 provider 与进程树。GitHub Release 原始包按契约 / 目录布局发布,当前 pluginpkg 只接受解压根目录的 plugin.json,安装器布局问题单独记录。未声明 buildProviders 4、settings、executableResolution、测试与 Debug:工具链运行引用、需设置插件、测试/诊断面板仍缺失。Windows Job Object 已实现并交叉编译,但无实机验证,保持 pending。Viva 客户端尚未逐项盘点;legacy 是迁移前基线,不代表当前实现。 Viva 运行设置接线:build.invocationPlan 携带真实全局插件层,显式无效工具路径直接失败并保留自动候选顺序;有效显式工具父目录进入 PATH。Provider 启动携带独立全局/项目层,工作区 URI 由 Core 生成。此接线不表示通用设置界面、原生配置页或完整 Build 协议迁移已验收。 Viva 2026-11-14:构建系统改为一个聚合的 Build 工具窗口,放在右侧工具栏上方(与 IDEA 的位置一致),不再为每个实例开标签页。窗口里是一棵树,每个检测到的构建系统实例是一个分组,显示构建系统名称、徽标和相对根目录;分组下是项目、目标、任务、测试和依赖。默认只展开当前选中的实例,用户手动展开或折叠过的分组保持该状态;依赖分组默认折叠,因为加载依赖要运行构建工具。筛选框按分组名称、根目录和行名称过滤,匹配的行固定展开在所属分组下;筛选只读已加载的模型,不会触发加载。展开的分组按需加载模型,同时最多加载 4 个,加载失败的不会自动重试,折叠的分组不加载。点击其他分组的行会切换到该构建系统并选中这一行,工具栏的运行按钮会执行选中的目标或任务。运行配置列表放在右侧 Build 窗口顶部,和下面的构建树之间有可拖动的分隔条,按范围、固定和执行类型筛选,双击运行、行内按钮停止。目标的名称以其路径结尾时(如包的导入路径以所在目录结尾),目标行只显示路径,鼠标悬停显示完整名称;其他目标仍显示名称并在旁边显示路径,筛选仍按名称和路径匹配。底部原先的 Build 窗口改为 Run 窗口,只显示运行输出:构建控制台,以及插件启动的运行各自的标签页;Build 窗口发起的任务或运行会打开 Run 窗口并切到构建控制台。 Viva 2026-11-14:参照 IDEA 的 Make 窗口,每个任务和有运行入口的目标行首常驻绿色运行按钮,不必先选中,点一下就选中该行并运行,构建进行中按钮变暗不可点;没有运行入口的目标和项目保留类型图标,调试按钮仍只在选中的行上。名称与路径放不下时路径先省略、名称以省略号结尾,悬停提示显示完整名称和路径(只显示路径的目标显示完整名称);依赖标题旁的 ⓘ 说明依赖树在第一次展开时才由构建工具读取,以及何时重新读取。自动化:TestBuildTreeRunMarksRunTheirRowsAtOnce;截图 docs/assets/build-panels/build-go-targets-*.png。 Viva 2026-11-14:Core 固定版本升到 Lithe-core-rust#33,构建检测和自动运行项发现跳过被 Git 忽略的目录(工作区内的 .gitignore 与仓库的 info/exclude),代理工作树、生成目录和本地副本不再被列成构建系统,同一模块不再出现两遍;Core 自动化:tests::build_systems::detection_skips_directories_git_ignores。 Viva 2026-11-14:Core 固定版本升到 Lithe-core-rust#35,构建选项新增“检测”分区的忽略路径:一行一条 .gitignore 写法的规则,相对项目根目录、只匹配文件夹,默认忽略所有以 . 开头的文件夹(如 .claude/worktrees),以 ! 开头的规则可以让文件夹(包括被 Git 忽略的)重新参与检测。列表按本机、团队文件 .lithe/build/options.json、默认值的顺序取第一个,对话框写明当前来源;修改只保存在本机,恢复默认删除本机列表,保存后重新检测。Build 窗口标题栏的齿轮打开只含忽略路径的构建选项,构建系统行的齿轮和右键菜单在忽略路径下方显示该构建系统的选项;Core 拒绝的规则标出所在行,对话框保持打开、不写入。自动化:TestBuildOptionsIgnoredPathsAreSavedOnThisMachineAndRestored、TestBuildOptionsNameTheLineOfARefusedIgnoredPath、core 包 TestBuildIgnoredPathsResolveFromTheLayersAndEditTheLocalList、TestBuildDetectSkipsTheIgnoredPaths。 Viva 2026-11-16(#2032):Windows 上由宿主启动的 .cmd/.bat(构建工具、版本探测、Run、Tests 共用 buildprocess)改为宿主自己构造 cmd.exe /d /c \"\"脚本\" 参数\" 命令行,参数按 BatBadBut 修复后的规则转义;此前脚本目录和参数都含空格时 cmd 去掉首尾引号,Maven 模型加载报 C:\\Program 不是命令并以 exit 1 失败。模型和依赖命令失败时,错误附带工具最后 12 行输出(去掉终端控制符),构建树行悬停显示全文。Windows 11 ARM64 来宾(x64 仿真)实机:TestBatchFileUnderASpacedDirectoryReceivesItsArguments 修复前失败、修复后通过,buildprocess 全部用例通过;同一来宾用真实 mvn.cmd 跑模型命令,修复前 exit 1,修复后写出模型。完整客户端界面验收尚未执行,状态保持 pending。 Viva 2026-11-16:Build 窗口的树参照 IntelliJ IDEA 的 Maven 工具窗口改为按父子项目嵌套,对所有构建工具一致:树由 Core 新增的 build.modelTree 按清单和模型排布(Lithe-core-rust feat/build-model-tree),宿主只负责展开状态、绘制和交互。每个项目依次列出按 category(没有时按 group)分好的任务文件夹、依赖节点、带目标级任务的 Targets 文件夹,然后是子项目;子项目按模型的 parentID 嵌套(模型没写父项目时,Core 解码模型已按路径包含关系补上)。有 project 作用域的声明任务出现在每个项目里,只有 workspace 作用域或需要用户参数的任务、工作区依赖和 Discovered Tests 只在构建系统下出现一次。模型只有一个根项目时,构建系统行直接代表这个项目(行上显示项目名,右键是项目菜单)。默认展开项目,任务文件夹、Targets、Discovered Tests 和依赖折叠;全部展开不会打开依赖。筛选由 Core 标出命中节点,保留命中节点的全部内容和通往它的项目与文件夹,构建系统名称、根目录或根项目命中时保留整棵树;排布在后台进行,模型、筛选或语言变化时重新排布,旧结果按模型版本和检测代次丢弃。多仓库工作区不再把上百个任务平铺在一层。文件夹标题来自插件声明的 category,由插件负责翻译;宿主只翻译 group 的 7 个标题。行图标改用 IntelliJ New UI 中同类节点的图标(Apache-2.0,深浅两套,与 Project 树一样是 16 点):任务文件夹是带齿轮的文件夹(IDEA Maven/Gradle 任务文件夹的 taskGroup),依赖是带书的文件夹、依赖项是书,项目是模块文件夹,没有运行入口的任务是齿轮、目标是构件,Targets 是普通文件夹,Discovered Tests 是测试文件夹。",
"legacy": {
"revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36",
"macos": {