Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/plugins/console/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ export class ConsoleServerPlugin implements Plugin<ConsoleSetup, ConsoleStart> {
}

start() {
return {
...this.specDefinitionsService.start(),
};
this.specDefinitionsService.start();
}

stop() {
Expand Down
12 changes: 0 additions & 12 deletions src/plugins/console/server/services/spec_definitions_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,6 @@ export class SpecDefinitionsService {
this.extensionSpecFilePaths.push(path);
}

public addProcessorDefinition(processor: unknown) {
if (!this.hasLoadedSpec) {
throw new Error(
'Cannot add a processor definition because spec definitions have not loaded!'
);
}
this.endpoints._processor!.data_autocomplete_rules.__one_of.push(processor);
}

public setup() {
return {
addExtensionSpecFilePath: this.addExtensionSpecFilePath.bind(this),
Expand All @@ -107,9 +98,6 @@ export class SpecDefinitionsService {
this.loadJsonSpec();
this.loadJSSpec();
this.hasLoadedSpec = true;
return {
addProcessorDefinition: this.addProcessorDefinition.bind(this),
};
} else {
throw new Error('Service has already started!');
}
Expand Down