我在vscode(0.9)中使用gulp任务来尝试从typescript和tslint中获取错误.
gulp任务正在监视我的ts文件的更改,并在更改时运行gulp-tslint和gulp-typescript.我还在vscode tasks.json和问题匹配器中定义了一个任务来解析结果.
解析错误并将其正确报告给vscode.但是,即使修复和保存代码,有时也会保留它们.
是否有一些额外的配置提供给vscode问题匹配器,以便它正确清除错误或它是一个vscode错误?作为一种解决方法,有一种方法可以手动清除所有错误吗?我发现清除它们的唯一方法是重启vscode并不是很好.
请注意,如果任务不是监视任务而是简单执行,则此方法可以正常工作.
我的vscode tasks.json
{
"version": "0.1.0",
"command": "gulp",
"isShellCommand": true,
"tasks": [
{
"taskName": "watch",
// Make this the default build command.
"isBuildCommand": true,
// Watching
"isWatching": true,
// Show the output window only if unrecognized errors occur.
"showOutput": "always",
// Use the standard less compilation problem matcher.
"problemMatcher": [
{
"owner": "gulp-tslint",
"fileLocation": [
"relative",
"${workspaceRoot}/app"
],
"pattern": {
"regexp": ".*\\[gulp-tslint\\] (error|warning) (.*)\\[(\\d*), (\\d*)\\]: (.*)",
"severity": 1,
"file": 2,
"line": 3,
"column": 4,
"message": …Run Code Online (Sandbox Code Playgroud) 是否可以完全隐藏摩纳哥编辑器的排水沟。我尝试了以下选项:
lineNumbers: 'off',
glyphMargin: false,
folding: false
Run Code Online (Sandbox Code Playgroud)
这减少了装订线的大小,但它仍然是大约 10 像素宽,并且在悬停时它会变长。有没有办法完全压制它?
将 angular 和 @types/angular 版本升级到 1.6.x 版后,我有很多 TS2694 错误:
error TS2694: Namespace 'angular' has no exported member 'material'
error TS2694: Namespace 'angular' has no exported member 'ui'
error TS2694: Namespace 'angular' has no exported member 'translate'
Run Code Online (Sandbox Code Playgroud)
这在更改版本号之前工作正常。
什么可能导致问题?
是否可以定义具有多级/类别轴的条形图?
我发现这个例子使用多个 xAxes。
xAxes:[
{
id:'xAxis1',
type:"category",
ticks:{
callback:function(label){
var month = label.split(";")[0];
var year = label.split(";")[1];
return month;
}
}
},
{
id:'xAxis2',
type:"category",
gridLines: {
drawOnChartArea: false, // only want the grid lines for one axis to show up
},
ticks:{
callback:function(label){
var month = label.split(";")[0];
var year = label.split(";")[1];
if(month === "February"){
return year;
}else{
return "";
}
}
}
}
]
Run Code Online (Sandbox Code Playgroud)
问题是这两个轴似乎没有真正链接,第二个轴的对齐基于值而不是在较低级别类别的中间对齐。这种情况会导致问题
在chart.js中是否有一种干净的方法来实现这一点?
更新: 我最终在 chartjs上创建了一个功能请求。
Chrome网站仅提供最新版本的下载。但是,有时有必要针对旧版Chrome调试网络应用。
有多个第三方网站(如/sf/ask/2359369631/所述)可以下载Chrome二进制文件,但我不能出于安全原因希望从这些第三方下载。
所以问题是,有什么方法可以从谷歌托管服务器下载旧版本的Chrome?