Closed thekavikumar closed 5 months ago
@techsavvyash please review the PR
vscode.mp4
Why do we have to select the schema.prisma manually?
vscode.mp4
Why do we have to select the schema.prisma manually?
because if we declare it in the extension file itself, and we deploy the extension the user can't modify the path as because he doesn't have the source code of the extension. @techsavvyash
What new have you done in this? This functionality is already present in the current state of the VS Code extension, seems more like a downgrade where we are picking the schema.prisma by hand and we have to right click after selecting data to validate and not just run it like a command from the VSCode command pallate.
What new have you done in this? This functionality is already present in the current state of the VS Code extension, seems more like a downgrade where we are picking the schema.prisma by hand and we have to right click after selecting data to validate and not just run it like a command from the VSCode command pallate.
no, we can use the command pallate too
sir when we deploy the extension, how the user can access the source code? It is not possible right, for that only I've added option to select the file.
vscode.mp4
Why do we have to select the schema.prisma manually?
because if we declare it in the extension file itself, and we deploy the extension the user can't modify the path as because he doesn't have the source code of the extension. @techsavvyash
We should provide an option to configure the path to schema file using the extension settings if the user absolutely needs it, but in majority cases the schema.prisma
of concern would always be present in the root level prisma
folder.
sir when we deploy the extension, how the user can access the source code? It is not possible right, for that only I've added option to select the file.
why hard code the path? use environment variables/config parameters with a default value.
so, is the pr okay? or any other features should be implemented sir?
no, the PR is not okay, we are discussing the problems only.
sir, may i know what is the solution you suggest for these problems?
please read the conversation again.
yeah sir, so we can fetch it from env, that's what you suggest right?
also please suggest me new features that can be implemented, I'm running out of ideas
i am still not seeing what is the new thing you have implemented till now, the current functionlaity you are giving is already present in the current state of the extension, what is the point of this PR?
It is to make some enhancement to the existing extension sir
What is the proposed enhacement?
highlighting the matched columns, and option to configure path to prisma file instead of hard coding it in the extension itself
highlighting the matched columns, and configure path to prisma file instead of hard coding it in the extension itself
is the second part implemented?
which one? option to configure the path to prisma file?
or the highlighting?
also, it's better to highligh the unmatched columns (errors) rather than the matched columns.
which one? option to configure the path to prisma file?
this one
which one? option to configure the path to prisma file?
this one
that's the selecting prisma file from file explorer that pops up
also, it's better to highligh the unmatched columns (errors) rather than the matched columns.
alright will do that
which one? option to configure the path to prisma file?
this one
that's the selecting prisma file from file explorer that pops up
I don't think picking files from the file picker counts as giving the path via a config. Stencil is built with the idea to "enhance" DX not downgrade it.
alright sir, will close this pr, and will implement some other feature. can you please suggest some new feature that i can work on?
Issue: #7
Visual Feedback in Editor: Matching columns in the CSV file are now highlighted directly within the Visual Studio Code editor. This provides users with immediate visual feedback on which columns match the columns defined in the selected Prisma schema.
Interactive Interface for Prisma Schema Selection: Users can now select the Prisma schema file using Visual Studio Code's built-in file picker dialog. This simplifies the process of specifying the Prisma schema file path, enhancing the user experience.
Informative Messages: When matching columns are found, the extension displays informative messages to indicate which model the columns match. This helps users quickly understand the relationship between the CSV columns and the Prisma schema models.
These are the features added.