AnWeber / httpbook

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://httpyac.github.io/
MIT License
58 stars 4 forks source link

Hide codelens for code cells #20

Closed rebornix closed 3 years ago

rebornix commented 3 years ago

image

For text documents, codelens is a good place to render "env/send all" actions but in notebook editor, but it looks weird in notebook editor code cells. We may want to hide it.

A few rough ideas of where to put the env: or send all actions

AnWeber commented 3 years ago

I had the same thought. You can disable it using the setting httpyac.useCodelensInNotebook. I wanted to set the default to false as soon as I programmed CellStatus Api, but unfortunately I forgot doing it. The idea is to offer the functions as CellStatusBarItems.

AnWeber commented 3 years ago

Is there an api for the Cell Toolbar?

AnWeber commented 3 years ago

I overlooked that you are a VSCode developer. I think your work is great. I love the editor. I still have the problem with CodeLens with other extensions. I had moved my NodeJS script support out to a separate code cell (JS) and then saw the other Lens extensions as well. You might want to consider being able to turn this off centrally in VSCode.

AnWeber commented 3 years ago

The default value of the setting has been corrected with the current release (vscode-httpyac 2.14.1).