microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

Auto complete show not only own properties/methods #607

Closed SET001 closed 7 years ago

SET001 commented 7 years ago

For some reason I'm getting a lot of suggestions so I can't find what I need:

sublimetypescript

My tsconfig:


{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false,
    "watch": false,
    "types": []
  }
}

How this can be fixed?

Also if I open console (View -> Show Console) I see following:

insert
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 591, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "TSCompletion in /home/set/.config/sublime-text-3/Installed Packages/TypescriptCompletion.sublime-package", line 52, in on_query_completions
  File "TSCompletion in /home/set/.config/sublime-text-3/Installed Packages/TypescriptCompletion.sublime-package", line 38, in startThread
  File "TSCompletion in /home/set/.config/sublime-text-3/Installed Packages/TypescriptCompletion.sublime-package", line 70, in stop
AttributeError: 'TsCompletionThread' object has no attribute '_Thread__stop'
siemiatj commented 5 years ago

@SET001 why you closed this one ? I'm getting the same error.

SET001 commented 5 years ago

@siemiatj I don't remember how I solved that, but if I closed it this mean that issue has nothing to do with plugin.