Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…de-extension into fix/win
  • Loading branch information
DmytroHryshyn committed Jan 10, 2024
2 parents f88092b + 5d5349d commit 8ce64b1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/engineService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,27 +249,28 @@ export class EngineService {
throw new Error('The engines are not bootstrapped.');
}

return process.platform !== 'win32' ? singleQuotify(this.__codemodEngineNodeExecutableUri.fsPath) : this.__codemodEngineNodeExecutableUri.fsPath;
return process.platform !== 'win32'
? singleQuotify(this.__codemodEngineNodeExecutableUri.fsPath)
: this.__codemodEngineNodeExecutableUri.fsPath;
}

private __getCodemodEngineRustExecutableCommand() {
if (this.__codemodEngineRustExecutableUri === null) {
throw new Error('The engines are not bootstrapped.');
}

return process.platform !== 'win32' ? singleQuotify(this.__codemodEngineRustExecutableUri.fsPath) : this.__codemodEngineRustExecutableUri.fsPath;
return process.platform !== 'win32'
? singleQuotify(this.__codemodEngineRustExecutableUri.fsPath)
: this.__codemodEngineRustExecutableUri.fsPath;
}


public isEngineBootstrapped() {
return this.__codemodEngineNodeExecutableUri !== null;
}

public async syncRegistry(): Promise<void> {


const childProcess = spawn(
this.__getCodemodEngineNodeExecutableCommand(),
this.__getCodemodEngineNodeExecutableCommand(),
['syncRegistry'],
{
stdio: 'pipe',
Expand Down Expand Up @@ -517,7 +518,6 @@ export class EngineService {
async #onExecuteCodemodSetMessage(
message: Message & { kind: MessageKind.executeCodemodSet },
) {

if (this.#execution) {
if (message.command.kind === 'executeCodemod') {
this.__executionMessageQueue.push(
Expand Down

0 comments on commit 8ce64b1

Please sign in to comment.