Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit c12189d

Browse files
support for connected accounts
1 parent 180c2a8 commit c12189d

26 files changed

+554
-114
lines changed

extension/package.json

Lines changed: 88 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
],
2727
"activationEvents": [
2828
"onCommand:grammarly.check",
29+
"onCommand:grammarly.login",
30+
"onCommand:grammarly.logout",
2931
"onLanguage:plaintext",
3032
"onLanguage:markdown",
3133
"onLanguage:html"
@@ -45,7 +47,9 @@
4547
"**/README.md",
4648
"**/*.txt"
4749
],
48-
"required": true
50+
"required": true,
51+
"scope": "window",
52+
"order": 0
4953
},
5054
"grammarly.selectors": {
5155
"type": "array",
@@ -68,7 +72,9 @@
6872
}
6973
},
7074
"default": [],
71-
"required": true
75+
"required": true,
76+
"scope": "window",
77+
"order": 1
7278
},
7379
"grammarly.config.documentDialect": {
7480
"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,7 +92,8 @@
8692
"",
8793
"An appropriate value based on the text."
8894
],
89-
"default": "auto-text"
95+
"default": "auto-text",
96+
"scope": "language-overridable"
9097
},
9198
"grammarly.config.documentDomain": {
9299
"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,167 +113,209 @@
106113
"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.",
107114
"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."
108115
],
109-
"default": "general"
116+
"default": "general",
117+
"scope": "language-overridable"
110118
},
111119
"grammarly.config.suggestions.ConjunctionAtStartOfSentence": {
112120
"description": "Flags use of conjunctions such as 'but' and 'and' at the beginning of sentences.",
113121
"type": "boolean",
114-
"default": false
122+
"default": false,
123+
"scope": "language-overridable"
115124
},
116125
"grammarly.config.suggestions.Fluency": {
117126
"description": "Suggests ways to sound more natural and fluent.",
118127
"type": "boolean",
119-
"default": true
128+
"default": true,
129+
"scope": "language-overridable"
120130
},
121131
"grammarly.config.suggestions.InformalPronounsAcademic": {
122132
"description": "Flags use of personal pronouns such as 'I' and 'you' in academic writing.",
123133
"type": "boolean",
124-
"default": false
134+
"default": false,
135+
"scope": "language-overridable"
125136
},
126137
"grammarly.config.suggestions.MissingSpaces": {
127138
"description": "Suggests adding missing spacing after a numeral when writing times.",
128139
"type": "boolean",
129-
"default": true
140+
"default": true,
141+
"scope": "language-overridable"
130142
},
131143
"grammarly.config.suggestions.NounStrings": {
132144
"description": "Flags a series of nouns that modify a final noun.",
133145
"type": "boolean",
134-
"default": true
146+
"default": true,
147+
"scope": "language-overridable"
135148
},
136149
"grammarly.config.suggestions.NumbersBeginningSentences": {
137150
"description": "Suggests spelling out numbers at the beginning of sentences.",
138151
"type": "boolean",
139-
"default": true
152+
"default": true,
153+
"scope": "language-overridable"
140154
},
141155
"grammarly.config.suggestions.NumbersZeroThroughTen": {
142156
"description": "Suggests spelling out numbers zero through ten.",
143157
"type": "boolean",
144-
"default": true
158+
"default": true,
159+
"scope": "language-overridable"
145160
},
146161
"grammarly.config.suggestions.OxfordComma": {
147162
"description": "Suggests adding the Oxford comma after the second-to-last item in a list of things.",
148163
"type": "boolean",
149-
"default": false
164+
"default": false,
165+
"scope": "language-overridable"
150166
},
151167
"grammarly.config.suggestions.PassiveVoice": {
152168
"description": "Flags use of passive voice.",
153169
"type": "boolean",
154-
"default": false
170+
"default": false,
171+
"scope": "language-overridable"
155172
},
156173
"grammarly.config.suggestions.PersonFirstLanguage": {
157174
"description": "Suggests using person-first language to refer respectfully to an individual with a disability.",
158175
"type": "boolean",
159-
"default": true
176+
"default": true,
177+
"scope": "language-overridable"
160178
},
161179
"grammarly.config.suggestions.PossiblyBiasedLanguageAgeRelated": {
162180
"description": "Suggests alternatives to potentially biased language related to older adults.",
163181
"type": "boolean",
164-
"default": true
182+
"default": true,
183+
"scope": "language-overridable"
165184
},
166185
"grammarly.config.suggestions.PossiblyBiasedLanguageDisabilityRelated": {
167186
"description": "Suggests alternatives to potentially ableist language.",
168187
"type": "boolean",
169-
"default": true
188+
"default": true,
189+
"scope": "language-overridable"
170190
},
171191
"grammarly.config.suggestions.PossiblyBiasedLanguageFamilyRelated": {
172192
"description": "Suggests alternatives to potentially biased language related to parenting and family systems.",
173193
"type": "boolean",
174-
"default": true
194+
"default": true,
195+
"scope": "language-overridable"
175196
},
176197
"grammarly.config.suggestions.PossiblyBiasedLanguageGenderRelated": {
177198
"description": "Suggests alternatives to potentially gender-biased and non-inclusive phrasing.",
178199
"type": "boolean",
179-
"default": true
200+
"default": true,
201+
"scope": "language-overridable"
180202
},
181203
"grammarly.config.suggestions.PossiblyBiasedLanguageHumanRights": {
182204
"description": "Suggests alternatives to language related to human slavery.",
183205
"type": "boolean",
184-
"default": true
206+
"default": true,
207+
"scope": "language-overridable"
185208
},
186209
"grammarly.config.suggestions.PossiblyBiasedLanguageHumanRightsRelated": {
187210
"description": "Suggests alternatives to terms with origins in the institution of slavery.",
188211
"type": "boolean",
189-
"default": true
212+
"default": true,
213+
"scope": "language-overridable"
190214
},
191215
"grammarly.config.suggestions.PossiblyBiasedLanguageLgbtqiaRelated": {
192216
"description": "Flags LGBTQIA+-related terms that may be seen as biased, outdated, or disrespectful in some contexts.",
193217
"type": "boolean",
194-
"default": true
218+
"default": true,
219+
"scope": "language-overridable"
195220
},
196221
"grammarly.config.suggestions.PossiblyBiasedLanguageRaceEthnicityRelated": {
197222
"description": "Suggests alternatives to potentially biased language related to race and ethnicity.",
198223
"type": "boolean",
199-
"default": true
224+
"default": true,
225+
"scope": "language-overridable"
200226
},
201227
"grammarly.config.suggestions.PossiblyPoliticallyIncorrectLanguage": {
202228
"description": "Suggests alternatives to language that may be considered politically incorrect.",
203229
"type": "boolean",
204-
"default": true
230+
"default": true,
231+
"scope": "language-overridable"
205232
},
206233
"grammarly.config.suggestions.PrepositionAtTheEndOfSentence": {
207234
"description": "Flags use of prepositions such as 'with' and 'in' at the end of sentences.",
208235
"type": "boolean",
209-
"default": false
236+
"default": false,
237+
"scope": "language-overridable"
210238
},
211239
"grammarly.config.suggestions.PunctuationWithQuotation": {
212240
"description": "Suggests placing punctuation before closing quotation marks.",
213241
"type": "boolean",
214-
"default": true
242+
"default": true,
243+
"scope": "language-overridable"
215244
},
216245
"grammarly.config.suggestions.ReadabilityFillerwords": {
217246
"description": "Flags long, complicated sentences that could potentially confuse your reader.",
218247
"type": "boolean",
219-
"default": true
248+
"default": true,
249+
"scope": "language-overridable"
220250
},
221251
"grammarly.config.suggestions.ReadabilityTransforms": {
222252
"description": "Suggests splitting long, complicated sentences that could potentially confuse your reader.",
223253
"type": "boolean",
224-
"default": true
254+
"default": true,
255+
"scope": "language-overridable"
225256
},
226257
"grammarly.config.suggestions.SentenceVariety": {
227258
"description": "Flags series of sentences that follow the same pattern.",
228259
"type": "boolean",
229-
"default": true
260+
"default": true,
261+
"scope": "language-overridable"
230262
},
231263
"grammarly.config.suggestions.SpacesSurroundingSlash": {
232264
"description": "Suggests removing extra spaces surrounding a slash.",
233265
"type": "boolean",
234-
"default": true
266+
"default": true,
267+
"scope": "language-overridable"
235268
},
236269
"grammarly.config.suggestions.SplitInfinitive": {
237270
"description": "Suggests rewriting split infinitives so that an adverb doesn't come between 'to' and the verb.",
238271
"type": "boolean",
239-
"default": true
272+
"default": true,
273+
"scope": "language-overridable"
240274
},
241275
"grammarly.config.suggestions.StylisticFragments": {
242276
"description": "Suggests completing all incomplete sentences, including stylistic sentence fragments that may be intentional.",
243277
"type": "boolean",
244-
"default": false
278+
"default": false,
279+
"scope": "language-overridable"
245280
},
246281
"grammarly.config.suggestions.UnnecessaryEllipses": {
247282
"description": "Flags unnecessary use of ellipses (...).",
248283
"type": "boolean",
249-
"default": false
284+
"default": false,
285+
"scope": "language-overridable"
250286
},
251287
"grammarly.config.suggestions.Variety": {
252288
"description": "Suggests alternatives to words that occur frequently in the same paragraph.",
253289
"type": "boolean",
254-
"default": true
290+
"default": true,
291+
"scope": "language-overridable"
255292
},
256293
"grammarly.config.suggestions.Vocabulary": {
257294
"description": "Suggests alternatives to bland and overused words such as 'good' and 'nice'.",
258295
"type": "boolean",
259-
"default": true
296+
"default": true,
297+
"scope": "language-overridable"
260298
}
261299
}
262300
},
263301
"commands": [
264302
{
265303
"title": "Check text",
266-
"shortTitle": "Check",
267304
"category": "Grammarly",
268305
"command": "grammarly.check",
269306
"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)"
270319
}
271320
]
272321
},
@@ -305,6 +354,9 @@
305354
"file": "dist/server/index.node.js",
306355
"bundle": {
307356
"platform": "node",
357+
"banner": {
358+
"js": "console.log = console.warn = console.info = console.count = console.group = console.groupEnd = console.groupCollapsed = console.error;"
359+
},
308360
"conditions": [
309361
"node",
310362
"import"
@@ -320,6 +372,7 @@
320372
"node:http",
321373
"node:https",
322374
"node:net",
375+
"node:os",
323376
"node:path",
324377
"node:perf_hooks",
325378
"node:process",

0 commit comments

Comments
 (0)