Skip to content

Microsoft.VSCode.CPP.Extension.darwin high CPU usage #1816

@antnsi

Description

@antnsi

screen shot 2018-04-10 at 21 57 16

Configuration:

  • macOS 10.12.6
  • VS code 1.22.1
  • plugin 0.16.1

DB icon says "Discovering files: xxxx". VS Code console is full of such logs below. Seems it's constantly scanning some Frameworks folders, but why it takes so much resources?

IntelliSense Engine = Tag Parser.
The extension will use the Tag Parser for IntelliSense when #includes don't resolve.
Autocomplete is enabled.
Error squiggles are disabled.
File exclude: **/.git
File exclude: **/.svn
File exclude: **/.hg
File exclude: **/CVS
File exclude: **/.DS_Store
File exclude: **/.vscode
Search exclude: **/node_modules
Search exclude: **/bower_components
Search exclude: **/.vscode
  Folder: xxxxxxxxx will be indexed
  Folder: /usr/local/include/ will be indexed
  Folder: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/ will be indexed
  Folder: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/ will be indexed
  Folder: /usr/include/ will be indexed
  Folder: /System/Library/Frameworks/ will be indexed
  Folder: /Library/Frameworks/ will be indexed
Discovering files...
.......
/System/Library/Frameworks/AppKit.framework/Versions/C/Resources/he.lproj/Spelling.strings
Unable to add file to database, error = 0x8064000a: /System/Library/Frameworks/AppKit.framework/Versions/C/Resources/he.lproj/TextFinder.strings
Unable to add file to database, error = 0x8064000a: /System/Library/Frameworks/AppKit.framework/Versions/C/Resources/he.lproj/TextSystem.strings
Unable to add file to database, error = 0x8064000a: /System/Library/Frameworks/AppKit.framework/Versions/C/Resources/he.lproj/TextTouchBar-BBBAA77A32-C4EBFEA440.strings

call stack:
sample.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions