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

参数配置化呗~ #1

Closed
okoala opened this issue Jun 8, 2016 · 16 comments
Closed

参数配置化呗~ #1

okoala opened this issue Jun 8, 2016 · 16 comments

Comments

@okoala
Copy link

okoala commented Jun 8, 2016

比如说:

  1. 图片url配置~
  2. background position, background size, opacity 神马的~
  3. 图片本地cache~
@shalldie
Copy link
Owner

之前考虑过这个,但是,vscode的输入框,太过于复杂的配置,输入起来不方便。

现在有了一些新的想法,我会接下来试着去解决这个问题。

@be5invis
Copy link

用 settings 啊……
ps. 要不要去 fork 一个版本去支持 custom css and js

@shalldie
Copy link
Owner

嗯,,,家里网不好啊艹。
听您的意思,似乎可以用配置文件 0.0
我去翻翻资料

@jianzhichun
Copy link

是可以用的 vscode.workspace.getConfiguration(?).get(?) 就能取到settings的配置

@shalldie
Copy link
Owner

shalldie commented Sep 1, 2016

谢谢楼上。 因为本身并不是一个复杂的插件,所以还在考虑是否用setting。

@jianzhichun
Copy link

话说,因为公司vscode版本是比较底 所以加css那里并没有one-editor-silo:nth-child(1) 得改成[id='workbench.parts.editor']>.content>.editor-left ...
[id='workbench.parts.editor']>.content>.editor-center ....
[id='workbench.parts.editor']>.content>.editor-right ...
才能work,新版本只能通过这样选择吗。

@shalldie
Copy link
Owner

shalldie commented Sep 1, 2016

汗,你用的估计是1.3以前的。
还是更新一下吧,,,

@atian25
Copy link

atian25 commented Sep 9, 2016

支持配置化吧... 现在用的好麻烦:

  • 切换到外面, 找到图片的完整 URL..
  • F1 调出命令行, 选择 background
  • 黏贴 URL
  • ** 重启 **

期望:

  • 通过配置文件直接配置, 这样能节省不少时间
  • 不用重启

@shalldie
Copy link
Owner

shalldie commented Sep 9, 2016

好好好,配置一下。
不过这样也这是把粘贴url路径这里换掉 0.0

打算手头上事情搞完之后去做。 稍等一段时间。 🍡

@atian25
Copy link

atian25 commented Sep 9, 2016

对 vscode 不是很熟悉, 这个 css 变更后必须重启么?
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.css

@atian25
Copy link

atian25 commented Sep 9, 2016

另外发现写入 workbench.main.css 的方式, 当 vscode 升级后就被干掉了.

@shalldie
Copy link
Owner

已经参数化配置。在 setttings.json 中可以设置。
css变更后,需要重启。 还没有找到直接替换新css的方式。

@atian25
Copy link

atian25 commented Sep 26, 2016

这个插件是否存在 vscode 升级后被覆盖的问题? 之前遇到过, 然后就换了 https://github.com/be5invis/vscode-custom-css

@shalldie
Copy link
Owner

目前是监听配置文件settings.json改变,然后判断是否需要重置。
升级会被覆盖,确实是个问题。我会尽快解决这个问题。

@atian25
Copy link

atian25 commented Sep 26, 2016

可以参考下上面给的那个链接, 它解决了这个问题

@shalldie
Copy link
Owner

已经解决, 请更新至 1.1.6

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

No branches or pull requests

5 participants