Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix for parameter hints not showing when using tabs instead of spaces #15018

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SietseB
Copy link
Contributor

@SietseB SietseB commented Jan 20, 2020

Parameter hints are not showing when using the tab character for indents.
In case of spaces a column number equals the character position in the line string, but in case of tabs that trick doesn't work.
This fix converts a column number to a character position, taking tabs into account.

Parameter hints were not showing when using the tab character for indents.
In case of spaces a column number equals the character position in the line string, but in case of tabs that trick doesn't work.
This fix converts a column number to a character position, taking tabs into account.
Copy link
Collaborator

@swmitra swmitra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting solution to handle tabs 👍
Change looks good to me, please test JS intellisense features once before merging.

Using the build-in method Editor.getCharIndexForColumn results in much shorter and cleaner code.
@yogo1212
Copy link

yogo1212 commented Jun 1, 2021

@SietseB i've squashed and merged your changes into https://github.com/brackets-cont/brackets

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

Successfully merging this pull request may close these issues.

None yet

3 participants