Regenerate functions.

This commit is contained in:
Matt Acosta 2018-04-13 20:26:17 -07:00
parent b8df1293c1
commit f534180ddc
4 changed files with 6016 additions and 5438 deletions

View file

@ -6,8 +6,9 @@
'use strict';
import { HoverProvider, Hover, MarkedString, TextDocument, CancellationToken, Position, workspace } from 'vscode';
import phpGlobals = require('./phpGlobals');
import { textToMarkedString } from './utils/markedTextUtil';
import phpGlobals = require('./phpGlobals');
import phpGlobalFunctions = require('./phpGlobalFunctions');
export default class PHPHoverProvider implements HoverProvider {
@ -24,7 +25,7 @@ export default class PHPHoverProvider implements HoverProvider {
let name = document.getText(wordRange);
var entry = phpGlobals.globalfunctions[name] || phpGlobals.compiletimeconstants[name] || phpGlobals.globalvariables[name] || phpGlobals.keywords[name];
var 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 }];

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -7,6 +7,7 @@
import { SignatureHelpProvider, SignatureHelp, SignatureInformation, CancellationToken, TextDocument, Position, workspace } from 'vscode';
import phpGlobals = require('./phpGlobals');
import phpGlobalFunctions = require('./phpGlobalFunctions');
var _NL = '\n'.charCodeAt(0);
var _TAB = '\t'.charCodeAt(0);
@ -87,7 +88,7 @@ export default class PHPSignatureHelpProvider implements SignatureHelpProvider {
return null;
}
var entry = phpGlobals.globalfunctions[ident] || phpGlobals.keywords[ident];
var entry = phpGlobalFunctions.globalfunctions[ident] || phpGlobals.keywords[ident];
if (!entry || !entry.signature) {
return null;
}