forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
area-replfeature-requestRequest for new features or functionalityRequest for new features or functionalityneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.
Description
Testing #23484
Steps:
- Create a python file and include the below sample code:
def is_prime(n):
"""Check if a number is prime."""
if n <= 1:
return False
if n <= 3:
return True
if n % 2 == 0 or n % 3 == 0:
return False
i = 5
while i * i <= n:
if n % i == 0 or n % (i + 2) == 0:
return False
i += 6
return True
def generate_primes(limit):
"""Generate a list of prime numbers up to a given limit."""
primes = []
for num in range(limit):
if is_prime(num):
primes.append(num)
return primes
limit = 100
primes = generate_primes(limit)
print(f"Prime numbers up to {limit}: {primes}")
print('Hellp World!')
- Select the entire contents of the file and run in Python REPL
- In the Python REPL cell, right click on
generate_primes(limit)and useGo To Definitioncommand. - Expected cursor to jump to the
generate_primesdefinition but the operation results in a no-op
Metadata
Metadata
Assignees
Labels
area-replfeature-requestRequest for new features or functionalityRequest for new features or functionalityneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.