fix: WebIDE code suggestions respect policies
Description
This issue changes code suggestions in WebIDE to respect state policies (most importantly the policy that disables suggestions if Duo Features are disabled for the project)
Related Issues
Resolves #1369 (closed)
How has this been tested?
- checkout WebIDE
- change the
gitlab-vscode-extension
submodule to point to theHEAD
of this MR (cd giltab-vscode-extension && git checkout tv/2024-05/web-ide-resepcts-state-manager
) - run
yarn run start:example
- use your token to log in and open https://gitlab.com/viktomas/test-project/
- see that you don't get code suggestions
Screenshots (if appropriate)
What CHANGELOG entry will this MR create?
-
fix:
Bug fix fixes - a user-facing issue in production - included in changelog -
feature:
New feature - a user-facing change which adds functionality - included in changelog -
BREAKING CHANGE:
(fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog -
None - other non-user-facing changes
Edited by Tomas Vik