I'm currently working on an vscode extension. I'm trying to understand how I can create a "popup"/"tooltip" like this
.
I would like to know methods that I'm expected to use or an github link for an extension that is doing it.
Thanks
You could use the vscode.languages.registerHoverProvider function (Documentation) to do this.
I wrote a little demo extension that you can see here: https://github.com/ShPelles/vscode-hover-demo.
Related
I was asking myself recently if it is possible to add snippets to either one of the workspace, language-specific or global json snippet files through a VSCode extension.
// something like
Command.addSnippet('''
{
"prefix": "my_snippt",
.... etc.
}
''')
Reading through the API documentation I did not find anything. If there is no way, how would you go about creating kind of a snippet manager?
You can use SnippetString and a CompletionItemProvider to dynamically suggest snippets.
Here is an example.
I followed this guide: https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-custom-functions-quickstart?tabs=excel-windows
So far everything went fine. I can use the =CONTOSO.CLOCK and other example functions.
If I add a function to the functions.ts file, it rebuilds... but I can't use the custom function on the web in any way.
Somehow I'm missing how I can register this function and run it in Excel...
Other question is: How can I change the name of the namespace from CONTOSO in something else?
Regards, Peter
Okay, a valid JSDoc was needed to work. After running a new build it worked out. https://learn.microsoft.com/en-us/office/dev/add-ins/excel/custom-functions-json-autogeneration
I'm having a problem and I can't find a good answer to it, I have this in a Yii1 extension code:
Yii::import("ext.EAjaxUpload.qqFileUploader");
I need the equivalent code in Yii2, I read about create a class, but It was not good explained!
Please help and thank you!
If you added extension through composer then you don't need to import class. For using the extension you just need to use http://php.net/manual/en/language.namespaces.importing.php
I am trying to generate a code from .raml file using raml2code (https://github.com/gextech/raml2code).
Unfortunately the description isn't very good and I can't figure out how to do that.
Can anyone show me any example?
Hi I added more documentation, and also I'm working in a example project:
https://github.com/atomsfat/raml2codeFullSpringExample
Hope this help you
I've got an extension with two plugins and I need to access the getVars from both.
$this->request->getArguments();
The above code gives me, of course, only the vars from the current plugin.
Anybody knows how I can access the Vars from a different plugin?
Thank's alot!
Cheers,
lufi
Inside an extension, you do not have access to the request arguments of an other extension. This is only possible using the old way via
$_REQUEST or \TYPO3\CMS\Core\Utility\GeneralUtility::_GP("varname");
Check out:
\TYPO3\CMS\Core\Utility\DebugUtility::debug($_REQUEST); to get the right array keys and var names.