You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has never been really obvious to me that this build
is a watch build and you don't need to run rescript -w in a separate terminal anymore.
What would you think of the idea of running this in the vscode extension (instead of the LSP server) and use the TaskProvider instead.
(something along the lines of)
import*asvscodefrom'vscode';exportfunctionactivate(context: vscode.ExtensionContext){letdisposable=vscode.commands.registerCommand('myExtension.runProcessTask',async()=>{// Define the command to run// On Windows, you might need to specify the full path to echo.// For cross-platform compatibility, consider using a nodejs process// or checking the platform. For this example, 'echo' works on most systems.constcommand='echo';constargs=['Hello from VS Code Task (ProcessExecution)!'];// Create the task using ProcessExecutionconsttask=newvscode.Task({type: 'process',task: 'myProcessTask'},// Task definition (type changed to 'process')vscode.TaskScope.Workspace,// Task scope'My Process Task (ProcessExecution)',// Task name'My Extension',// Task sourcenewvscode.ProcessExecution(command,args),// Execution details using ProcessExecution{// Presentation optionsreveal: vscode.TaskRevealKind.Always,panel: vscode.TaskPanelKind.Dedicated,clear: true});// Execute the tasktry{awaitvscode.tasks.executeTask(task);}catch(error: any){vscode.window.showErrorMessage(`Failed to execute task: ${error.message}`);}});context.subscriptions.push(disposable);}exportfunctiondeactivate(){}
The text was updated successfully, but these errors were encountered:
It has never been really obvious to me that this build
is a watch build and you don't need to run
rescript -w
in a separate terminal anymore.What would you think of the idea of running this in the vscode extension (instead of the LSP server) and use the TaskProvider instead.
(something along the lines of)
The text was updated successfully, but these errors were encountered: