We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc8f18 commit f6c6b65Copy full SHA for f6c6b65
packages/schema/src/language-server/zmodel-code-action.ts
@@ -134,7 +134,7 @@ export class ZModelCodeActionProvider implements CodeActionProvider {
134
135
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
136
const endOffset = oppositeModel.$cstNode!.end - 1;
137
- const position = document.textDocument.positionAt(endOffset);
+ const position = targetDocument.textDocument.positionAt(endOffset);
138
139
return {
140
title: `Add opposite relation fields on ${oppositeModel.name}`,
0 commit comments