Comments (3)
遇到同样的问题,顶一下
from auto.js-vscode-extension.
表示地址也连不上。。。。
from auto.js-vscode-extension.
需要修改文件 -----.vscode\extensions\aaroncheng.auto-js-vsce-fixed-1.109.0\out\extension.js
类Extension(98行-135行)中的内容
class Extension {
constructor() {
this.documentViewPanel = undefined;
this.qrCodeViewPanel = undefined;
this.documentCache = new Map();
}
showServerAddress() {
let servers = server.getIPs().join(":" + server.getPort() + " or ") + ":" + server.getPort();
vscode.window.showInformationMessage(`Auto.js Autox.js \r\n server running on ${servers}`);
}
showQrCode() {
let ips = server.getIPs();
if (ips.length == 1) {
this.showQrcodeWebview(ips[0]);
} else {
vscode.window.showQuickPick(ips).then(ip => {
this.showQrcodeWebview(ip);
});
}
}
showQrcodeWebview(ip) {
let url = `ws://${ip}:${server.getPort()}`;
if (!this.qrCodeViewPanel) {
this.qrCodeViewPanel = vscode.window.createWebviewPanel('Qr code', "Qr code", vscode.ViewColumn.Beside, {
enableScripts: true,
});
this.qrCodeViewPanel.onDidDispose(() => {
this.qrCodeViewPanel = undefined;
}, undefined, exports._context.subscriptions);
}
this.qrCodeViewPanel.webview.html = this.getQrCodeHtml(this.qrCodeViewPanel.webview, url);
}
getQrCodeHtml(webview, text) {
const icon = this.getVscodeResourceUrl(webview, "logo.png");
const qrcodejs = this.getVscodeResourceUrl(webview, "assets/qrcode.js");
return `<!DOCTYPE html>
getVscodeResourceUrl(webview, relativePath) {
const onDiskPath = vscode.Uri.file(path.join(exports._context.extensionPath, relativePath));
return webview.asWebviewUri(onDiskPath);
}
from auto.js-vscode-extension.
Related Issues (13)
- 发现Auto.js-Autox.js-VSCodeExt v1.109.0版本插件一个bug HOT 1
- 无法执行代码 HOT 2
- 保存项目到设备没反应 HOT 2
- 补全代码的提示出现错误 HOT 1
- 9317端口被 HOT 2
- 保存到所有设备(save)-保存图片
- Bug:无法运行脚本。使用保存项目到设备之后。 HOT 5
- 希望能够添加自定义服务器端口的功能 HOT 1
- app示例代码点击编辑按钮,页面空白
- 可否新增类似 git 的 .gitignore 文件? HOT 1
- 关于Auto.js-Autox.js-VSCodeExt v1.109.0不显示二维码的临时解决办法 HOT 7
- 这插件要配合 webpack-autojs 这个工程使用是最佳实践,否则用最原始版本无任何差异。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto.js-vscode-extension.