Skip to content

Commit

Permalink
HOTFIX: run program command
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Jan 30, 2025
1 parent a0a95e1 commit 798bf17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const subscribeWollokCommands = (context: ExtensionContext): void => {
* CLI Commands
*/

export const runProgram = (isGame = false) => (fqn: string): Task => {
export const runProgram = (isGame = false) => ([fqn]: [string]): Task => {
const wollokLSPConfiguration = workspace.getConfiguration(wollokLSPExtensionCode)
const portNumber = wollokLSPConfiguration.get('gamePortNumber') as number ?? DEFAULT_GAME_PORT

Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/test/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ suite('Should run commands', () => {
test('run program', () =>
testCommand(
pepitaURI,
() => runProgram()('file.program'),
() => runProgram()(['file.program']),
[
'run',
quoted('file.program'),
Expand All @@ -45,7 +45,7 @@ suite('Should run commands', () => {
test('run game', () =>
testCommand(
pepitaURI,
() => runProgram(true)('file.program'),
() => runProgram(true)(['file.program']),
[
'run',
'-g',
Expand Down Expand Up @@ -127,7 +127,7 @@ suite('Should run commands', () => {
configuration['verbose'] = true
return testCommand(
pepitaURI,
() => runProgram()('file.program'),
() => runProgram()(['file.program']),
[
'run',
quoted('file.program'),
Expand Down
4 changes: 2 additions & 2 deletions packages/debug-adapter/src/test/debug-adapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ describe('debug adapter', function () {
}).then(async () => {
await Promise.all([
dc.assertOutput('stderr', "My exception message", 3000),
dc.waitForEvent('terminated', 2000)
dc.waitForEvent('terminated', 2000),
])
resolve("Finished")
})
Expand All @@ -202,7 +202,7 @@ describe('debug adapter', function () {
}).then(async () => {
await Promise.all([
dc.assertOutput('stdout', "Finished executing without errors", 1000),
dc.waitForEvent('terminated', 1000)
dc.waitForEvent('terminated', 1000),
])
resolve("Finished")
})
Expand Down

0 comments on commit 798bf17

Please sign in to comment.