Skip to content

Support multi-root workspace#22

Merged
jakob101 merged 3 commits intodawsbot:masterfrom
rrag:feat/support-multi-root-workspace
Jan 23, 2018
Merged

Support multi-root workspace#22
jakob101 merged 3 commits intodawsbot:masterfrom
rrag:feat/support-multi-root-workspace

Conversation

@rrag
Copy link
Copy Markdown
Contributor

@rrag rrag commented Dec 17, 2017

  1. Upgrade to vscode 1.1.10 to get the getWorkspaceFolder api
  2. On change of tab refresh the files cache if workspace folder changes
  3. Show info message when using plugin when workspacePath is null

1. Upgrade to vscode 1.1.10 to get the `getWorkspaceFolder` api
2. On change of tab refresh the files cache if workspace folder changes
3. Show info message when using plugin when workspacePath is null
src/extension.ts Outdated
// Watch for file system changes - as we're caching the searched files
this._watcher = workspace.createFileSystemWatcher("**/*.*", false, true, false);

// this._watcher.onDidChange()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this


// on change active text editor refresh the cache
// if the workspace folder has changed
window.onDidChangeActiveTextEditor((e: TextEditor) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How often does this happen? On every open/view of a file?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter, I see.

@jakob101
Copy link
Copy Markdown
Collaborator

Looks okay to me, please remove the comment and we're good to go!
image

@iambrandonn
Copy link
Copy Markdown

@rrag are you still interested in finishing this?

@rrag
Copy link
Copy Markdown
Contributor Author

rrag commented Jan 23, 2018

Sorry for the delay, I forgot about this. I am pushing up the change in a min

@rrag
Copy link
Copy Markdown
Contributor Author

rrag commented Jan 23, 2018

Done. @jakob101 sorry for the delay again. Please review and merge

@jakob101 jakob101 merged commit f32be95 into dawsbot:master Jan 23, 2018
@jakob101
Copy link
Copy Markdown
Collaborator

No worries. Thanks! 👍 👍

@iambrandonn
Copy link
Copy Markdown

Can this be published as a new version, or is it still being tested?

@jakob101
Copy link
Copy Markdown
Collaborator

jakob101 commented Jan 26, 2018 via email

@jakob101
Copy link
Copy Markdown
Collaborator

Done! Thanks folks!

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

Successfully merging this pull request may close these issues.

3 participants