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

ST4 not suggests all words for autocomplete within other scopes in the same PHP file #5756

Open
BrwGamer opened this issue Nov 30, 2022 · 1 comment

Comments

@BrwGamer
Copy link

Description of the bug

Autocomplete doesn’t work like it did in the previous versions.

Now, if I type inside a query string (or inside a javascript block), it doesn’t suggest (nor in the list with ctrl+space) the words/variables used outside above that scope.

I need autocomplete to suggests all words/names used in all scopes of the open file, as it did before.

Steps to reproduce

Open a new tab in ST and write/paste this code:

<?php
    $var1 = 'testVar';
    $variableTest = 'test';
    $vatTest3 = 1;
    $query = "INSERT hereItSuggestAboveVarsName INTO hereNot myTable SET col1 = '$hereNot'";
?>

It correctly automatically sets PHP syntax.

Type $v or v in some places. It no longer suggests var1 nor the others two. The same if I type myTab in it.

Type v below the last row: those 3 vars are suggested.

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5

Screenshot 6

Screenshot 7

Screenshot 8

Screenshot 9

Screenshot 10

Screenshot 11

Screenshot 12

Expected behavior

It should suggests auto completion for all variables/names in all scopes in the file, or better handle this behavior as a new setting.

Actual behavior

It doesn't suggest names n auto completion nor during digits.

Sublime Text build number

4143

Operating system & version

MacBook Air Apple M2 Ventura 13.0.1; Ubuntu 20.04 and 22.04

(Linux) Desktop environment and/or window manager

GNOME 42.0

Additional information

I'm using a fresh install Sublime Text 4, without any changes made by me.

OpenGL context information

No response

@BrwGamer
Copy link
Author

There is any update?

The issue still happens and it's so annoying...

Thanks

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

No branches or pull requests

2 participants