Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Aug 28, 2023
1 parent 88fa9c3 commit 65938f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions extension/src/bs/BuildServerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -35,7 +38,7 @@ export class BuildServerController implements Disposable {
commands.registerCommand(SEND_TELEMETRY_CMD, (jsonString: string) => {
const log = JSON.parse(jsonString);
sendInfo("", log);
}),
})
);
}

Expand Down
2 changes: 1 addition & 1 deletion extension/src/bs/GradleBuildLinkProvider.ts
Original file line number Diff line number Diff line change
@@ -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[]> {
Expand Down
8 changes: 4 additions & 4 deletions extension/syntaxes/GradleBuild.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
}
}
]
Expand Down

0 comments on commit 65938f2

Please sign in to comment.