@codingame/monaco-vscode-speech-service-override 9.0.3 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-speech-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/speech.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
2
|
import { ISpeechService } from 'vscode/vscode/vs/workbench/contrib/speech/common/speechService.service';
|
|
3
3
|
import { SpeechService } from './vscode/src/vs/workbench/contrib/speech/browser/speechService.js';
|
|
4
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
5
4
|
|
|
6
5
|
function getServiceOverride() {
|
|
7
6
|
return {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { firstOrDefault } from 'vscode/vscode/vs/base/common/arrays';
|
|
4
3
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
5
4
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
6
5
|
import { Disposable, toDisposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -17,7 +16,7 @@ import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extension
|
|
|
17
16
|
const speechProvidersExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
18
17
|
extensionPoint: 'speechProviders',
|
|
19
18
|
jsonSchema: {
|
|
20
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(2917, 'Contributes a Speech Provider')),
|
|
21
20
|
type: 'array',
|
|
22
21
|
items: {
|
|
23
22
|
additionalProperties: false,
|
|
@@ -26,11 +25,11 @@ const speechProvidersExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
26
25
|
required: ['name'],
|
|
27
26
|
properties: {
|
|
28
27
|
name: {
|
|
29
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(2918, "Unique name for this Speech Provider.")),
|
|
30
29
|
type: 'string'
|
|
31
30
|
},
|
|
32
31
|
description: {
|
|
33
|
-
description: ( localize(
|
|
32
|
+
description: ( localize(2919, "A description of this Speech Provider, shown in the UI.")),
|
|
34
33
|
type: 'string'
|
|
35
34
|
}
|
|
36
35
|
}
|
|
@@ -168,7 +167,7 @@ let SpeechService = class SpeechService extends Disposable {
|
|
|
168
167
|
}
|
|
169
168
|
async getProvider() {
|
|
170
169
|
await this.extensionService.activateByEvent('onSpeech');
|
|
171
|
-
const provider =
|
|
170
|
+
const provider = Array.from(( (this.providers.values()))).at(0);
|
|
172
171
|
if (!provider) {
|
|
173
172
|
throw ( (new Error(`No Speech provider is registered.`)));
|
|
174
173
|
}
|