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

Add padding top if not set already #379

Closed
wants to merge 3 commits into from
Closed

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Dec 11, 2021

If the user has not set a padding top add it. Prevent decoration on first row getting cut off.

I found no way of actually setting a default value. Now we check if the user has changed the value and if not set it for them.

fixes: cursorless-dev/cursorless-talon#93

@AndreasArvidsson AndreasArvidsson added this to the 0.24.0 milestone Dec 11, 2021
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

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

LGTM tho I wanna quick test this one locally to see if that 5px is bothersome at all

src/extension.ts Show resolved Hide resolved
@AndreasArvidsson
Copy link
Member Author

@pokey On windows all the snippet tests are now failing for some reason. And only on windows of course

@pokey
Copy link
Member

pokey commented Dec 12, 2021

@pokey On windows all the snippet tests are now failing for some reason. And only on windows of course

hmm yeah I noticed that on one of my branches too. This must have just started, because I was able to merge a branch in earlier today. Strange. Does it work locally on Windows?

Strangely, it's green on master as of 1 hour ago. I guess something got updated between then and now?

Let's move this discussion to #388

@pokey
Copy link
Member

pokey commented Dec 12, 2021

Do you think we could use this new feature from 1.63.0 to do this one more simply? Just saw it in the release notes. We'd need to set min vscode version to 1.63.0, which is maybe a bit aggressive 4 days after it was released?

@AndreasArvidsson
Copy link
Member Author

I do think that solution is better but wouldn't that require every user have the latest version of vscode? I don't know if everyone always running automatic updates.
At least think which should roll out one solution. I will let you choose which one.

@pokey
Copy link
Member

pokey commented Dec 13, 2021

I do think that solution is better but wouldn't that require every user have the latest version of vscode? I don't know if everyone always running automatic updates. At least think which should roll out one solution. I will let you choose which one.

As long as calling paddingConfig.update is not persistent, I'd lean towards avoiding any new APIs at least for another week or two. Alternately, we could leave this PR out of the 0.24.0 release. But if it is non-persistent, then I think I'd be fine shipping this one, esp as it's a fairly modest code change. I'm not seeing a big downside

@AndreasArvidsson
Copy link
Member Author

The implementation in this pr is permanent. We actually updating the users settings.json

@pokey
Copy link
Member

pokey commented Dec 14, 2021

Ah ok right. In that case I'd lean towards reworking this one to use the new api, but waiting to merge until after 0.24.0 is released. Make sense?

@AndreasArvidsson
Copy link
Member Author

I think so

@pokey
Copy link
Member

pokey commented Dec 14, 2021

I think so

Shall we close this one then? I don't think there will be any code reused in the new implementation

@pokey pokey removed this from the 0.24.0 milestone Dec 14, 2021
@AndreasArvidsson AndreasArvidsson deleted the paddingTop branch December 14, 2021 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shapes on first line can be cut off
2 participants