-
-
Notifications
You must be signed in to change notification settings - Fork 22
Refactor to remove Vale Server but add some features #78
Conversation
|
This pull request introduces 3 alerts when merging 51875bc into feec982 - view on LGTM.com new alerts:
|
|
@jdkato I also wonder how many of the old Vale Server fixers are actually supported in Vale CLI? |
apupier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think the setting
vale.core.useCLIshould also be removed - it implies to update some commands visibility condition or maybe event to remove them
- there are several commented-out lines of code. Cannot we removed them completely? or it is planned before merging this PR to rework them to have feature replacement? Even in this case, what do you think about doing it in another iteration?
package.json
Outdated
| @@ -1,8 +1,8 @@ | |||
| { | |||
| "name": "vale-server", | |||
| "name": "vale", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the renaming of the VS code extension name have some implications:
- users won't be automatically updated to this version
- it is possible to mark the old one as deprecated and mention that the migration should go to this new one. For that, we will need to mention it on this Github discussion Deprecated extensions microsoft/vscode-discussions#1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in package-lock.json, teh name is still vale-server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed when merging extensions, I don't think we should change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdkato Personally I think it's really confusing now when there is no such thing as Vale server to call the extension vale server, but to avoid further confusion to users, let's keep it as is for now… Maybe I'll see if there's some way to handle it.
agree. reported errata-ai/vale#462 |
|
Yes, this a draft pr, far from finished. |
This is indeed how it's supposed to work. It was broken (inadvertently) in a semi-recent commit, but it'll be fixed in the next release. @apupier, please be mindful of the fact that I follow every repo in this organization. You don't have to open issues to tell me to look at other issues or create discussions asking about existing issues -- it just creates more emails for me to shift through. |
sorry. I was trying to do my best to report issues to the most accurate repository. I will do differently as I'm accustomed when contributing to this organization so that it fits better to you, the creator and main maintainer of it. |
The |
|
@jdkato We can handle some of the other discussion later, but now that fixed replace… Any idea about the spelling suggestions? The JSON output just returns So not quite sure what to do with that 😆 |
|
This pull request introduces 3 alerts when merging 3ceee47 into bead57d - view on LGTM.com new alerts:
|
This was all server-side before: the idea is that You can then use a spell-check library (or maybe VS Code's built-in one?) to provide spelling suggestions. |
|
@jdkato Hmm, not sure there is an in-built one. This might take some extra work. So what I might do is polish and wrap up this PR and then think about that and add it later. One other question, does the check take into account the ignore words, or will VSCode also need to take into account those? |
Yes, since an alert will only be raised if Also, even if the action stuff isn't 100% implemented, I think the dep updates and doc changes would be good to get in soon. |
|
This pull request introduces 3 alerts when merging fce8f5c into bead57d - view on LGTM.com new alerts:
|
…ctor # Conflicts: # src/features/vsCommands.ts
|
@jdkato So spelling isn't implemented, but I think everything else is for now. |
|
Possibly also other future features to return, will go through them slowly. |
|
This pull request introduces 2 alerts when merging 0836782 into bead57d - view on LGTM.com new alerts:
|
|
This looks good to me. |
Very much a draft…
But @jdkato I think this will require some changes to Vale CLI to work fully, so…
remove: easy, done.replace: Looking at the JSON output, there's no actual parameter to send to the extension, so for example:I can see the suggested replacement in
Message, but that's not much use, ideally it should be in theParamspart ofAction, which I think comes from Vale CLI… I could parse the string and remove the suggestion etc, but that feels like a messy solution.More to follow, but this is my main issue right now.