diff --git a/src/utils/Const.ts b/src/utils/Const.ts index 17ff509..a774ef2 100644 --- a/src/utils/Const.ts +++ b/src/utils/Const.ts @@ -82,7 +82,6 @@ export const GET_SUBTYPE_INFO_REQUEST_ID = 'legend/getSubtypeInfo'; // Event Types export const GET_PROJECT_ENTITIES = 'getProjectEntities'; -export const GET_ENTITY_TEXT_LOCATIONS = 'getEntityTextLocations'; export const DIAGRAM_DROP_CLASS_ERROR = 'diagramDropClassError'; export const WRITE_ENTITY = 'writeEntity'; export const QUERY_BUILDER_CONFIG_ERROR = 'queryBuilderConfigError'; @@ -90,7 +89,6 @@ export const EXPORT_DATA_COMMAND_ID = 'legend.query.exportData'; // Response events export const GET_PROJECT_ENTITIES_RESPONSE = `${GET_PROJECT_ENTITIES}/response`; -export const GET_ENTITY_TEXT_LOCATIONS_RESPONSE = `${GET_ENTITY_TEXT_LOCATIONS}/response`; export const GET_CURRENT_USER_ID_RESPONSE = `${GET_CURRENT_USER_ID_REQUEST_ID}/response`; export const GET_CLASSIFIER_PATH_MAP_RESPONSE = `${GET_CLASSIFIER_PATH_MAP_REQUEST_ID}/response`; export const GET_SUBTYPE_INFO_RESPONSE = `${GET_SUBTYPE_INFO_REQUEST_ID}/response`; diff --git a/src/webviews/utils.ts b/src/webviews/utils.ts index 56fb355..376834c 100644 --- a/src/webviews/utils.ts +++ b/src/webviews/utils.ts @@ -41,8 +41,6 @@ import { GET_CLASSIFIER_PATH_MAP_RESPONSE, GET_CURRENT_USER_ID_REQUEST_ID, GET_CURRENT_USER_ID_RESPONSE, - GET_ENTITY_TEXT_LOCATIONS, - GET_ENTITY_TEXT_LOCATIONS_RESPONSE, GET_LAMBDA_RETURN_TYPE_COMMAND_ID, GET_LAMBDA_RETURN_TYPE_RESPONSE, GET_PROJECT_ENTITIES, @@ -65,7 +63,6 @@ import { import { type LegendConceptTreeProvider } from '../conceptTree'; import { guaranteeNonNullable } from '../utils/AssertionUtils'; import { TextLocation } from '../model/TextLocation'; -import { locationToTextLocation } from '../utils/TextLocationUtils'; import { TextDocumentIdentifier } from 'vscode-languageclient'; export const getWebviewHtml = ( @@ -416,23 +413,6 @@ export const handleQueryBuilderWebviewMessage = async ( ?.save(); return true; } - case GET_ENTITY_TEXT_LOCATIONS: { - const result = message.msg.entityIds - .map( - (entityId: string) => - legendConceptTree.getTreeItemById(entityId)?.location, - ) - .filter( - (location: Location | undefined) => - location !== null && location !== undefined, - ) - .map((location: Location) => locationToTextLocation(location)); - webview.postMessage({ - command: GET_ENTITY_TEXT_LOCATIONS_RESPONSE, - result, - }); - return true; - } case QUERY_BUILDER_CONFIG_ERROR: { window.showErrorMessage('Error setting up Query Builder', { modal: true,