Repository navigation
Tags
Tags
refactor(editor): take canvas theme colors from the theme's CSS (#3088) * refactor(editor): take canvas theme colors from the theme's CSS canvas-view now resolves a theme's colors from the state's style modules itself. getCanvasTheme returns a function over that resolved theme and only adds what the CSS doesn't say: Acode's own scrollbars, a see-through canvas over a picture, the gutter border, and syntax colors for themes without a highlight style. The theme's CSS is the only source for the rest, so the canvas draws a theme like the DOM editor does. * chore(deps): bump @acode.app/canvas-view to 0.0.10 * test(canvas): check which syntax colors the canvas draws A theme whose highlight style and config disagree: tokens take the highlight style's colors, and the config's are only used without one.
feat(editor): see-through canvas behind a plugin's background picture When a plugin puts a picture behind the editor (Backdrop draws one on .cm-editor::before; the DOM editor's text has no background of its own), canvas views get a transparent background, so the picture shows through the text, gutter and sticky lines, with a translucent active line (the theme's, or the text color at 8%, like Backdrop's) and no active gutter background. Style sheets added, removed or rewritten are watched (at most once per frame), so turning the picture on or off applies live; new views are checked when created. Needs @acode.app/canvas-view 0.0.7.
perf(tabs): speed up closing and saving many tabs (#3035) * perf(tabs): speed up closing and saving many tabs - Close background tabs before active ones so no tab is activated only to be closed, and sync the tab list and session state once per batch. - Save all: save files with a location four at a time with a progress dialog, then retry the rest one by one with the usual prompts; files that fail stay open instead of aborting the whole operation. - Check the file mtime before reading it back for conflict detection. - Keep a save timer per file so concurrent saves all finish, and coalesce the session update. - Only run format-on-save when the saved file is the active one. Fixes #3030, fixes #3031, fixes #3032 * test(save): cover batched save-all and keep reporting save errors * fix(save): keep remote saves sequential and restore content conflict check - Only save local (file:) and SAF (content:) files in parallel; remote providers such as SFTP share a connection and now save one by one. - Restore the content comparison before overwriting so an external edit that keeps the mtime still triggers the conflict prompt. - Show how many files were saved, or could not be saved, once save all finishes.
fix(editor): keep cursor in document when pasting CRLF text (#3018) * fix(editor): keep cursor in document when pasting CRLF text Also update @lezer/common to 1.5.5. * chore(deps): sync package-lock with @lezer/common 1.5.5 * test(editor): cover pasting CRLF text
PreviousNext