Skip to content

[Bug]: New fragments do not inherit the default language #611

@pa-0

Description

@pa-0

Describe the bug

Adding a new fragment to a snippet contained within a folder that has been assigned a default syntax revert to "Plain Text" instead of taking on the default syntax (in the way that adding a new snippet to the same folder would result in the snippet automatically being set to that default syntax)

To reproduce

  1. Create a folder in massCode
  2. Right click the folder and select a Default Language
  3. Add a new snippet inside the recently created folder
  4. Verify that the appropriate syntax has been set in that new snippet.
  5. Now add a new fragment to that snippet
  6. Observe as the syntax in the new fragment is set to "Plain Text" as opposed to the syntax that was chosen.

App Version and Architecture

4.1.0 (x64)

System info

OS: Windows 11 Pro x86_64
Kernel: WIN32_NT 10.0.26220.6760 (25H2)
WM: Desktop Window Manager 10.0.26100.6690
CPU: Intel(R) Core(TM) i9-14900K (32) @ 3.19 GHz
GPU 1: Intel(R) UHD Graphics 770 @ 1.65 GHz (128.00 MiB) [Integrated]
GPU 2: NVIDIA GeForce RTX 4090 @ 3.17 GHz (23.58 GiB) [Discrete]
Memory: 20.08 GiB / 47.71 GiB (42%)
Locale: en-US

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions