Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Nok Lam Chan <[email protected]>
  • Loading branch information
noklam committed Aug 14, 2024
1 parent 5990cdf commit 911879d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ def definition_from_flowchart(ls, word):
It will `block` the main thread, which can be tested by trying to show
completion items.
"""
result = definition(LSP_SERVER, params=None, word="companies")
word = word[0]
result = definition(LSP_SERVER, params=None, word=word)
return result

### End of kedro-lsp
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Kedro",
"displayName": "Kedro",
"description": "A Kedro VSCode Extension.",
"version": "0.1.0",
"version": "0.2.0-rc0",
"preview": false,
"serverInfo": {
"name": "Kedro",
Expand Down
10 changes: 7 additions & 3 deletions src/common/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ export async function executeServerDefinitionCommand(lsClient: LanguageClient |
}

const commandName = 'kedro.goToDefinitionFromFlowchart';

const target = await window.showInputBox({
placeHolder: 'Type the name of the dataset/parameters, i.e. companies',
});
logger.info(`executing command: '${commandName}'`);

const result: any[] | undefined = await vscode.commands.executeCommand(
commandName /* if your command accepts arguments you can pass them here */,
commandName,
/* if your command accepts arguments you can pass them here */
target
);
logger.info(`${commandName} result: ${JSON.stringify(result, undefined, 2)}`);
if (result && result.length > 0) {
Expand All @@ -90,7 +94,7 @@ export async function executeServerDefinitionCommand(lsClient: LanguageClient |
}
);

}
}



Expand Down

0 comments on commit 911879d

Please sign in to comment.