mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 06:38:23 +00:00
Regenerate functions.
This commit is contained in:
parent
b8df1293c1
commit
f534180ddc
4 changed files with 6016 additions and 5438 deletions
|
@ -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 }];
|
||||
|
|
6011
extensions/php-language-features/src/features/phpGlobalFunctions.ts
Normal file
6011
extensions/php-language-features/src/features/phpGlobalFunctions.ts
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue