Skip to content

Commit

Permalink
Remove deprecated filepath api
Browse files Browse the repository at this point in the history
  • Loading branch information
sachiniSam committed May 9, 2023
1 parent fb9efcd commit 80718dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public GraphqlModel getGraphqlModel(Project project, LineRange position, Semanti
DocumentId docId;
Document doc;
if (project.kind().equals(ProjectKind.BUILD_PROJECT)) {
Path filePath = Path.of(position.filePath());
Path filePath = Path.of(position.fileName());
docId = project.documentId(filePath);
ModuleId moduleId = docId.moduleId();
doc = project.currentPackage().module(moduleId).document(docId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Service generate() {
generateGraphqlOperation(schemaObj.getMutationType(), OperationKind.MUTATION);
generateGraphqlOperation(schemaObj.getSubscriptionType(), OperationKind.SUBSCRIPTION);

Position nodePosition = new Position(servicePosition.filePath(),
Position nodePosition = new Position(servicePosition.fileName(),
new LinePosition(servicePosition.startLine().line(), servicePosition.startLine().offset()),
new LinePosition(servicePosition.endLine().line(), servicePosition.endLine().offset()));

Expand Down

0 comments on commit 80718dc

Please sign in to comment.