Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 51875bc

Browse files
Draft
1 parent feec982 commit 51875bc

File tree

8 files changed

+276
-349
lines changed

8 files changed

+276
-349
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 2017 - 2021 Joseph Kato and Chris Ward
3+
Copyright (c) 2017 - 2022 Joseph Kato and Chris Ward
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
11
# Vale + VS Code
22

3-
> The official Visual Studio Code extension for [Vale](https://github.com/errata-ai/vale) and [Vale Server](https://errata.ai/vale-server/).
3+
> The official Visual Studio Code extension for [Vale](https://github.com/errata-ai/vale).
44
55
The Vale extension for VS Code provides customizable spelling, style, and grammar checking for a variety of markup formats (Markdown, AsciiDoc, reStructuredText, HTML, and DITA).
66

7-
As of **v0.10.0**, the extension supports both [Vale](https://github.com/errata-ai/vale) (the command-line tool) and [Vale Server](https://errata.ai/vale-server/) (the desktop application).
7+
As of **v0.15.0**, the extension drops support for [Vale Server](https://errata.ai/vale-server/) which has ceased development. Many of the features from Vale Server will find their way into the Vale CLI tool, and this extension.
88

99
## Installation
1010

11-
> **NOTE**: While this extension supports both Vale CLI and Vale Server, many of the extension's more [advanced features](#features) (such as Quick Fixes and Vocabulary Management) are only available through Vale Server.
12-
13-
### Using Vale Server
14-
15-
1. Install [Vale Server](https://errata.ai/vale-server/);
16-
17-
2. install `vale-vscode` (this extension) via the [Marketplace](https://marketplace.visualstudio.com/items?itemName=errata-ai.vale-server); and
18-
19-
3. restart VS Code (recommended).
20-
21-
### Using Vale
22-
2311
1. Install [Vale](https://docs.errata.ai/vale/install);
24-
2512
2. install `vale-vscode` (this extension) via the [Marketplace](https://marketplace.visualstudio.com/items?itemName=errata-ai.vale-server);
26-
27-
3. set [`vale.core.useCLI`](#settings) to `true` in the extension settings (_Preferences > Extensions > Vale > Use CLI_); and
28-
29-
4. restart VS Code (recommended).
13+
3. restart VS Code (recommended).
3014

3115
## Features
3216

@@ -74,11 +58,9 @@ Use the `Vale: View Folder Report` command to generate a [report for the active
7458

7559
## Settings
7660

77-
The extension offers a number of settings and configuration options (_Preferences > Extensions > Vale_), which are split into three groups: `Vale > Core` (Vale and Vale Server), `Vale > Server` (Vale Server only), and `Vale > Vale CLI` (Vale only).
78-
79-
- `vale.core.useCLI` (default: `false`): Use Vale CLI instead of Vale Server.
61+
The extension offers a number of settings and configuration options (_Preferences > Extensions > Vale_)..
8062

81-
- `vale.server.serverURL` (default: `http://127.0.0.1:7777`): URL to your running Vale Server instance.
63+
<!-- TODO: Deprecating values and names -->
8264

8365
- `vale.server.provideFixes` (default: `true`): Offer solutions to alerts using the 'Quick Fix' button.
8466

package.json

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "vale-server",
2+
"name": "vale",
33
"displayName": "Vale",
44
"icon": ".vscode/icon.png",
5-
"description": "The official Visual Studio Code extension for Vale and Vale Server.",
5+
"description": "The official Visual Studio Code extension for Vale.",
66
"bugs": "https://github.com/errata-ai/vale-vscode/issues",
77
"author": {
88
"name": "Joseph Kato",
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/errata-ai/vale-vscode.git"
1717
},
18-
"version": "0.14.2",
18+
"version": "0.15.0",
1919
"engines": {
2020
"vscode": "^1.43.0"
2121
},
@@ -106,11 +106,6 @@
106106
"default": false,
107107
"markdownDescription": "Use Vale's CLI instead of Vale Server. (**NOTE**: Some features, such as [Quick Fixes](https://github.com/errata-ai/vale-vscode/pull/4) and [Vocab Management](https://github.com/errata-ai/vale-vscode/pull/4), are only available when using Vale Server.)"
108108
},
109-
"vale.server.serverURL": {
110-
"type": "string",
111-
"default": "http://127.0.0.1:7777",
112-
"description": "URL to your running Vale Server instance."
113-
},
114109
"vale.server.provideFixes": {
115110
"type": "boolean",
116111
"default": true,
@@ -150,13 +145,6 @@
150145
"Sets `minAlertLevel` to `error`, overriding any configuration files."
151146
],
152147
"markdownDescription": "Defines from which level of errors and above to display in the problems output."
153-
},
154-
"vale-server.serverURL": {
155-
"type": "string",
156-
"default": "http://127.0.0.1:7777",
157-
"description": "URL to your running Vale Server instance.",
158-
"markdownDeprecationMessage": "**Deprecated**: Please use `#vale.server.serverURL#` instead.",
159-
"deprecationMessage": "Deprecated: Please use vale.server.serverURL instead."
160148
}
161149
}
162150
}
@@ -172,25 +160,22 @@
172160
"test-compile": "tsc -p ./"
173161
},
174162
"devDependencies": {
175-
"@types/glob": "^7.1.1",
176-
"@types/mocha": "^9.0.0",
177-
"@types/node": "^10.12.21",
178-
"@types/vscode": "^1.59.0",
179-
"@types/which": "^1.3",
180-
"glob": "^7.1.4",
181-
"mocha": "^9.1.0",
182-
"ts-loader": "^6.1.2",
183-
"tslint": "^5.12.1",
184-
"typescript": "^4.3.5",
163+
"@types/glob": "^7.2.0",
164+
"@types/mocha": "^9.1.1",
165+
"@types/node": "^18.0.0",
166+
"@types/vscode": "^1.68.1",
167+
"@types/which": "^2.0.1",
168+
"glob": "^8.0.3",
169+
"mocha": "^10.0.0",
170+
"ts-loader": "^9.3.1",
171+
"tslint": "^6.1.3",
172+
"typescript": "^4.7.4",
185173
"vscode-test": "^1.6.1",
186-
"webpack": "^5.51.1",
187-
"webpack-cli": "^4.8.0"
174+
"webpack": "^5.73.0",
175+
"webpack-cli": "^4.10.0"
188176
},
189177
"dependencies": {
190-
"@types/request-promise-native": "^1.0.16",
191-
"fs": "0.0.1-security",
192-
"request": "^2.88.0",
193-
"request-promise-native": "^1.0.7",
194-
"which": "^2.0.1"
178+
"which": "^2.0.2",
179+
"fs": "0.0.1-security"
195180
}
196181
}

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as vscode from "vscode";
22

3-
import ValeServerProvider from "./features/vsProvider";
3+
import ValeProvider from "./features/vsProvider";
44

55
export function activate(context: vscode.ExtensionContext) {
6-
let linter = new ValeServerProvider();
6+
let linter = new ValeProvider();
77
linter.activate(context.subscriptions);
88
}

0 commit comments

Comments
 (0)