Using vscode with SWI-Prolog

I’m using: SWI-Prolog version 9.2.6 threaded, 64bit on Windows 11.

I want use vscode as my Prolog editor:

After install I could create and edit Prolog files, and test under swipl on the vscode integrated terminal.

The problem is that the SWI-Prolog windows console keeps launching over the top of vscode repeatedly.

So I modified the init.pl file predicate normally set to :- set_prolog_flag(editor, pce_emacs) to

:- set_prolog_flag(unknown, fail). and also tried :- set_prolog_flag(editor, vscode).

But what I’m getting is:

Warning: c:/users/kpurn/appdata/roaming/swi-prolog/init.pl:52:
Warning: Using a non-error value for unknown in the global module
Warning: causes most of the development environment to stop working.
Warning: Please use :- dynamic or limit usage of unknown to a module.
Warning: See How to deal with the Prolog dynamic database?
Welcome to SWI-Prolog (threaded, 64 bits, version 9.2.6)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.

What settings are required to inhibit the launch of the SWI-Prolog windows console?

Regards
Kevin