File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
view/data-extensions-editor Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ import {
1717} from "../variant-analysis/shared/variant-analysis-filter-sort" ;
1818import { ErrorLike } from "../common/errors" ;
1919import { DataFlowPaths } from "../variant-analysis/shared/data-flow-paths" ;
20- import { ExternalApiUsage } from "../data-extensions-editor/external-api-usage" ;
20+ import {
21+ ExternalApiUsage ,
22+ Usage ,
23+ } from "../data-extensions-editor/external-api-usage" ;
2124import { ModeledMethod } from "../data-extensions-editor/modeled-method" ;
2225import { DataExtensionEditorViewState } from "../data-extensions-editor/shared/view-state" ;
2326import { Mode } from "../data-extensions-editor/shared/mode" ;
@@ -522,7 +525,7 @@ interface SwitchModeMessage {
522525
523526interface JumpToUsageMessage {
524527 t : "jumpToUsage" ;
525- location : ResolvableLocationValue ;
528+ usage : Usage ;
526529}
527530
528531interface OpenDatabaseMessage {
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export class DataExtensionsEditorView extends AbstractWebview<
153153
154154 break ;
155155 case "jumpToUsage" :
156- await this . handleJumpToUsage ( msg . location ) ;
156+ await this . handleJumpToUsage ( msg . usage ) ;
157157
158158 break ;
159159 case "saveModeledMethods" :
@@ -230,11 +230,11 @@ export class DataExtensionsEditorView extends AbstractWebview<
230230 } ) ;
231231 }
232232
233- protected async handleJumpToUsage ( location : ResolvableLocationValue ) {
233+ protected async handleJumpToUsage ( usage : Usage ) {
234234 if ( showModelDetailsView ( ) ) {
235235 await this . openModelDetailsView ( ) ;
236236 } else {
237- await this . jumpToUsage ( location ) ;
237+ await this . jumpToUsage ( usage . url ) ;
238238 }
239239 }
240240
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ function sendJumpToUsageMessage(externalApiUsage: ExternalApiUsage) {
326326 vscode . postMessage ( {
327327 t : "jumpToUsage" ,
328328 // In framework mode, the first and only usage is the definition of the method
329- location : externalApiUsage . usages [ 0 ] . url ,
329+ usage : externalApiUsage . usages [ 0 ] ,
330330 } ) ;
331331}
332332
You can’t perform that action at this time.
0 commit comments