Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample request: Using onDidChangeWorkspaceFolders #36

Closed
glen-84 opened this issue Oct 29, 2017 · 2 comments
Closed

Sample request: Using onDidChangeWorkspaceFolders #36

glen-84 opened this issue Oct 29, 2017 · 2 comments
Assignees

Comments

@glen-84
Copy link

glen-84 commented Oct 29, 2017

I'm trying to subscribe to onDidChangeWorkspaceFolders in the server part of my extension.

I changed:

const connection: IConnection = createConnection(new IPCMessageReader(process), new IPCMessageWriter(process));

To:

const connection = createConnection(ProposedFeatures.all);

To get access to connection.workspace.onDidChangeWorkspaceFolders. I have no idea if that should be done.

Now, when I run the extension, I get:

Error: Client doesn't support sending workspace folder change events.

I have no idea how to fix this. I can't find any relevant samples either.

@bpasero
Copy link
Member

bpasero commented Oct 30, 2017

@dbaeumer this sounds like language-server related, so moving to you.

@dbaeumer
Copy link
Member

@glen-84 I have updated the example lsp-multi-root-sample to demo this. Have a look at the initialized hook in the server.ts file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants