Derive allCommandNames from CommandTypes enum (#52319)

This commit is contained in:
Jake Bailey
2023-01-19 16:51:41 -08:00
committed by GitHub
parent 6f338b9936
commit ebbc56d0b3
3 changed files with 2 additions and 101 deletions

View File

@@ -19,11 +19,8 @@ import {
TypeAcquisition,
} from "./_namespaces/ts";
/**
* Declaration module describing the TypeScript Server protocol
*/
// Declaration module describing the TypeScript Server protocol
// NOTE: If updating this, be sure to also update `allCommandNames` in `testRunner/unittests/tsserver/session.ts`.
export const enum CommandTypes {
JsxClosingTag = "jsxClosingTag",
Brace = "brace",
@@ -175,8 +172,6 @@ export const enum CommandTypes {
ProvideCallHierarchyIncomingCalls = "provideCallHierarchyIncomingCalls",
ProvideCallHierarchyOutgoingCalls = "provideCallHierarchyOutgoingCalls",
ProvideInlayHints = "provideInlayHints"
// NOTE: If updating this, be sure to also update `allCommandNames` in `testRunner/unittests/tsserver/session.ts`.
}
/**