sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
810 stars 39 forks source link

ST4 4107 completion in source scope does not suggest quoted words in same file #4301

Open jgrg opened 3 years ago

jgrg commented 3 years ago

Description

A description of what the bug is.

Steps to reproduce

Run Sublime Text 4107 in safe mode, edit a Perl source file, and with the cursor at the end of tsv at the end of this example:

use My::Utils "tsv_row_fetcher_from_file";
my $fetcher = tsv

and press <Tab>

Expected behavior

Completion of word tsv_row_fetcher_from_file

Actual behavior

No completion is offered. Spaces are inserted.

Same happens in JSX files too, so it seems that the general case:

Text completion in the source scope does not suggest words that are in quoted or comment scope elsewhere in the file.

may be true. In both Perl and JSX tab completion continues to work on any word in the source file when the cursor is in quoted or comment scope.

Environment

keith-hall commented 3 years ago

https://github.com/sublimehq/sublime_text/issues/4291#issuecomment-850414563