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

Commit

Permalink
Connect your Grammarly account (#240)
Browse files Browse the repository at this point in the history
* Support web extension

* support for connected accounts

* keep code fixes in order

* set config when preferences change

* Update SDK

* load browser SDK

Co-authored-by: Rahul Kadyan <rahul.kadyan@grammarly.com>
  • Loading branch information
znck and znck committed May 10, 2022
1 parent 084e2aa commit a30aa93
Show file tree
Hide file tree
Showing 45 changed files with 2,009 additions and 442 deletions.
7 changes: 7 additions & 0 deletions .changeset/nice-files-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'grammarly': patch
'grammarly-languageclient': patch
'grammarly-languageserver': patch
---

Support for connected Grammarly account
37 changes: 12 additions & 25 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,7 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"compounds": [
{
"name": "Debug Extension",
"configurations": ["Run Extension", "Attach to TS Server"]
}
],
"configurations": [
{
"name": "Attach to TS Server",
"type": "node",
"request": "attach",
"protocol": "inspector",
"port": 6009,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/out/*.js"]
},

{
"name": "Run Extension",
"type": "extensionHost",
Expand All @@ -34,22 +18,25 @@
"--extensionDevelopmentPath=${workspaceFolder}/extension",
"${workspaceFolder}/fixtures"
],
"outFiles": ["${workspaceFolder}/extension/dist/*.js"]
"outFiles": ["${workspaceFolder}/extension/dist/*.js"],
"sourceMaps": false
},
{
"name": "Extension Tests",
"type": "extensionHost",
"name": "Run Web Extension",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"runtimeExecutable": "${execPath}",
"env": {
"DEBUG": "grammarly:*"
},
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out-test/runner",
"--user-data-dir='${workspaceFolder}/fixtures/user'",
"${workspaceFolder}/fixtures/folder"
"--extensionDevelopmentPath=${workspaceFolder}/extension",
"--extensionDevelopmentKind=web",
"${workspaceFolder}/fixtures"
],
"outFiles": ["${workspaceFolder}/out-test/**/*.js", "${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "npm: build:test"
"outFiles": ["${workspaceFolder}/extension/dist/*.js"]
}
]
}
Loading

0 comments on commit a30aa93

Please sign in to comment.