diff --git a/languageservice/src/hover.test.ts b/languageservice/src/hover.test.ts index 1f73cd8..eeeccce 100644 --- a/languageservice/src/hover.test.ts +++ b/languageservice/src/hover.test.ts @@ -57,7 +57,7 @@ jobs: expect(result).not.toBeUndefined(); expect(result?.contents).toEqual( "Prevents a workflow run from failing when a job fails. Set to true to allow a workflow run to pass when this job fails.\n\n" + - "**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`" + "Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`" ); }); @@ -154,7 +154,7 @@ jobs: // The `ref` is a `string` definition and inherits the context from `step-with` const expected = - "**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`"; + "Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`"; expect(result?.contents).toEqual(expected); }); }); @@ -180,7 +180,7 @@ jobs: const expected = "The branch, tag or SHA to checkout.\n\n" + - "**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`"; + "Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`"; expect(result?.contents).toEqual(expected); }); diff --git a/languageservice/src/hover.ts b/languageservice/src/hover.ts index fae74d6..35e8600 100644 --- a/languageservice/src/hover.ts +++ b/languageservice/src/hover.ts @@ -113,7 +113,7 @@ function appendContext(description: string, allowedContext?: string[]) { return description; } - const contextDescription = `**Available expression contexts:** ${allowedContext.map(c => `\`${c}\``).join(", ")}`; + const contextDescription = `Available expression contexts: ${allowedContext.map(c => `\`${c}\``).join(", ")}`; if (description.length == 0) { return contextDescription; }