Skip to content
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

Multi document highlighting doesn't work with inline chat #196352

Open
jrieken opened this issue Oct 24, 2023 · 0 comments
Open

Multi document highlighting doesn't work with inline chat #196352

jrieken opened this issue Oct 24, 2023 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-highlight Editor selection/word highlight issues

Comments

@jrieken
Copy link
Member

jrieken commented Oct 24, 2023

Testing #196342

  • use the file below
  • for the fib function ask copilot to use recursion
  • select fib in RHS of the diff editor -> 🐛 no highlights in the outer editor
  • the same happens when selecting fib in the outer editor

This repos independent of the editor.multiDocumentOccurrencesHighlight setting but it should work even without

Screen.Recording.2023-10-24.at.11.13.59.mov
export function sum(a, b) {
	return a + b;
}

export function sub(a, b) {
	return a - b;
}

export function mul(a, b) {
	let result = 0;
	for (let i = 0; i < b; i++) {
		result = sum(result, a);
	}
	return result;
}

export function fib(n) {
	if (n <= 1) return n;
	let a = 0, b = 1, temp;
	for (let i = 2; i <= n; i++) {
		temp = b;
		b = sum(a, b)
		a = temp;
	}
	return b;
}


export function isPrime(n) {
	if (n <= 1) return false;
	for (let i = 2; i <= Math.sqrt(n); i++) {
		if (n % i === 0) return false;
	}
	return true;
}
@Yoyokrazy Yoyokrazy added the editor-highlight Editor selection/word highlight issues label Nov 7, 2023
@Yoyokrazy Yoyokrazy added the bug Issue identified by VS Code Team member as probable bug label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug editor-highlight Editor selection/word highlight issues
Projects
None yet
Development

No branches or pull requests

2 participants