Skip to content

Remove typeshed submodule and rely on LS package typeshed#2404

Merged
MikhailArkhipov merged 62 commits into
microsoft:masterfrom
MikhailArkhipov:master
Aug 21, 2018
Merged

Remove typeshed submodule and rely on LS package typeshed#2404
MikhailArkhipov merged 62 commits into
microsoft:masterfrom
MikhailArkhipov:master

Conversation

@MikhailArkhipov
Copy link
Copy Markdown

@MikhailArkhipov MikhailArkhipov commented Aug 16, 2018

Fixes #2182
Fixes #2405
Add news for LS outline fix.

  • Title summarizes what is changing
  • Includes a news entry file (remember to thank yourself!)
  • Unit tests & code coverage are not adversely affected (within reason)
  • Works on all actively maintained versions of Python (e.g. Python 2.7 & the latest Python 3 release)
  • Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity)

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 16, 2018

Codecov Report

Merging #2404 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2404      +/-   ##
==========================================
- Coverage   75.38%   75.38%   -0.01%     
==========================================
  Files         309      309              
  Lines       14331    14330       -1     
  Branches     2537     2536       -1     
==========================================
- Hits        10804    10803       -1     
  Misses       3518     3518              
  Partials        9        9
Flag Coverage Δ
#MacOS 74.17% <0%> (-0.03%) ⬇️
#Windows 74.29% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
src/client/common/types.ts 100% <ø> (ø) ⬆️
src/client/activation/languageServer.ts 25.68% <0%> (-0.41%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6707eaa...e24c7e5. Read the comment docs.

Comment thread package.json
"python.analysis.logLevel": {
"type": "string",
"enum": [
"Error",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should the enum values be lowercase to match the default?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

They should match what we use in other settings. Fixed default.

Comment thread package.json Outdated
"python.analysis.traceLogging": {
"type": "boolean",
"default": false,
"description": "Enables full diagnostic logging in the language server.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How is this different from e.g. information logging?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It is even deeper setting, produces tons of stuff. I'll check if it is easy enough to unify with other levels, but currently it is a separate flag in LS code base, might affect VS as well.

@MikhailArkhipov
Copy link
Copy Markdown
Author

microsoft/PTVS#4656 LS part

@brettcannon
Copy link
Copy Markdown
Member

@MikhailArkhipov FYI it looks like the CI failures are due to needing to commit the updates to package-lock.json.

@MikhailArkhipov
Copy link
Copy Markdown
Author

MikhailArkhipov commented Aug 20, 2018

No, it is an issue with some unrelated mocks.

[14:15:59] Using gulpfile F:\VSCP\gulpfile.js
[14:15:59] Starting 'checkNativeDependencies'...
[14:16:06] Finished 'checkNativeDependencies' after 6.36 s
src/test/mocks/vsc/extHostedTypes.ts:506:18 - error TS2720: Class 'import("F:/VSCP/src/test/mocks/vsc/extHostedTypes").vscMockExtHostedTypes.WorkspaceEdit' incorrectly implements class ''vscode'.WorkspaceEdit'. Did you mean to extend ''vscode'.WorkspaceEdit' and inherit its members as a subclass?
  Property 'createFile' is missing in type 'WorkspaceEdit'.

506     export class WorkspaceEdit implements vscode.WorkspaceEdit {
                     ~~~~~~~~~~~~~


npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! python@2018.8.0-alpha vscode:prepublish: `gulp checkNativeDependencies && tsc -p ./`
npm ERR! Exit status 2

I guess 1.26 added createFile

@MikhailArkhipov MikhailArkhipov merged commit 6369262 into microsoft:master Aug 21, 2018
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add control setting for LS logging level Drop Typeshed from the repo

2 participants