LearnPack is an application with various small parts connected to each other. When you run LearnPack inside Visual Studio Code, it is slightly different from running it in a browser. Due to these implementation differences, it is possible to configure LearnPack to open as a VSCode extension (agent = "vscode") or to open the interface in the browser (agent = "os").
LearnPack will notice in which program it was executed to determine the agent, but the agent can also be specified within learn.json
in the editor.agent
section. This allows users to explicitly define how they want LearnPack to be executed.
If a difference is detected between the detected agent and the suggested one, LearnPack will display a warning. This warning is important to ensure the best user experience, as each agent has its own characteristics and advantages.
For example, if LearnPack detects that it is running in VSCode but the learn.json
file suggests that it should run in a browser, a message will be displayed recommending changing the agent to avoid potential compatibility or functionality issues.
To run LearnPack as agent "os", follow these steps:
Close VSCode:
Open a new terminal:
cd
command to navigate to the directory where your LearnPack project is located.Run LearnPack:
1learnpack start
To run LearnPack as a VSCode extension, follow these steps:
Open VSCode:
Install the LearnPack extension:
Ctrl+Shift+X
.Open your terminal in VSCode:
cd
command to navigate to the directory where your LearnPack project is located.Run LearnPack:
1learnpack start