Files
openidea/src/features/tools/LanguageServersPage.module.css
T
l0ng-ai 4cb98ff162 feat(tools): organize Language Servers settings by language (#3272)
Settings › Language Servers listed every tool in one flat list. The page now lists languages, with their file-type icon and how many tools each is missing; the selected language's tools are grouped into language servers, formatters, debuggers and plugins, each a small table with status, version and an inline Install link, and the selected tool's settings open under its table. Interchangeable servers get one "Language server for …" picker above them, and a Ready / Partly set up / Not set up label with an Install Missing button covers what the language needs. Update checks for installed tools show as an Update tag in the table and an Update button with the available version in the tool's details.
2026-11-14 12:37:05 +08:00

303 lines
5.1 KiB
CSS

.page {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
height: 100%;
min-height: 420px;
}
.intro {
margin: 0;
max-width: 680px;
color: var(--fg-secondary);
}
.body {
display: flex;
min-width: 600px;
flex: 1;
min-height: 0;
border-radius: var(--radius-small);
box-shadow: inset 0 0 0 1px var(--border);
overflow: hidden;
}
/* list */
.side {
display: flex;
flex: none;
flex-direction: column;
width: 220px;
min-height: 0;
border-right: 1px solid var(--border);
}
.toolbar {
display: flex;
align-items: center;
gap: 4px;
margin: 8px 8px 6px;
}
.toolbarSep {
flex: none;
width: 1px;
height: 16px;
margin: 0 2px;
background: var(--border);
}
.search {
margin: 0 8px 6px;
}
.list {
flex: 1;
min-height: 0;
margin: 0;
padding: 0 0 4px;
list-style: none;
overflow: auto;
}
.row:hover {
background: var(--bg-hover);
}
.rowSelected,
.rowSelected:hover {
background: var(--bg-selected);
}
.rowMain {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
height: var(--h-row);
padding: 0 12px;
border: 0;
background: transparent;
color: var(--fg);
font: inherit;
text-align: left;
}
.rowMain:focus-visible {
outline: none;
background: var(--bg-hover);
}
.rowName {
flex: 1;
min-width: 0;
overflow: hidden;
color: var(--fg-strong);
text-overflow: ellipsis;
white-space: nowrap;
}
.rowHint {
flex: none;
color: var(--fg-muted);
font-size: var(--fs-small);
}
.listEmpty {
padding: 8px 12px;
color: var(--fg-muted);
}
/* language */
.language {
display: flex;
flex: 1;
flex-direction: column;
gap: 12px;
min-width: 0;
padding: 12px 16px 16px;
overflow: auto;
}
.detailsEmpty {
flex: 1;
}
.languageHeader {
display: flex;
align-items: center;
gap: 8px;
}
.languageTitle {
color: var(--fg-strong);
font-size: var(--fs-input-large);
font-weight: 600;
}
.grow {
flex: 1;
}
.banner {
padding: 6px 8px;
border-radius: var(--radius-small);
background: var(--bg-control);
color: var(--fg-secondary);
}
/* tools of one kind: a bordered table, the selected one's details under it */
.table {
margin: 0;
padding: 0;
list-style: none;
border-radius: var(--radius-small);
box-shadow: inset 0 0 0 1px var(--border);
}
.tableRow {
display: flex;
align-items: center;
gap: 8px;
padding-right: 10px;
}
.tableRow:hover {
background: var(--bg-hover);
}
.tableRowSelected,
.tableRowSelected:hover {
background: var(--bg-selected);
}
.tableMain {
display: flex;
flex: 1;
align-items: center;
gap: 8px;
min-width: 0;
height: var(--h-row);
padding: 0 10px;
border: 0;
background: transparent;
color: var(--fg);
font: inherit;
text-align: left;
}
.tableMain:focus-visible {
outline: none;
background: var(--bg-hover);
}
.toolName {
flex: none;
max-width: 60%;
overflow: hidden;
color: var(--fg-strong);
text-overflow: ellipsis;
white-space: nowrap;
}
.toolOff {
color: var(--fg-muted);
}
.toolStatus {
flex: 1;
min-width: 0;
overflow: hidden;
color: var(--fg-muted);
font-size: var(--fs-small);
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag {
flex: none;
padding: 0 5px;
border-radius: var(--radius-small);
background: var(--bg-control);
color: var(--fg-muted);
font-size: var(--fs-tiny);
line-height: 16px;
}
.updateTag {
background: color-mix(in srgb, var(--accent) 18%, transparent);
color: var(--accent);
}
.details {
display: flex;
flex-direction: column;
gap: 10px;
min-width: 0;
padding: 4px 0 0 4px;
}
.detailsHeader {
display: flex;
align-items: center;
gap: 8px;
}
.detailsText {
display: flex;
flex: 1;
align-items: baseline;
gap: 8px;
min-width: 0;
}
.detailsTitle {
color: var(--fg-strong);
font-weight: 600;
}
.comment {
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.linkButton {
padding: 0;
border: 0;
background: none;
color: var(--link);
font: inherit;
font-size: var(--fs-small);
cursor: pointer;
}
.linkButton:disabled {
color: var(--fg-muted);
cursor: default;
}
.linkButton:hover:not(:disabled) {
color: var(--link-hover);
text-decoration: underline;
}
.linkButton:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.error {
color: var(--danger);
overflow-wrap: anywhere;
}
.notice {
padding: 6px 8px;
border-radius: var(--radius-small);
background: var(--bg-control);
color: var(--fg-secondary);
overflow-wrap: anywhere;
-webkit-user-select: text;
user-select: text;
}
.job {
display: flex;
flex-direction: column;
gap: 4px;
}
.jobBar {
width: 100%;
}
.jobLine {
display: flex;
align-items: center;
gap: 8px;
}
.jobMessage {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--fg-muted);
font-family: var(--font-mono);
font-size: var(--fs-small);
}
.log {
margin: 4px 0 0;
padding: 6px 8px;
max-height: 240px;
overflow: auto;
background: var(--bg-app);
color: var(--fg-secondary);
border-radius: var(--radius-small);
font-family: var(--font-mono);
font-size: var(--fs-small);
white-space: pre-wrap;
-webkit-user-select: text;
user-select: text;
}