Files
openidea/src/workbench/Workbench.module.css
T
l0ng-ai 2d7726cf53 feat(workbench): Edit single files without opening a project (#145)
Files can now be opened without a project. A file dropped on the Welcome screen, picked with File › Open File…, or passed on the command line or to a second instance opens in a lightweight window: editor tabs only, with no project tree, indexing, language servers, VCS or project tool windows. Syntax highlighting, find, save, undo and Local History still work. More files opened later join the same window as new tabs. Open as Project in the status bar opens the file's directory as a full project, following the open-project policy, and reopens the file there.

Backend: a light session reuses Project with an unindexed index, no LSP or VCS, and a flat watch on each opened file's directory. It is never reused as a project for the same root. Previously a file passed at launch opened its parent directory as a project.
2026-10-28 22:06:35 +08:00

46 lines
1.0 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.workbench {
height: 100%;
display: flex;
flex-direction: column;
min-width: 0;
background: var(--bg-app);
color: var(--fg);
}
/* Islands frame; the project colour washes in from the top-left corner (IDEA project gradient). */
.framed {
background:
radial-gradient(
600px 300px at 0 0,
color-mix(in srgb, var(--project-color) var(--project-gradient-strength, 22%), transparent),
transparent
),
var(--bg-frame);
}
/* LightEdit: the editor as the only island, inset like the project frame's. */
.lightEditFrame {
background: var(--bg-frame);
}
.lightEdit {
flex: 1;
display: flex;
min-width: 0;
min-height: 0;
padding: 0 var(--island-gap);
}
.lightEditIsland {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--bg-island);
border-radius: var(--island-radius);
}
/* Settings › Appearance › "Use project colors in main toolbar" off. */
:global(:root[data-project-colors="off"]) .framed {
background: var(--bg-frame);
}