Commit Graph

1411 Commits

Author SHA1 Message Date
Eric Traut
d8e1b5d939 Added support in completion provider for named parameter suggestions within argument lists for call expressions. 2019-12-08 02:20:37 -08:00
Eric Traut
33cf4552c3 Added test case for previous check-in. 2019-12-07 11:06:11 -08:00
Eric Traut
563b7f94e4 Fixed bug in type var matching for contravariant type vars. 2019-12-07 11:01:23 -08:00
Eric Traut
dea79cd52b Deleted obsolete method markFilesChanged. 2019-12-06 20:01:48 -08:00
Eric Traut
a3f114bd12 Updated dependencies. 2019-12-06 19:19:18 -08:00
Eric Traut
f6ebcd9243 Changed *args parameter to be typed as Tuple rather than List, as per the python spec. 2019-12-05 20:18:28 -08:00
Eric Traut
3dc47f15ba Fixed errant "unbound" error for variable that's declared in an outer execution context and referenced via a closure. 2019-12-05 19:39:21 -08:00
Eric Traut
560759afe3 Published 1.1.8 2019-12-04 10:28:31 -08:00
Eric Traut
1bb66de420 Added support for type constraints of the form "X == None" and "X != None". 2019-12-03 23:38:10 -08:00
Eric Traut
f30af50b0e Silenced a noisy error message related to file system watcher. 2019-12-03 19:48:41 -08:00
Eric Traut
576d327452 Added support for property getters, setters and deleters that have generic types for the "self" parameter. 2019-12-03 19:46:54 -08:00
Eric Traut
d9ee01b95b
Merge pull request #389 from heejaechang/mistypeOption
added test for pythonPlatform extraction from json
2019-12-03 13:37:31 -08:00
HeeJae Chang
bddca60c80 added test for pythonPlatform extraction from json 2019-12-03 13:23:56 -08:00
Eric Traut
b958b07a70
Merge pull request #384 from heejaechang/mistypeOption
fixed typo in configoption file
2019-12-02 16:39:28 -08:00
HeeJae Chang
02e208f497 add .vs as one of dir to ignore 2019-12-02 15:27:00 -08:00
HeeJae Chang
5c5eaa3813 fixed a typo where it is checking root rather than python version. 2019-12-02 15:26:32 -08:00
Eric Traut
a8019479f9 Added test case for property return type specialization. 2019-12-02 11:22:48 -08:00
Eric Traut
51ee8dbac8 Fixed bug that caused properties with generic return types to not be specialized correctly. 2019-12-02 11:19:46 -08:00
Eric Traut
25d4c07362 Added missing translation layer that translates configured platform (e.g. "Windows") into the corresponding sys.platform string (e.g. "win32"). 2019-12-01 09:43:46 -08:00
Eric Traut
45f86b2965 Fixed a few punctuation issues. 2019-11-30 10:53:46 -08:00
Eric Traut
ac69188758
Merge pull request #379 from cshesse/patch-5
mention multi-root workspaces in configuration doc
2019-11-30 10:51:58 -08:00
cshesse
bd8212861a
Update configuration.md 2019-11-30 10:50:30 -08:00
Eric Traut
eddc3162cb Changed the behavior of VS Code extension when no pyrightconfig.json is present. It now defaults to include all source files under the root workspace directory. This was already the behavior for the command-line version of pyright. 2019-11-30 09:24:53 -08:00
Eric Traut
e367ed0ac0 Published 1.1.7 2019-11-30 00:15:10 -08:00
Eric Traut
3ef9e5bc82 Added test case for reportIncompatibleMethodOverride option. Added "related information" diagnostic for this case. 2019-11-30 00:08:53 -08:00
Eric Traut
8d1634f103 Fixed crash due to hover provider accessing an unreachable node. 2019-11-28 09:53:38 -08:00
Eric Traut
f663152d0c Fixed type inference of "self" and "cls" parameters for methods in a Protocol class so they are not reported as unknown. 2019-11-27 11:43:43 -08:00
Eric Traut
c52ed3517a Fixed regression in type evaluator that broke completions in cases where there was a parse error (e.g. when typing a dot as part of a partially-completed member access expression). 2019-11-27 11:15:25 -08:00
Eric Traut
0524b45f17 Published 1.1.6 2019-11-26 22:54:48 -08:00
Eric Traut
9bbbac0a45 Increased high water mark for discarding type caches. 2019-11-26 22:30:47 -08:00
Eric Traut
661d0c06ca Fixed another case where actions of the hover provider generated incorrect errors. 2019-11-26 22:09:20 -08:00
Eric Traut
1e55f79e00 Fixed bug in type checker where hovering on some expressions before the file is fully checked could cause incorrect errors to be generated. Added bidirectional type inference support for yield statements. 2019-11-26 21:45:36 -08:00
Eric Traut
d209eba6ba Fixed spelling errors in some comments. 2019-11-26 17:29:54 -08:00
Eric Traut
bd0807e59f Disabled polling in a less-disruptive manner on non-Mac systems. 2019-11-26 13:26:58 -08:00
Eric Traut
bc00ff2ca3 Disable file system watcher polling on MacOS because it's causing too much instability. 2019-11-26 13:24:48 -08:00
Eric Traut
eefd5f3594 Added declarations to parameter nodes. 2019-11-26 09:12:31 -08:00
Eric Traut
ef09ce71c8 Improved error reporting for declaration collisions. 2019-11-26 09:12:30 -08:00
Eric Traut
5f424a1d57 Removed Method declaration type by adding an isMethod field onto the FunctionDeclaration interface. This simplifies the code in a bunch of places. 2019-11-26 09:12:30 -08:00
Eric Traut
52792e8c06 Added support for related information in diagnostics. 2019-11-26 09:12:30 -08:00
Eric Traut
868d34c33b
Merge pull request #367 from cshesse/patch-3
add missing newline in --help output
2019-11-26 09:10:25 -08:00
cshesse
709affe702
add missing newline in --help output 2019-11-26 09:06:24 -08:00
Eric Traut
d4096ab1c9 Fixed a couple of bugs relating to type checking of generic protocols. 2019-11-26 06:54:18 -08:00
Eric Traut
fec5410b03
Merge pull request #365 from cshesse/patch-2
add missing single quote to error message
2019-11-26 05:35:44 -08:00
cshesse
215a8463a6
add missing single quote to error message 2019-11-26 00:36:57 -08:00
Eric Traut
4a581a739a Fixed bug in TypeVar matching logic relating to constrained TypeVars. Added missing unit test for this case. 2019-11-25 22:35:32 -08:00
Eric Traut
3de18fb8cf Added hover, definition, reference, and rename support for named arguments. 2019-11-25 21:20:51 -08:00
Eric Traut
f7ba301b75 Fixed bug in parseTreeWalker - it wasn't return the name node for arguments. 2019-11-25 21:20:26 -08:00
Eric Traut
c332a43ef5 Reduced maximum analysis time to improve responsiveness in VS Code extension. 2019-11-25 21:20:02 -08:00
Eric Traut
9f2b160337 Published 1.1.5 2019-11-24 17:46:25 -08:00
Eric Traut
1dfe6ebb9d Added some additional logic around file watchers based on VS Code usage of the chokidar library. 2019-11-24 17:43:17 -08:00