Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 83eeae5

Browse files
niteskumshubhsnov
authored andcommitted
Fixed Code/Parameter Hints Issue for large file (#14722)
* Fixed Code/Parameter Hints Issue for large file * Addressed review comments * Addressed review comments
1 parent 188c125 commit 83eeae5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/extensions/default/PhpTooling/CodeHintsProvider.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,15 @@ define(function (require, exports, module) {
9191
pos = editor.getCursorPos(),
9292
docPath = editor.document.file._path,
9393
$deferredHints = $.Deferred(),
94-
self = this.defaultCodeHintProviders;
94+
self = this.defaultCodeHintProviders,
95+
client = this.defaultCodeHintProviders.client;
9596

96-
this.defaultCodeHintProviders.client.requestHints({
97+
//Make sure the document is in sync with the server
98+
client.notifyTextDocumentChanged({
99+
filePath: docPath,
100+
fileContent: editor.document.getText()
101+
});
102+
client.requestHints({
97103
filePath: docPath,
98104
cursorPos: pos
99105
}).done(function (msgObj) {

0 commit comments

Comments
 (0)