-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The concept of command is more attached to the client, the server will just 'serve' a request from the client.
- Loading branch information
Showing
4 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
server/src/commands/common.ts → server/src/services/common.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { ServerContext } from "../languageTypes"; | ||
import { GalaxyWorkflowLanguageServer } from "../server"; | ||
|
||
export abstract class CustomCommand extends ServerContext { | ||
export abstract class ServiceBase extends ServerContext { | ||
constructor(server: GalaxyWorkflowLanguageServer) { | ||
super(server); | ||
this.listenToRequests(); | ||
} | ||
|
||
/** | ||
* This method should call `this.connection.onRequest` to register | ||
* the proper callback for this command request. | ||
* the proper callback for this service request. | ||
*/ | ||
protected abstract listenToRequests(): void; | ||
} |
File renamed without changes.