Improve performance of language detection (#130006)

* initial move to worker

* move event handling to the untitledTextEditorModel

* reuse simpleWorker interfaces and classes

* use correct path to languageDetection

* have vscode-languagedetection be outside of the asar

* add telemetry

* don't unpackage anything from languagedetection because it's not needed

* add an integration test

* some of Ben's feedback

* rework worker code to avoid duplication

* add isDisposed check

* fix test

* Isi and Ben feedback part 2

* use RunOnceScheduler instead and try to fix the test using events

* Ben feedback part 3

* bump distro
This commit is contained in:
Tyler James Leonhardt
2021-08-06 11:56:14 -07:00
committed by GitHub
parent 3d9899db8e
commit cfcda1c048
16 changed files with 541 additions and 213 deletions

View File

@@ -5,5 +5,6 @@
"files.exclude": {
"**/files-exclude/**": true
},
"editor.minimap.enabled": false // see https://github.com/microsoft/vscode/issues/115747
"editor.minimap.enabled": false, // see https://github.com/microsoft/vscode/issues/115747
"workbench.editor.untitled.experimentalLanguageDetection": true
}