Skip to content
This repository was archived by the owner on Jul 30, 2022. It is now read-only.

Conversation

yorkxin
Copy link
Owner

@yorkxin yorkxin commented Jun 30, 2018

Support global symbols searching

Bugs to fix in the next version

  • Git ignored files are included in SymbolIndex
  • Performance issue - High CPU load when indexing lots of files (1 minute load average over 300)

Further improvements

  • Searching for symbols should include JavaScript files

Checklist

  • client/CHANGELOG.md
  • Set version to 0.2.0
"coffeescript": "^2.1.0",
"vscode-languageserver": "^3.4.2"
"coffeescript-symbols": "file:../coffeescript-symbols",
"coffeescript-symbol-index": "file:../coffeescript-symbol-index",
Copy link
Owner Author

Choose a reason for hiding this comment

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

Problem: these packages won't be npm install'd during npm run compile.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Even if unit test passes, the built vsix won't run due to lack of these packages.

Publishing them to NPM could solve the problem, but that's overkill.

@yorkxin yorkxin force-pushed the workspace-symbols branch from 0abcfa3 to b73da6c Compare August 26, 2018 08:13
@yorkxin yorkxin changed the title [WIP] Support Workspace symbols Support Workspace symbols Aug 26, 2018
@yorkxin
Copy link
Owner Author

yorkxin commented Aug 30, 2018

High CPU load problem still exists. Last time it crashed my MBP 2017.

if (change.type === FileChangeType.Deleted) {
indexService.removeFiles([change.uri]);
} else if (change.type === FileChangeType.Changed || change.type === FileChangeType.Created) {
indexService.indexFilesInBackground([change.uri]);
Copy link
Owner Author

Choose a reason for hiding this comment

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

I think this is causing fork bomb when git checkout between branches that has lots changes 💣

Copy link
Owner Author

Choose a reason for hiding this comment

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

Solved by deamonizing the indexer process.

@yorkxin yorkxin merged commit c413bb8 into master Sep 4, 2018
@yorkxin yorkxin deleted the workspace-symbols branch September 4, 2018 13:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants