Skip to content

Read Only workspace #7045

Answered by code-asher
M1hono asked this question in Q&A
Discussion options

You must be logged in to vote

You could maybe try making the files read-only on the disk, but I am not aware of a read-only mode for code-server itself. It might be possible by implementing your own file provider? I think this is how the live share extension does it, so you might check that for inspiration.

As for the redirect, you might be able to check the current workspace and then open a new one using an extension (commands.executeCommand("vscode.openFolder", uri)).

None of this is specific to code-server, so you might find better answers upstream with VS Code itself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by M1hono
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants