Lint the language service package

This commit is contained in:
Josh Gross
2023-03-20 13:33:58 -04:00
parent a1d110dc33
commit 9ef34c7e41
11 changed files with 69 additions and 61 deletions
+18 -16
View File
@@ -8,28 +8,30 @@ import {TestLogger} from "./test-utils/logger";
import {clearCache} from "./utils/workflow-cache";
const contextProviderConfig: ContextProviderConfig = {
getContext: async (context: string) => {
getContext: (context: string) => {
switch (context) {
case "github":
return new DescriptionDictionary(
{
key: "event",
value: new data.StringData("push"),
description: "The event that triggered the workflow"
},
{
key: "test",
value: new DescriptionDictionary({
key: "name",
return Promise.resolve(
new DescriptionDictionary(
{
key: "event",
value: new data.StringData("push"),
description: "Name for the test"
}),
description: "Test dictionary"
}
description: "The event that triggered the workflow"
},
{
key: "test",
value: new DescriptionDictionary({
key: "name",
value: new data.StringData("push"),
description: "Name for the test"
}),
description: "Test dictionary"
}
)
);
}
return undefined;
return Promise.resolve(undefined);
}
};