Commit Graph

1637 Commits

Author SHA1 Message Date
Jake Bailey
8d2cca7289 Mass reformat ts/js/md with ESLint quick fixes and prettier (#113) 2020-02-24 16:52:23 -08:00
Heejae Chang
e17977c928
changing the connection type from IPC to be based on the process's commandline arguments so that the benchmark tool can set stdin/stdout (#541) 2020-02-24 12:12:59 -08:00
Eric Traut
99b935de92 Published 1.1.25 2020-02-21 15:42:52 -07:00
Eric Traut
037861526e Fixed a bug in the case where a type alias is used as a type argument for another (user-defined generic) type alias. 2020-02-21 15:36:55 -07:00
Eric Traut
570db9e4f2 Fixed detection of abstract methods that are not overridden. Previous implementation made bad assumptions about overload ordering. 2020-02-21 10:48:00 -07:00
Eric Traut
4888416647 Fixed "internal error" caused by assertion in type var matching logic. 2020-02-20 09:04:29 -07:00
Heejae Chang
9138879870
added code action tests (#534)
there are 2 kinds of code actions, one that introduce new files or one that returns text edits. this introduce test for one that adds files. there will be another PR for ones that return text edits.

this also includes misc changes such as making del-cli works on windows. and some refactoring to remove language service dependencies on command handler and etc.
2020-02-19 17:11:04 -08:00
Eric Traut
ef9d92b8f6 Fixed file name of test case. It was failing on Linux because file system is case sensitive. 2020-02-19 17:07:40 -07:00
Eric Traut
f94d7a0f43 Removed tslint disable statements and added eslint disable to pyright.ts to eliminate false linting error. 2020-02-19 17:01:53 -07:00
Eric Traut
1844ea2a1c Published 1.1.24 2020-02-19 13:01:17 -07:00
Eric Traut
1e51e7f311 Added support for user-defined generic type aliases. 2020-02-19 12:51:08 -07:00
Eric Traut
ded73fe9ed Fixed a condition where the literal portion of a type was improperly removed. This affected imported type aliases in some contexts. 2020-02-19 00:00:14 -07:00
Eric Traut
816a110d59 Fixed the handling of bidirectional type inference for cases involving lists with a declared entry type. 2020-02-18 21:49:20 -07:00
Eric Traut
4900234217 Published 1.1.23 2020-02-18 21:01:06 -07:00
Eric Traut
25758b8f37 Fixed bug in import resolver. It was incorrectly returning implicit imports for "import X" or "import X as Y" statements. 2020-02-18 00:33:28 -07:00
Eric Traut
e7b221e529 Improved parse recovery and error messages for syntax that was previously valid in Python 2 but was made obsolete in Python 3. 2020-02-17 23:55:20 -07:00
Eric Traut
3c8176542a Reverted default value of 'reportMissingTypeStubs' setting from 'warning' to 'none'. 2020-02-17 16:31:10 -07:00
Eric Traut
6ad6ce2b66 Fixed minor formatting issue in error message. 2020-02-17 15:03:45 -07:00
Eric Traut
a97b20226c Fixed a hole in protocol type checking. The type checker wasn't properly handling protocol classes that derived from other classes. 2020-02-17 15:01:21 -07:00
Eric Traut
fdb4546b94 Simplified logic in canAssignClass. 2020-02-17 14:42:13 -07:00
Eric Traut
998c9a0074 Moved protocol and typed dict logic out of canAssignClass function for clarity. 2020-02-17 14:40:03 -07:00
Eric Traut
8ed0f3b1e7 Updated dataclass analysis logic so it can handle circular type references in dataclass definitions. 2020-02-17 11:51:00 -07:00
Eric Traut
0675dcc8db Added comment to eliminate eslint warning in webpack.config-server.js. 2020-02-17 11:49:32 -07:00
Eric Traut
7411bc80af Renamed _undeclaredType in symbol.ts to _synthesizedType for clarity. 2020-02-17 11:01:26 -07:00
Eric Traut
c3af4d6a95 Fixed a bug in the f-string parsing code, which didn't correctly handle the case where the "!=" token was used in an f-string expression. 2020-02-17 10:55:42 -07:00
Eric Traut
2230a7736b Handled special case in getCallSignatureInfo for data classes so function signature suggestions work. 2020-02-17 01:17:34 -07:00
Eric Traut
d3221ca343 Made a few small improvements to documentation. 2020-02-17 01:16:30 -07:00
Eric Traut
3661fe3d5e Published 1.1.22 2020-02-15 13:59:08 -07:00
Eric Traut
679102a400 Fixed regression that broke "package" build script. 2020-02-15 13:57:27 -07:00
Eric Traut
80cbf2add8 Made commands enum "const" so file doesn't need to be included in webpack. 2020-02-15 13:57:00 -07:00
Eric Traut
da4a9a66da Added type narrowing support for built-in "callable" call. 2020-02-15 13:15:30 -07:00
Eric Traut
d379117c19 Fixed bug in handling of "cast" function when type is specified within a string literal. 2020-02-15 11:21:53 -07:00
Eric Traut
8e1bf2b74e Fixed bug in type check logic that determines whether a class conforms to a Protocol. It was not properly taking into account instance variables within the class. 2020-02-15 10:48:55 -07:00
Eric Traut
7afbbcaadf Added error reporting for instance and class variables within methods declared in a Protocol class. PEP 544 indicates that these should be flagged as an error. 2020-02-15 10:22:52 -07:00
Eric Traut
bc2c8d455d Added eslint plugin for enforcing and fixing import sort order and groupings. Fixed all source files that are nonconformant. 2020-02-15 02:00:51 -07:00
Eric Traut
f866c033b8 Fixed translation of a heterogenous tuple into an iterator. The resulting iterator needs to have a type argument created from a union of the heterogeneous tuple entries. 2020-02-15 01:21:55 -07:00
Eric Traut
8bed8ed079 Added minor perf improvement in type evaluator - avoiding finding the correct overload function twice. 2020-02-15 01:03:28 -07:00
Eric Traut
b623cb0389 Fixed bug in type evaluator where it not properly handling properties within protocol classes. 2020-02-15 00:59:00 -07:00
Eric Traut
094bd03019 Switched all non-test code to use assert and fail methods from common/debug rather than the node assert module. 2020-02-15 00:31:32 -07:00
Eric Traut
46e792c67d Fixed bug in type evaluator relating to type var matching for function calls. The code now "locks" the type var map after the first pass. In the second pass, it verifies that the arguments are compatible with the types associated with the (now-locked) type vars. 2020-02-15 00:16:59 -07:00
Eric Traut
e6396e35ef Fixed another bug that affects the debug version of pyright. The way I was computing debugTypeshedPath left ".." in the path, so later path comparisons failed. 2020-02-14 10:14:59 -07:00
Eric Traut
ec639491ae Fixed bug in binder logic that resulted in infinite recursion in the type evaluator. It occurred in the case where the target of an assignment was a tuple and the elements in the tuple depended on assignment ordering. The binder was not assigning the correct control flow nodes to the individual elements of the target tuple. 2020-02-14 09:27:47 -07:00
Eric Traut
04a01c767f
Merge pull request #510 from microsoft/erictr/debugging
Fixed debug builds.
2020-02-12 23:10:26 -07:00
Eric Traut
f6bb03bc50 Fixed debug builds. Recent changes broke debugging (setting breakpoints, etc.). 2020-02-12 22:58:55 -07:00
Heejae Chang
2aa319fd8f
3 fourslash improvement to support custom lib/typeshed folders (#514)
* 3 fourslash improvement to support custom lib/typeshed folders

1. added an ability to add library code directly in fourslash test file.
2. added an ability to mount different folder as typeshed folder in virtual file system in fourslash test.
3. added an ability to mount multiple folders in virtual file system.

* addressed PR feedbacks
2020-02-12 20:12:54 -08:00
Heejae Chang
50b0d324a1
added a hook to ImportResolver for custom importing logic. (#515) 2020-02-12 17:29:39 -08:00
Eric Traut
de41104883
Merge pull request #511 from microsoft/erictr/clean
Added "clean" command to build script. Fixed bug in build script for …
2020-02-12 12:03:11 -07:00
Eric Traut
c57fafdc5f Fixed ordering of build script — npm install needs to happen before clean because the latter depends on a node module. 2020-02-11 23:23:08 -07:00
Eric Traut
46bb90cca6 Added "clean" command to build script. Fixed bug in build script for debug version of server. 2020-02-11 18:38:00 -07:00
Eric Traut
f3a4aed6ae Revert "Added "clean" build command that deletes artifacts from previous build actions."
This reverts commit e22c661c3e.
2020-02-11 18:23:21 -07:00