fix: sentence case and onunload promise in main.ts
This commit is contained in:
@@ -42,7 +42,7 @@ export default class MCPServerPlugin extends Plugin {
|
|||||||
this.updateStatusBar();
|
this.updateStatusBar();
|
||||||
|
|
||||||
// Add ribbon icon to toggle server
|
// Add ribbon icon to toggle server
|
||||||
this.addRibbonIcon('server', 'Toggle MCP Server', async () => {
|
this.addRibbonIcon('server', 'Toggle MCP server', async () => {
|
||||||
if (this.mcpServer?.isRunning()) {
|
if (this.mcpServer?.isRunning()) {
|
||||||
await this.stopServer();
|
await this.stopServer();
|
||||||
} else {
|
} else {
|
||||||
@@ -93,8 +93,8 @@ export default class MCPServerPlugin extends Plugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async onunload() {
|
onunload() {
|
||||||
await this.stopServer();
|
void this.stopServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
async startServer() {
|
async startServer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user