Skip to content

Language specific default boilerplate not updating when switching languages in /virtual_lab/code-editor/ #874

@Shubhashish-Chakraborty

Description

Problem

In the Virtual Lab Code Editor (Alpha Science Lab) , the initial editor content loads with a Python Hello World example. However, when the user switches to another language (JavaScript, C, or C++), the editor content does not update and still shows the Python snippet:

Proposed Solution

Update the editor behavior so that whenever a user switches the programming language, the editor automatically loads a language appropriate boilerplate snippet.

Expected Behavior

  • When the user selects a language, the editor loads a relevant default template.

Current Behaviour ScreenShots:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions