|
26 | 26 | ],
|
27 | 27 | "activationEvents": [
|
28 | 28 | "onCommand:grammarly.check",
|
| 29 | + "onCommand:grammarly.login", |
| 30 | + "onCommand:grammarly.logout", |
29 | 31 | "onLanguage:plaintext",
|
30 | 32 | "onLanguage:markdown",
|
31 | 33 | "onLanguage:html"
|
|
45 | 47 | "**/README.md",
|
46 | 48 | "**/*.txt"
|
47 | 49 | ],
|
48 |
| - "required": true |
| 50 | + "required": true, |
| 51 | + "scope": "window", |
| 52 | + "order": 0 |
49 | 53 | },
|
50 | 54 | "grammarly.selectors": {
|
51 | 55 | "type": "array",
|
|
68 | 72 | }
|
69 | 73 | },
|
70 | 74 | "default": [],
|
71 |
| - "required": true |
| 75 | + "required": true, |
| 76 | + "scope": "window", |
| 77 | + "order": 1 |
72 | 78 | },
|
73 | 79 | "grammarly.config.documentDialect": {
|
74 | 80 | "markdownDescription": "Specific variety of English being written. See [this article](https://support.grammarly.com/hc/en-us/articles/115000089992-Select-between-British-English-American-English-Canadian-English-and-Australian-English) for differences.",
|
|
86 | 92 | "",
|
87 | 93 | "An appropriate value based on the text."
|
88 | 94 | ],
|
89 |
| - "default": "auto-text" |
| 95 | + "default": "auto-text", |
| 96 | + "scope": "language-overridable" |
90 | 97 | },
|
91 | 98 | "grammarly.config.documentDomain": {
|
92 | 99 | "markdownDescription": "The style or type of writing to be checked. See [What is domain/document type](https://support.grammarly.com/hc/en-us/articles/115000091472-What-is-domain-document-type-)?",
|
|
106 | 113 | "Casual is designed for informal types of writing and ignores most style issues. It does not flag contractions, passive voice, informal pronouns, who-versus-whom usage, split infinitives, or run-on sentences. This style is suitable for personal communication.",
|
107 | 114 | "This is the most permissive style. It catches grammar, punctuation, and spelling mistakes but allows some leeway for those who want to intentionally bend grammar rules to achieve certain effects. Creative doesn’t flag sentence fragments (missing subjects or verbs), wordy sentences, colloquialisms, informal pronouns, passive voice, incomplete comparisons, or run-on sentences."
|
108 | 115 | ],
|
109 |
| - "default": "general" |
| 116 | + "default": "general", |
| 117 | + "scope": "language-overridable" |
110 | 118 | },
|
111 | 119 | "grammarly.config.suggestions.ConjunctionAtStartOfSentence": {
|
112 | 120 | "description": "Flags use of conjunctions such as 'but' and 'and' at the beginning of sentences.",
|
113 | 121 | "type": "boolean",
|
114 |
| - "default": false |
| 122 | + "default": false, |
| 123 | + "scope": "language-overridable" |
115 | 124 | },
|
116 | 125 | "grammarly.config.suggestions.Fluency": {
|
117 | 126 | "description": "Suggests ways to sound more natural and fluent.",
|
118 | 127 | "type": "boolean",
|
119 |
| - "default": true |
| 128 | + "default": true, |
| 129 | + "scope": "language-overridable" |
120 | 130 | },
|
121 | 131 | "grammarly.config.suggestions.InformalPronounsAcademic": {
|
122 | 132 | "description": "Flags use of personal pronouns such as 'I' and 'you' in academic writing.",
|
123 | 133 | "type": "boolean",
|
124 |
| - "default": false |
| 134 | + "default": false, |
| 135 | + "scope": "language-overridable" |
125 | 136 | },
|
126 | 137 | "grammarly.config.suggestions.MissingSpaces": {
|
127 | 138 | "description": "Suggests adding missing spacing after a numeral when writing times.",
|
128 | 139 | "type": "boolean",
|
129 |
| - "default": true |
| 140 | + "default": true, |
| 141 | + "scope": "language-overridable" |
130 | 142 | },
|
131 | 143 | "grammarly.config.suggestions.NounStrings": {
|
132 | 144 | "description": "Flags a series of nouns that modify a final noun.",
|
133 | 145 | "type": "boolean",
|
134 |
| - "default": true |
| 146 | + "default": true, |
| 147 | + "scope": "language-overridable" |
135 | 148 | },
|
136 | 149 | "grammarly.config.suggestions.NumbersBeginningSentences": {
|
137 | 150 | "description": "Suggests spelling out numbers at the beginning of sentences.",
|
138 | 151 | "type": "boolean",
|
139 |
| - "default": true |
| 152 | + "default": true, |
| 153 | + "scope": "language-overridable" |
140 | 154 | },
|
141 | 155 | "grammarly.config.suggestions.NumbersZeroThroughTen": {
|
142 | 156 | "description": "Suggests spelling out numbers zero through ten.",
|
143 | 157 | "type": "boolean",
|
144 |
| - "default": true |
| 158 | + "default": true, |
| 159 | + "scope": "language-overridable" |
145 | 160 | },
|
146 | 161 | "grammarly.config.suggestions.OxfordComma": {
|
147 | 162 | "description": "Suggests adding the Oxford comma after the second-to-last item in a list of things.",
|
148 | 163 | "type": "boolean",
|
149 |
| - "default": false |
| 164 | + "default": false, |
| 165 | + "scope": "language-overridable" |
150 | 166 | },
|
151 | 167 | "grammarly.config.suggestions.PassiveVoice": {
|
152 | 168 | "description": "Flags use of passive voice.",
|
153 | 169 | "type": "boolean",
|
154 |
| - "default": false |
| 170 | + "default": false, |
| 171 | + "scope": "language-overridable" |
155 | 172 | },
|
156 | 173 | "grammarly.config.suggestions.PersonFirstLanguage": {
|
157 | 174 | "description": "Suggests using person-first language to refer respectfully to an individual with a disability.",
|
158 | 175 | "type": "boolean",
|
159 |
| - "default": true |
| 176 | + "default": true, |
| 177 | + "scope": "language-overridable" |
160 | 178 | },
|
161 | 179 | "grammarly.config.suggestions.PossiblyBiasedLanguageAgeRelated": {
|
162 | 180 | "description": "Suggests alternatives to potentially biased language related to older adults.",
|
163 | 181 | "type": "boolean",
|
164 |
| - "default": true |
| 182 | + "default": true, |
| 183 | + "scope": "language-overridable" |
165 | 184 | },
|
166 | 185 | "grammarly.config.suggestions.PossiblyBiasedLanguageDisabilityRelated": {
|
167 | 186 | "description": "Suggests alternatives to potentially ableist language.",
|
168 | 187 | "type": "boolean",
|
169 |
| - "default": true |
| 188 | + "default": true, |
| 189 | + "scope": "language-overridable" |
170 | 190 | },
|
171 | 191 | "grammarly.config.suggestions.PossiblyBiasedLanguageFamilyRelated": {
|
172 | 192 | "description": "Suggests alternatives to potentially biased language related to parenting and family systems.",
|
173 | 193 | "type": "boolean",
|
174 |
| - "default": true |
| 194 | + "default": true, |
| 195 | + "scope": "language-overridable" |
175 | 196 | },
|
176 | 197 | "grammarly.config.suggestions.PossiblyBiasedLanguageGenderRelated": {
|
177 | 198 | "description": "Suggests alternatives to potentially gender-biased and non-inclusive phrasing.",
|
178 | 199 | "type": "boolean",
|
179 |
| - "default": true |
| 200 | + "default": true, |
| 201 | + "scope": "language-overridable" |
180 | 202 | },
|
181 | 203 | "grammarly.config.suggestions.PossiblyBiasedLanguageHumanRights": {
|
182 | 204 | "description": "Suggests alternatives to language related to human slavery.",
|
183 | 205 | "type": "boolean",
|
184 |
| - "default": true |
| 206 | + "default": true, |
| 207 | + "scope": "language-overridable" |
185 | 208 | },
|
186 | 209 | "grammarly.config.suggestions.PossiblyBiasedLanguageHumanRightsRelated": {
|
187 | 210 | "description": "Suggests alternatives to terms with origins in the institution of slavery.",
|
188 | 211 | "type": "boolean",
|
189 |
| - "default": true |
| 212 | + "default": true, |
| 213 | + "scope": "language-overridable" |
190 | 214 | },
|
191 | 215 | "grammarly.config.suggestions.PossiblyBiasedLanguageLgbtqiaRelated": {
|
192 | 216 | "description": "Flags LGBTQIA+-related terms that may be seen as biased, outdated, or disrespectful in some contexts.",
|
193 | 217 | "type": "boolean",
|
194 |
| - "default": true |
| 218 | + "default": true, |
| 219 | + "scope": "language-overridable" |
195 | 220 | },
|
196 | 221 | "grammarly.config.suggestions.PossiblyBiasedLanguageRaceEthnicityRelated": {
|
197 | 222 | "description": "Suggests alternatives to potentially biased language related to race and ethnicity.",
|
198 | 223 | "type": "boolean",
|
199 |
| - "default": true |
| 224 | + "default": true, |
| 225 | + "scope": "language-overridable" |
200 | 226 | },
|
201 | 227 | "grammarly.config.suggestions.PossiblyPoliticallyIncorrectLanguage": {
|
202 | 228 | "description": "Suggests alternatives to language that may be considered politically incorrect.",
|
203 | 229 | "type": "boolean",
|
204 |
| - "default": true |
| 230 | + "default": true, |
| 231 | + "scope": "language-overridable" |
205 | 232 | },
|
206 | 233 | "grammarly.config.suggestions.PrepositionAtTheEndOfSentence": {
|
207 | 234 | "description": "Flags use of prepositions such as 'with' and 'in' at the end of sentences.",
|
208 | 235 | "type": "boolean",
|
209 |
| - "default": false |
| 236 | + "default": false, |
| 237 | + "scope": "language-overridable" |
210 | 238 | },
|
211 | 239 | "grammarly.config.suggestions.PunctuationWithQuotation": {
|
212 | 240 | "description": "Suggests placing punctuation before closing quotation marks.",
|
213 | 241 | "type": "boolean",
|
214 |
| - "default": true |
| 242 | + "default": true, |
| 243 | + "scope": "language-overridable" |
215 | 244 | },
|
216 | 245 | "grammarly.config.suggestions.ReadabilityFillerwords": {
|
217 | 246 | "description": "Flags long, complicated sentences that could potentially confuse your reader.",
|
218 | 247 | "type": "boolean",
|
219 |
| - "default": true |
| 248 | + "default": true, |
| 249 | + "scope": "language-overridable" |
220 | 250 | },
|
221 | 251 | "grammarly.config.suggestions.ReadabilityTransforms": {
|
222 | 252 | "description": "Suggests splitting long, complicated sentences that could potentially confuse your reader.",
|
223 | 253 | "type": "boolean",
|
224 |
| - "default": true |
| 254 | + "default": true, |
| 255 | + "scope": "language-overridable" |
225 | 256 | },
|
226 | 257 | "grammarly.config.suggestions.SentenceVariety": {
|
227 | 258 | "description": "Flags series of sentences that follow the same pattern.",
|
228 | 259 | "type": "boolean",
|
229 |
| - "default": true |
| 260 | + "default": true, |
| 261 | + "scope": "language-overridable" |
230 | 262 | },
|
231 | 263 | "grammarly.config.suggestions.SpacesSurroundingSlash": {
|
232 | 264 | "description": "Suggests removing extra spaces surrounding a slash.",
|
233 | 265 | "type": "boolean",
|
234 |
| - "default": true |
| 266 | + "default": true, |
| 267 | + "scope": "language-overridable" |
235 | 268 | },
|
236 | 269 | "grammarly.config.suggestions.SplitInfinitive": {
|
237 | 270 | "description": "Suggests rewriting split infinitives so that an adverb doesn't come between 'to' and the verb.",
|
238 | 271 | "type": "boolean",
|
239 |
| - "default": true |
| 272 | + "default": true, |
| 273 | + "scope": "language-overridable" |
240 | 274 | },
|
241 | 275 | "grammarly.config.suggestions.StylisticFragments": {
|
242 | 276 | "description": "Suggests completing all incomplete sentences, including stylistic sentence fragments that may be intentional.",
|
243 | 277 | "type": "boolean",
|
244 |
| - "default": false |
| 278 | + "default": false, |
| 279 | + "scope": "language-overridable" |
245 | 280 | },
|
246 | 281 | "grammarly.config.suggestions.UnnecessaryEllipses": {
|
247 | 282 | "description": "Flags unnecessary use of ellipses (...).",
|
248 | 283 | "type": "boolean",
|
249 |
| - "default": false |
| 284 | + "default": false, |
| 285 | + "scope": "language-overridable" |
250 | 286 | },
|
251 | 287 | "grammarly.config.suggestions.Variety": {
|
252 | 288 | "description": "Suggests alternatives to words that occur frequently in the same paragraph.",
|
253 | 289 | "type": "boolean",
|
254 |
| - "default": true |
| 290 | + "default": true, |
| 291 | + "scope": "language-overridable" |
255 | 292 | },
|
256 | 293 | "grammarly.config.suggestions.Vocabulary": {
|
257 | 294 | "description": "Suggests alternatives to bland and overused words such as 'good' and 'nice'.",
|
258 | 295 | "type": "boolean",
|
259 |
| - "default": true |
| 296 | + "default": true, |
| 297 | + "scope": "language-overridable" |
260 | 298 | }
|
261 | 299 | }
|
262 | 300 | },
|
263 | 301 | "commands": [
|
264 | 302 | {
|
265 | 303 | "title": "Check text",
|
266 |
| - "shortTitle": "Check", |
267 | 304 | "category": "Grammarly",
|
268 | 305 | "command": "grammarly.check",
|
269 | 306 | "icon": "$(pass-filled)"
|
| 307 | + }, |
| 308 | + { |
| 309 | + "title": "Log in / Connect your account", |
| 310 | + "category": "Grammarly", |
| 311 | + "command": "grammarly.login", |
| 312 | + "icon": "$(log-in)" |
| 313 | + }, |
| 314 | + { |
| 315 | + "title": "Log out", |
| 316 | + "category": "Grammarly", |
| 317 | + "command": "grammarly.logout", |
| 318 | + "icon": "$(log-out)" |
270 | 319 | }
|
271 | 320 | ]
|
272 | 321 | },
|
|
305 | 354 | "file": "dist/server/index.node.js",
|
306 | 355 | "bundle": {
|
307 | 356 | "platform": "node",
|
| 357 | + "banner": { |
| 358 | + "js": "console.log = console.warn = console.info = console.count = console.group = console.groupEnd = console.groupCollapsed = console.error;" |
| 359 | + }, |
308 | 360 | "conditions": [
|
309 | 361 | "node",
|
310 | 362 | "import"
|
|
320 | 372 | "node:http",
|
321 | 373 | "node:https",
|
322 | 374 | "node:net",
|
| 375 | + "node:os", |
323 | 376 | "node:path",
|
324 | 377 | "node:perf_hooks",
|
325 | 378 | "node:process",
|
|
0 commit comments