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

viewInBrowser #18

Open
Leopardln opened this issue Jun 23, 2018 · 1 comment
Open

viewInBrowser #18

Leopardln opened this issue Jun 23, 2018 · 1 comment

Comments

@Leopardln
Copy link

Issue Type: Bug

viewInBrowser 快捷键 ctrl + F1 启动 默认浏览器失败!

Extension version: 0.0.5
VS Code version: Code 1.24.1 (24f62626b222e9a8313213fb64b10d741a326288, 2018-06-13T17:51:32.889Z)
OS version: Windows_NT x64 10.0.14393

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz (8 x 3392)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.94GB (12.66GB free)
Process Argv D:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 57%
@zhhbstudio
Copy link

zhhbstudio commented Aug 25, 2018

我通过修改代码解决了这个问题,进入目录"%USERPROFILE%.vscode\extensions\qinjia.view-in-browser-0.0.5\out\src",找到文件"extension.js",删除43-46行,
if (e.path) {
openFile(e.fsPath, customBrowser);
}
else {
以及55行,
}
个人分析为升级之后e.path不能用了报错,我自己调试发现问题出在这里,按照如上述方法解决之后能满足个人使用,希望能帮到你
My English is poor, but I also want to help more people. Open the folder "%USERPROFILE%.vscode\extensions\qinjia.view-in-browser-0.0.5\out\src",edit the file "extension.js",
Delete forty-three to forty-six rows.like this
if (e.path) {
openFile(e.fsPath, customBrowser);
}
else {
Delete the fifty-fifth row too
}
Then restart VSCode,please try!

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

2 participants