Enhancement: Start local server from extension #178

Closed
opened 2026-10-05 02:31:49 +02:00 by adam · 5 comments
Owner

Add the functionality to start the local server from the extension:

  • Known server command or custom commands
Add the functionality to start the local server from the extension: - Known server command or custom commands <!-- github-sync-id:1103400011 -->
adam closed this issue 2026-10-05 02:31:49 +02:00
Author
Owner

image

![image](https://user-images.githubusercontent.com/2900833/150100511-9090edf1-151f-40be-b89f-f4411c1d1dbc.png) <!-- github-comment-id:1016234825 -->
Author
Owner

What directory will this command run in?

What directory will this command run in? <!-- github-comment-id:1016660080 -->
Author
Owner

It will open a terminal at the given project location. If it needs to run somewhere else, you'll have to update the command. For instance, you should be able to use: cd ./folder && hugo server -D.

It will open a terminal at the given project location. If it needs to run somewhere else, you'll have to update the command. For instance, you should be able to use: `cd ./folder && hugo server -D`. <!-- github-comment-id:1016710103 -->
Author
Owner

The button works and launches the local dev based on the "Local server command".

The only issue I see is that it seems to state the command twice and then actually executes it in the terminal. See the screenshot below.

image

The button works and launches the local dev based on the "Local server command". The only issue I see is that it seems to state the command twice and then actually executes it in the terminal. See the screenshot below. ![image](https://user-images.githubusercontent.com/12104446/150407501-3ec310c6-e7b2-430f-a139-c8bd451ab4b6.png) <!-- github-comment-id:1017842804 -->
Author
Owner

It is just a message, not the actual command. I'll change this to only mention it will start the local server.

It is just a message, not the actual command. I'll change this to only mention it will start the local server. <!-- github-comment-id:1018483726 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#178