# Make restricted mode more obvious \(\#57056\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ec9ba5f069f415713a2f2e3e8550c28479678dba)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ec9ba5f069f415713a2f2e3e8550c28479678dba

Requested commit: ec9ba5f069f415713a2f2e3e8550c28479678dba

Commit: ec9ba5f069f415713a2f2e3e8550c28479678dba

Tree: fea85deda85462da72f4dff414837209a1a00c22

Author: Danilo Leal

Committer: GitHub

## Message

```
Make restricted mode more obvious (#57056)

Closes TRA-150

This PR makes the restricted mode more obvious by:

- Immediately opening the restricted mode modal upon opening an
untrusted project
- Disabling dismissing the modal on escape or click away to force
choosing one of the two options (and avoid accidentally staying in
restricted mode by simply dismissing it)
- Showing the LSP button but with communication about language servers
being disabled for untrusted projects
- Showing a banner in the project settings with the same communication

The motivation for this change was that we tried to be minimal with how
we communicate a project is untrusted, but it was so minimal that people
were confused as to why language servers and other settings weren't
working. It was easy to miss the title bar button, for some reason. The
changes in this PR makes it so acting on this decision (trust or not a
project) is mandatory in order to even start to interact with the
project. I appreciate changes here are more aggressive, but I think it's
better to make you think about this decision vs. letting you be confused
as to why you don't see LS completions or formatting.

Release Notes:

- Made restricted mode more obvious, demanding immediate action when
opening an untrusted project.
```

## Parents

- [ea01b926ea4925cccef09f77235c350d1cdc6791](https://git.cafe/gitcafe/zed/commit/ea01b926ea4925cccef09f77235c350d1cdc6791?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ec9ba5f069f415713a2f2e3e8550c28479678dba?format=markdown)
