Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -26,13 +26,20 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- VSCode Version [e.g. 1.4.0]
- TMC Extension Version [e.g. 0.8.1]
- Other related extensions.

- OS: [e.g. iOS]
- VSCode Version [e.g. 1.4.0]
- TMC Extension Version [e.g. 0.8.1]
- Other related extensions.

**TMC Extension logs**
TMC -> Settings -> Set log level to verbose and reproduce error and paste logs.

Note: To open VSCode's Command Palette, you can select `View` in the top bar followed by the `Command Palette...` option, or use a keyboard shortcut (`Ctrl+Shift+P` on Windows or Linux, `⇧⌘P` on MacOS, or `F1` on either by default).

1. Open the Command Palette, type in `tmc.settings` and press Enter to open the extension settings. In the settings, make sure the `Log Level` is set to `Verbose`.
2. Open the Command Palette, type in `tmc.debug` and press Enter to open the extension logs.
3. Reproduce the error.
4. Copy the extension logs that opened in step 2. and paste them here.

**Additional context**
Add any other context about the problem here.
22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
{
"command": "tmc.changeTmcDataPath",
"title": "Change TMC data path",
"title": "Change TMC Data Path",
"category": "TestMyCode"
},
{
Expand All @@ -74,12 +74,12 @@
},
{
"command": "tmc.courseDetails",
"title": "Go to Course Details...",
"title": "Go To Course Details...",
"category": "TestMyCode"
},
{
"command": "tmc.downloadNewExercises",
"title": "Download New Exercises for Course...",
"title": "Download New Exercises For Course...",
"category": "TestMyCode"
},
{
Expand All @@ -103,7 +103,7 @@
"category": "TestMyCode"
},
{
"command": "tmc.openSettings",
"command": "tmc.settings",
"title": "Settings",
"category": "TestMyCode"
},
Expand All @@ -114,7 +114,7 @@
},
{
"command": "tmc.pasteExercise",
"title": "Send Exercise to TMC Paste",
"title": "Send Exercise To TMC Paste",
"category": "TestMyCode"
},
{
Expand All @@ -133,7 +133,7 @@
},
{
"command": "tmc.showLogin",
"title": "Show login menu",
"title": "Show Login Menu",
"category": "TestMyCode"
},
{
Expand Down Expand Up @@ -165,6 +165,16 @@
"title": "Update Exercises",
"category": "TestMyCode"
},
{
"command": "tmc.logs",
"title": "Show Logs",
"category": "TestMyCode"
},
{
"command": "tmc.debug",
"title": "Show Debug View",
"category": "TestMyCode"
},
{
"command": "tmc.wipe",
"category": "TMC-WipeMyCode",
Expand Down
12 changes: 11 additions & 1 deletion src/init/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function registerCommands(
});
}),

vscode.commands.registerCommand("tmc.openSettings", async () => {
vscode.commands.registerCommand("tmc.settings", async () => {
vscode.commands.executeCommand("workbench.action.openSettings", "TestMyCode");
}),

Expand Down Expand Up @@ -195,6 +195,16 @@ export function registerCommands(
commands.updateExercises(actionContext, silent),
),

vscode.commands.registerCommand("tmc.logs", async () => {
Logger.show();
}),

vscode.commands.registerCommand("tmc.debug", async () => {
vscode.commands.executeCommand("workbench.output.action.clearOutput");
Logger.show();
vscode.commands.executeCommand("workbench.action.openActiveLogOutputFile");
}),

vscode.commands.registerCommand("tmc.wipe", async () =>
commands.wipe(actionContext, context),
),
Expand Down
2 changes: 1 addition & 1 deletion src/init/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function registerUiActions(actionContext: ActionContext): void {
);

ui.treeDP.registerAction("Settings", "settings", [], {
command: "tmc.openSettings",
command: "tmc.settings",
title: "Go to TMC Settings",
});
ui.treeDP.registerAction("Open TMC Exercises Folder", "tmcDataFolder", [], {
Expand Down
Loading