Page 1 of 1
[SOLVED] VSCODE: Add autocomplete
Published: April 18, 2024 - 11:04 AM
by t.heroult
Hello
, I'm trying to use VS Code instead of PyScripter. I've installed the vscode, vscode-python, vscode-config, and waptdev-package-tools packages...
Despite this, I'm not getting autocompletion with WAPT's built-in functions.
Could you please tell me what to do?
Thanks in advance,
Tom
Re: VSCODE: Adding autocomplete
Published: April 18, 2024 - 12:27 PM
by jpele
Hello,
Could you try running "wapt-get session-setup tis-vscode-python -f" and then restarting VS Code with "wapt-get edit folder_path"?
Regards,
Jimmy
Re: VSCODE: Adding autocomplete
Published: April 18, 2024 - 1:01 PM
by t.heroult
Thanks, it worked.
What does "-f" mean? The session-setup seemed to have gone through normally, I even rebooted the computer.
Re: VSCODE: Adding autocomplete
Published: April 18, 2024 - 2:12 PM
by jpele
Great! This is to force executions; this option can be used with most wapt commands.
Re: VSCODE: Adding autocomplete
Published: April 18, 2024 - 3:02 PM
by t.heroult
OK thanks

Re: [SOLVED] VSCODE: Add autocomplete
Published: April 18, 2024 - 3:55 PM
by dcardon
Hi Thomas,
to add to the answer

:
for each package version, `session_setup` runs once for each user session. There's a SQLite database in the user session that keeps a history of `session_setup` executions.
If `session_setup` has already run and, for some reason, didn't do what it should (for example, VS Code hadn't been installed yet and therefore wasn't configured), you can force it with the `-f` parameter
. Regards,
Denis