sapling/addons
Evan Krause 15299d95cc Fix subscriptions not getting disposed on connection close
Summary:
I noticed a bug where closing ISL and re-opening it would cause the vscode extension to no longer report uncommitted changes. There was a "webview is disposed" error in the console too.

Looks like this was an error introduced by adding more complex subscriptions. We just need to dispose those subscriptions when disposing the entire connection. This connection disposal happens when the webview is closed. Re-opening causes an error to be thrown in the repo code path, so it never sent the message back to the new server, even though non-subscription messages make it through just fine.

Reviewed By: muirdm

Differential Revision: D44693737

fbshipit-source-id: 27a0330f7f9a52bd1a4b8b7d53fe1017814c5e7a
2023-04-05 11:57:06 -07:00
..
.tours Add code tours 2023-02-06 10:02:35 -08:00
.vscode Support debugging the isl server in vscode 2023-02-02 10:23:33 -08:00
eslint-rules Re-sync with internal repository 2022-11-15 00:48:09 -08:00
isl Allow more aggressive text wrapping in tooltips 2023-04-05 11:55:51 -07:00
isl-server Fix subscriptions not getting disposed on connection close 2023-04-05 11:57:06 -07:00
isl-standalone Standalone Tauri app 2023-03-16 11:34:35 -07:00
reviewstack introduce tokenizeLines() API 2023-04-05 00:27:17 -07:00
reviewstack.dev reviewstack: include the screencast on the home page 2022-12-20 12:36:37 -08:00
shared Fix line numbers wrapping in comparison view 2023-04-03 13:17:57 -07:00
textmate do not hardcode definition of fetchGrammar() in TextMateGrammarManifest.ts 2023-03-30 10:23:31 -07:00
vscode VS Code extension 0.1.11 2023-03-24 10:22:40 -07:00
.eslintrc.js Fix vscode build script 2023-02-27 18:14:32 -08:00
.gitignore isl: ignore shared/coverage folder 2023-02-03 15:43:52 -08:00
.prettierignore Standalone Tauri app 2023-03-16 11:34:35 -07:00
.prettierrc Re-sync with internal repository 2022-11-15 00:48:09 -08:00
LICENSE Re-sync with internal repository 2022-11-15 00:48:09 -08:00
package.json Standalone Tauri app 2023-03-16 11:34:35 -07:00
removeInternalFiles.sh Script to remove internal files 2023-02-06 15:13:28 -08:00
verify-addons-folder.py Re-sync with internal repository 2022-11-15 00:48:09 -08:00
yarn.lock Standalone Tauri app 2023-03-16 11:34:35 -07:00