Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/php-language-features/src/features/hoverProvider.ts')
-rw-r--r--extensions/php-language-features/src/features/hoverProvider.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/php-language-features/src/features/hoverProvider.ts b/extensions/php-language-features/src/features/hoverProvider.ts
index a79da4073a9..fdf489187e1 100644
--- a/extensions/php-language-features/src/features/hoverProvider.ts
+++ b/extensions/php-language-features/src/features/hoverProvider.ts
@@ -11,22 +11,22 @@ import phpGlobalFunctions = require('./phpGlobalFunctions');
export default class PHPHoverProvider implements HoverProvider {
public provideHover(document: TextDocument, position: Position, _token: CancellationToken): Hover | undefined {
- let enable = workspace.getConfiguration('php').get<boolean>('suggest.basic', true);
+ const enable = workspace.getConfiguration('php').get<boolean>('suggest.basic', true);
if (!enable) {
return undefined;
}
- let wordRange = document.getWordRangeAtPosition(position);
+ const wordRange = document.getWordRangeAtPosition(position);
if (!wordRange) {
return undefined;
}
- let name = document.getText(wordRange);
+ const name = document.getText(wordRange);
- let entry = phpGlobalFunctions.globalfunctions[name] || phpGlobals.compiletimeconstants[name] || phpGlobals.globalvariables[name] || phpGlobals.keywords[name];
+ const entry = phpGlobalFunctions.globalfunctions[name] || phpGlobals.compiletimeconstants[name] || phpGlobals.globalvariables[name] || phpGlobals.keywords[name];
if (entry && entry.description) {
- let signature = name + (entry.signature || '');
- let contents: MarkedString[] = [textToMarkedString(entry.description), { language: 'php', value: signature }];
+ const signature = name + (entry.signature || '');
+ const contents: MarkedString[] = [textToMarkedString(entry.description), { language: 'php', value: signature }];
return new Hover(contents, wordRange);
}