Skip to content

Commit

Permalink
Add go to def TS support for other actions too
Browse files Browse the repository at this point in the history
  • Loading branch information
Matsuuu committed Nov 12, 2023
1 parent 9ff8b8d commit 0da2759
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ function getAttributeDefinitionEntries(
project: tss.server.Project
) {
const attributeDefinitionTextSpan = getAttributeDefinitionTextSpan(matchingClass, actionContext.attributeName ?? "", basePath, project);
const packagePath = url.pathToFileURL(matchingClass.cem.cemSourceFolderPath + "/" + matchingClass.path).href;
let packagePath = url.pathToFileURL(matchingClass.cem.cemSourceFolderPath + "/" + matchingClass.path).href;
packagePath = determineTargetFileExtension(packagePath);

return [
{
Expand All @@ -128,7 +129,8 @@ function getPropertyDefinitionEntries(
project: tss.server.Project
) {
const propertyDefinitionTextSpan = getPropertyDefinitionTextSpan(matchingClass, actionContext.propertyName ?? "", basePath, project);
const packagePath = url.pathToFileURL(matchingClass.cem.cemSourceFolderPath + "/" + matchingClass.path).href;
let packagePath = url.pathToFileURL(matchingClass.cem.cemSourceFolderPath + "/" + matchingClass.path).href;
packagePath = determineTargetFileExtension(packagePath);

return [
{
Expand All @@ -152,7 +154,8 @@ function getEventDefinitionEntries(
project: tss.server.Project
) {
const eventDefinitionTextSpan = getEventDefinitionTextSpan(matchingClass, actionContext.eventName ?? "", basePath, project);
const packagePath = url.pathToFileURL(matchingClass.cem.cemSourceFolderPath + "/" + matchingClass.path).href;
let packagePath = url.pathToFileURL(matchingClass.cem.cemSourceFolderPath + "/" + matchingClass.path).href;
packagePath = determineTargetFileExtension(packagePath);

return [
{
Expand Down

0 comments on commit 0da2759

Please sign in to comment.