From ab975ebe2868796ef2847b5fe4389a078f0c1cd5 Mon Sep 17 00:00:00 2001 From: Aiday Marlen Kyzy Date: Thu, 31 Aug 2023 16:02:06 +0200 Subject: [PATCH] adding also sort and json into the name --- extensions/json-language-features/server/src/jsonServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/json-language-features/server/src/jsonServer.ts b/extensions/json-language-features/server/src/jsonServer.ts index d88b80587dc..9b353d913ed 100644 --- a/extensions/json-language-features/server/src/jsonServer.ts +++ b/extensions/json-language-features/server/src/jsonServer.ts @@ -429,7 +429,7 @@ export function startServer(connection: Connection, runtime: RuntimeEnvironment) return runSafeAsync(runtime, async () => { const document = documents.get(codeActionParams.textDocument.uri); if (document) { - const sortCodeAction = CodeAction.create('Sort JSON', CodeActionKind.Source); + const sortCodeAction = CodeAction.create('Sort JSON', CodeActionKind.Source.concat('.sort', '.json')); sortCodeAction.command = { command: 'json.sort', title: 'Sort JSON'