Skip to content

Change scrolling behaviour of 'Next Problem' Fixes #156782 #163056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

r3m0t
Copy link
Contributor

@r3m0t r3m0t commented Oct 8, 2022

See issue #156782

I made the F8 key (next problem) behave as similar as I could manage to Alt+F3 (next change in file) (although I couldn't get the code to match)

To test I just made some one-line changes which introduced problems. Like this ( vscode-extension-samples repo )

diff --git a/test-provider-sample/src/extension.ts b/test-provider-sample/src/extension.ts
index f505c3e..555088f 100644
--- a/test-provider-sample/src/extension.ts
+++ b/test-provider-sample/src/extension.ts
@@ -6 +6 @@ export async function activate(context: vscode.ExtensionContext) {
-       ctrl = vscode.tests.createTestController('mathTestController', 'Markdown Math');
+       ctrl = vscode.tests.createTestController('mathTestController', 'Markdown Math') + 2;
@@ -37 +37 @@ export async function activate(context: vscode.ExtensionContext) {
-                                                       test.uri.toString(),
+                                                       test.uri.toString() / 5,
@@ -77 +77 @@ export async function activate(context: vscode.ExtensionContext) {
-                                                       vscode.Uri.parse(uri),
+                                                       vscode.Uri.parse(uri) + 1,
@@ -104 +104 @@ export async function activate(context: vscode.ExtensionContext) {
-                       await data.updateFromDisk(ctrl, item);
+                       await data.updateFromDisk(ctrl, item) + 3;
@@ -109 +109 @@ export async function activate(context: vscode.ExtensionContext) {
-               if (e.uri.scheme !== 'file') {
+               if (e.uri.scheme !== 'file' / 5) {
@@ -113 +113 @@ export async function activate(context: vscode.ExtensionContext) {
-               if (!e.uri.path.endsWith('.md')) {
+               if (!e.uri.path.endsWith('.md') / 7)  {
@@ -133 +133 @@ export async function activate(context: vscode.ExtensionContext) {
-                       console.log("banana", setTag);
+                       console.log("banana", setTag) + 8;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants