Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting to control speed of diagnostic publishing #2357

Merged
merged 39 commits into from
Aug 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
997635a
LS symbol providers
Jun 8, 2018
f6c6276
Merge branch 'master' of https://github.com/Microsoft/vscode-python
Jun 13, 2018
0a20fef
Merge branch 'master' of https://github.com/Microsoft/vscode-python
Jun 19, 2018
660a627
Merge branch 'master' of https://github.com/Microsoft/vscode-python
Jun 29, 2018
3813395
Merge branch 'master' of https://github.com/Microsoft/vscode-python
Jul 3, 2018
d4fd3ab
Different ready wait
Jul 4, 2018
3a0bea4
Merge branch 'master' of https://github.com/Microsoft/vscode-python
Jul 12, 2018
56bf688
Upgrade dependencies to latest LS
Jul 12, 2018
37f1154
Make open files only default
Jul 12, 2018
4092bcc
Turn off hash checks
Jul 12, 2018
49ec38a
Fix double progress display
Jul 12, 2018
f7e245b
Update packages
Jul 13, 2018
bdce0ff
Anchor dependencies
brettcannon Jul 13, 2018
969db02
Merge branch 'master' of https://github.com/Microsoft/vscode-python
Aug 6, 2018
13828ca
Merge master
Aug 6, 2018
5d45558
Add setting for diag throttling
Aug 6, 2018
70b13f7
Add MacOS version check
Aug 7, 2018
462ff7c
News
Aug 7, 2018
4e12b3c
Correct MacOS check and lay infra for Linux checks
Aug 8, 2018
0d3c066
Linux version check
Aug 8, 2018
925f663
Linux check
Aug 8, 2018
fef0e92
Simplify
Aug 8, 2018
2c7243c
Test prep
Aug 8, 2018
07dc2fa
Platform tests
Aug 8, 2018
cd970be
Mac compat tests
Aug 8, 2018
c63c904
Ubuntu tests
Aug 9, 2018
42ebdd1
Revert "Ubuntu tests"
Aug 9, 2018
d3c7acb
Revert "Mac compat tests"
Aug 9, 2018
d86997b
Revert "Platform tests"
Aug 9, 2018
5caca65
Revert "Test prep"
Aug 9, 2018
983cbeb
Revert "Simplify"
Aug 9, 2018
0f116cc
Revert "Linux check"
Aug 9, 2018
cfc9b2d
Revert "Linux version check"
Aug 9, 2018
4fe1052
Revert "Correct MacOS check and lay infra for Linux checks"
Aug 9, 2018
c8dedc3
Revert "News"
Aug 9, 2018
5e40775
Revert "Add MacOS version check"
Aug 9, 2018
e63479b
News
Aug 9, 2018
e44afad
Format
Aug 9, 2018
d7cd632
Undo
Aug 9, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/1 Enhancements/2270.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python.analysis.diagnosticPublishDelay allows you to control when language server publishes diagnostics. Default is 1 second after the user activity, such a typing, ceases. If diagnostic is clear (i.e. errors got fixed), the publishing is immediate.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,12 @@
"description": "Only show errors and warnings for open files rather than for the entire workspace.",
"scope": "resource"
},
"python.analysis.diagnosticPublishDelay": {
"type": "integer",
"default": 1000,
"description": "Delay before diagnostic messages are transferred to the problems list.",
"scope": "resource"
},
"python.analysis.typeshedPaths": {
"type": "array",
"default": [],
Expand Down
18 changes: 12 additions & 6 deletions src/client/activation/languageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@

import { inject, injectable } from 'inversify';
import * as path from 'path';
import { CancellationToken, CompletionContext, OutputChannel, Position,
TextDocument, Uri } from 'vscode';
import { Disposable, LanguageClient, LanguageClientOptions,
ProvideCompletionItemsSignature, ServerOptions } from 'vscode-languageclient';
import {
CancellationToken, CompletionContext, OutputChannel, Position,
TextDocument, Uri
} from 'vscode';
import {
Disposable, LanguageClient, LanguageClientOptions,
ProvideCompletionItemsSignature, ServerOptions
} from 'vscode-languageclient';
import { IApplicationShell, ICommandManager, IWorkspaceService } from '../common/application/types';
import { PythonSettings } from '../common/configSettings';
import { isTestExecution, STANDARD_OUTPUT_CHANNEL } from '../common/constants';
import { createDeferred, Deferred } from '../common/helpers';
import { IFileSystem, IPlatformService } from '../common/platform/types';
import { StopWatch } from '../common/stopWatch';
import { BANNER_NAME_LS_SURVEY, IConfigurationService, IExtensionContext, ILogger,
IOutputChannel, IPythonExtensionBanner, IPythonSettings } from '../common/types';
import {
BANNER_NAME_LS_SURVEY, IConfigurationService, IExtensionContext, ILogger,
IOutputChannel, IPythonExtensionBanner, IPythonSettings
} from '../common/types';
import { IServiceContainer } from '../ioc/types';
import {
PYTHON_LANGUAGE_SERVER_DOWNLOADED,
Expand Down