You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VS Code, in a Java project, I've found that name suggestions are replacing my actual typed text. For example, in this custom code snippet...
public WebElement ELEMENTNAME() {
return driver.findElementByCssSelector("CSSSELECTOR");
}
...the two all-caps items are tab stops. I type, say, cancelButton in the first field, tab to the second, and find that ELEMENTNAME has instead been replaced with cancelButtonElement, because for some reason that was a naming suggestion.
This seems problematic because (a) the name I typed is being overridden with no notice, and (b) it's not even a better name, actually; in this Selenium page object class I would end up with Element, Element, Element redundantly at the end of every single class member.
Of course, I can turn off all the autocompletion, but it would be nice to have a setting to turn off just these naming suggestions in this context while keeping the other autocompletion features.
Environment
Windows 10
JDK version: 10
Visual Studio Code version: 1.22.2
Java extension version: 0.3.0
Steps To Reproduce
Use Maven to create a new Java project, using any names and namespaces you prefer.
Hi, @fbricon, thank you for the reply. I tried that setting, and I exited and re-ran VS Code just in case it didn't stick or something. Alas, the behavior is the same: As soon as I start typing the method name, VS Code pops up its own naming suggestions, and if I tab away, it plugs in its own over what I typed.
In VS Code, in a Java project, I've found that name suggestions are replacing my actual typed text. For example, in this custom code snippet...
...the two all-caps items are tab stops. I type, say,
cancelButton
in the first field, tab to the second, and find that ELEMENTNAME has instead been replaced withcancelButtonElement
, because for some reason that was a naming suggestion.This seems problematic because (a) the name I typed is being overridden with no notice, and (b) it's not even a better name, actually; in this Selenium page object class I would end up with Element, Element, Element redundantly at the end of every single class member.
Of course, I can turn off all the autocompletion, but it would be nice to have a setting to turn off just these naming suggestions in this context while keeping the other autocompletion features.
Environment
Steps To Reproduce
pageobjectelement
and hit Tab to enter the snippet and focus on the first tab stop.cancelButton
and hit Tab to move to the next field.Current Result
The method name is replaced by
cancelButtonElement
.Expected Result
cancelButton
remains the name of the method.Additional Information
(I've been told that the Red Hat extension may be causing this. If this isn't the case, I apologize and hope you can redirect me appropriately.)
The text was updated successfully, but these errors were encountered: