From d9de07bfe3587e9d8266909cd7bd54e34d7cdeee Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Fri, 10 Mar 2023 10:39:59 -0500 Subject: [PATCH] Remove bolded context text --- languageservice/src/hover.test.ts | 6 +++--- languageservice/src/hover.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }