Skip to content

Commit

Permalink
@datasourcename should now autocomplete correctly in a model block; r…
Browse files Browse the repository at this point in the history
…ef issue: #1223
  • Loading branch information
Druue committed Nov 3, 2022
1 parent 36fdf23 commit 80ba8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-server/src/completion/completions.ts
Expand Up @@ -142,7 +142,7 @@ export function getSuggestionForFieldAttribute(
label: '@' + datasourceName,
documentation:
'Defines a native database type that should be used for this field. See https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#native-types-mapping',
insertText: '@db.$0',
insertText: `@${datasourceName}$0`,
insertTextFormat: InsertTextFormat.Snippet,
})
} else if (
Expand Down

0 comments on commit 80ba8ae

Please sign in to comment.