spiegel-keyman/common
Marc Durdin 39b7c882a3 feat(developer): Multi-process model for projects 🦕
This is a bit of an omnibus commit, apologies for that. This commit
moves Keyman Developer to a proper multi-process model, where editing
files from multiple projects is handled much more cleanly, with each
project loaded in a separate process.

Files that are edited outside of a project structure are loaded into a
'temporary project' in a single process, which provides a pathway for
existing users who may have legacy files outside the normal Keyman
Developer project model.

There are several components to this:

1. Inter-process communication (Multiprocess, CopyDataHelper units and
   multiprocess test project). These modules establish a method of
   enumerating running Keyman Developer instances (with EnumWindow),
   recording relevant metadata for each instance (by thread id) in the
   registry (registry used because it manages contention without
   additional effort from us), and communicating between processes with
   WM_COPYDATA.
2. Command-line parsing (TikeCommandLine). Determines project ownership
   (ProjectOwningFile) for each filename passed on the command-line, and
   passes these over to existing instances of Keyman Developer that have
   that project loaded, or starts new instances as needed.
3. Temporary project management. Mostly in ProjectUI.

Also, moved GlobalProjectStateWnd management out of ProjectFile.pas and
into Project.pas, alongside other global project variables.

A follow-up will add functionality to determine if a file opened within
the Keyman Developer UI should open in the same instance or in a
separate instance (see TfrmKeymanDeveloper.OpenFileInProject). This will
use the same methodology as TikeCommandLine does now, so may involve
further refactoring.

This commit establishes the idea of 'keyman.kpj' as a future default
filename for Keyman Developer projects, but does not enable it, in
ProjectOwningFile. It is planned to introduce this fixed filename in
version 18.0 (see #10113).
2023-12-01 11:48:09 +07:00
..
include fix(common): dx: don't call exit(0) on failure 🙀 2023-11-14 07:16:32 -06:00
linux chore(common): run common and resources tests 2023-04-28 14:07:34 +07:00
mac chore(common): run common and resources tests 2023-04-28 14:07:34 +07:00
models chore(common): cleanup final Typescript non-ESM metadata 2023-10-04 12:55:51 +07:00
predictive-text chore(common): cleanup final Typescript non-ESM metadata 2023-10-04 12:55:51 +07:00
resources chore(common): Move keymanweb-osk.ttf to common/ 2023-11-13 15:44:46 +07:00
schemas chore: update kmp.schema.json and docs for kps schema 2023-10-19 13:09:26 +07:00
test fix(linux): Fix baseline tests 2023-11-08 12:13:56 +07:00
tools chore(common): fixup sourcemap-path-remapper build settings 2023-10-05 14:46:14 +07:00
web Merge pull request #9996 from keymanapp/chore/developer/9948-handle-project-version-cleanly-in-kmc 2023-11-15 13:48:44 +11:00
windows feat(developer): Multi-process model for projects 🦕 2023-12-01 11:48:09 +07:00
build.sh chore(common): run common and resources tests 2023-04-28 14:07:34 +07:00