Fix lint errors
This commit is contained in:
Родитель
88fa9c37f7
Коммит
65938f203f
|
@ -16,7 +16,10 @@ export class BuildServerController implements Disposable {
|
|||
this.logOutputChannel = window.createOutputChannel("Build Server for Gradle (Log)");
|
||||
this.disposable = Disposable.from(
|
||||
this.buildOutputChannel,
|
||||
languages.registerDocumentLinkProvider({ language: "gradle-build", scheme: 'output' }, new GradleBuildLinkProvider()),
|
||||
languages.registerDocumentLinkProvider(
|
||||
{ language: "gradle-build", scheme: "output" },
|
||||
new GradleBuildLinkProvider()
|
||||
),
|
||||
commands.registerCommand(APPEND_BUILD_LOG_CMD, (msg: string) => {
|
||||
if (msg) {
|
||||
this.buildOutputChannel.appendLine(msg);
|
||||
|
@ -35,7 +38,7 @@ export class BuildServerController implements Disposable {
|
|||
commands.registerCommand(SEND_TELEMETRY_CMD, (jsonString: string) => {
|
||||
const log = JSON.parse(jsonString);
|
||||
sendInfo("", log);
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {DocumentLink, DocumentLinkProvider, ProviderResult, Range, TextDocument, Uri } from "vscode";
|
||||
import { DocumentLink, DocumentLinkProvider, ProviderResult, Range, TextDocument, Uri } from "vscode";
|
||||
|
||||
export class GradleBuildLinkProvider implements DocumentLinkProvider {
|
||||
provideDocumentLinks(document: TextDocument): ProviderResult<DocumentLink[]> {
|
||||
|
|
|
@ -7,28 +7,28 @@
|
|||
"name": "FAILURE",
|
||||
"match": "(^FAILURE: .+$)",
|
||||
"captures": {
|
||||
"1": {"name": "invalid.illegal.failure"}
|
||||
"1": { "name": "invalid.illegal.failure" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "error",
|
||||
"match": "(^\\d+\\serror$)",
|
||||
"captures": {
|
||||
"1": {"name": "invalid.illegal.error"}
|
||||
"1": { "name": "invalid.illegal.error" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "error.description",
|
||||
"match": "(error:\\s.+$)",
|
||||
"captures": {
|
||||
"1": {"name": "invalid.illegal.error.description"}
|
||||
"1": { "name": "invalid.illegal.error.description" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "BUILD FAILED",
|
||||
"match": "(^BUILD FAILED)",
|
||||
"captures": {
|
||||
"1": {"name": "invalid.illegal.bold.buildFailed"}
|
||||
"1": { "name": "invalid.illegal.bold.buildFailed" }
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче