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

I can't see the rest of the snippet #40

Closed
CaiqueR opened this issue Jun 22, 2020 · 8 comments
Closed

I can't see the rest of the snippet #40

CaiqueR opened this issue Jun 22, 2020 · 8 comments
Labels
question Further information is requested

Comments

@CaiqueR
Copy link

CaiqueR commented Jun 22, 2020

In my VS Code I can't see the rest of the code snippet
image

@lnikell
Copy link
Member

lnikell commented Jun 22, 2020

Hi, @CaiqueR could you elaborate more on this?

Do you have some libraries that present in the list https://github.com/snipsnapdev/snipsnap/tree/master/snippets/javascript that you can't see?

Do you use yarn or npm?

@lnikell lnikell added the question Further information is requested label Jun 22, 2020
@CaiqueR
Copy link
Author

CaiqueR commented Jun 22, 2020

Hi, @CaiqueR could you elaborate more on this?

Do you have some libraries that present in the list https://github.com/snipsnapdev/snipsnap/tree/master/snippets/javascript that you can't see?

Do you use yarn or npm?

Sorry, I expressed it wrong, I wanted to say that I can only see for example: "react compon ..." I don't know what is written ahead.

@Fasani
Copy link

Fasani commented Jun 22, 2020

I actually just installed it and I felt the same.

Can we style the 'suggest box' to be wider?

@lnikell
Copy link
Member

lnikell commented Jun 22, 2020

@Fasani no, I don't like it too because it requires to look on the right side inside the description part, rather than just have left side for navigation.
image
VS Code does not allow I guess to customize the width of dropdown, but we will take a look.

@CaiqueR
Copy link
Author

CaiqueR commented Jun 22, 2020

Hmm, ok. Thank you!

@CaiqueR CaiqueR closed this as completed Jun 22, 2020
@gopalagrawal
Copy link

gopalagrawal commented Jun 23, 2020

I raised the same question a few minutes back (before I read this one). Just wanted to upvote this issue. I think many people would like to get rid of the description in the left pane (2nd column) as it blocks-off the short title in 1st column.

You may delete my question if you need to since this issue has already been raised (I seem unable to find the issue I raised and hence ... can't delete it myself).

@lnikell
Copy link
Member

lnikell commented Jun 23, 2020

@gopalagrawal @CaiqueR I propose for everyone who has this issue too upvote that issue I raised in VS Code Github
microsoft/vscode#100832 . Also there is an example of how it looked like before their latest updates.

@Fasani
Copy link

Fasani commented Jun 23, 2020

They shut your issue down because it already exists since 2017.

Semi-related to:
microsoft/vscode#98228 - Open since 20 May 2020
microsoft/vscode#29757 - Open since 28 Jun 2017
microsoft/vscode#29126 - Open since 20 Jun 2017

The following hack was provided by @povilasbaranovas and you could request your userbase to do this hack or perhaps you can do it some how in a more intelligent way?

This is not a proper solution, but a hack that might break after any program update!

As VsCode is styled mainly using CSS to change the size you have to simply override default values.
This can be accomplished by using "Custom CSS and JS loader" extension and injecting your own CSS.

Width value is static 430px:
.monaco-editor .suggest-widget { width: 430px; }

Height value is set inline on element by editor depending on how many suggestions there are so !important is necessary to owerride it:
.monaco-editor .suggest-widget>.tree { height: 300px !important; }

lnikell added a commit that referenced this issue May 25, 2021
feat: add a social media preview image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

4 participants