I am currently creating a custom extension in VSCode. So far i managed to create a simple section for the sidebar like this(I created the robot icon on the bottom and added the buttons):
Now when i click a button it will take a few seconds to calulate the result. When the button gets pressed, visually nothing happens so far. I want the standart blue loading bar to be active while the function is running. For example, when i am commiting something with the git extension, this blue bar is active:
Does someone know how this can be achieved in general?
There is a full example extension that uses the progress functionality. See vscode extensions: progress sample.
context.subscriptions.push(commands.registerCommand('extension.startTask', () => {
window.withProgress({
location: ProgressLocation.Notification,
title: "I am long running!",
cancellable: true
},
More at the link above. The location can take a viewID.
Also there is an example at https://stackoverflow.com/a/74744162/836330.
Related
I am create a simple navigation bar that runs along the top of the screen but when the display is under 768px it displays as a menu that can be closed with a click of a X or opened by click the Hamburger button.
I also have the site hosted on GitHub and the page can be loaded via here
First of all you should provide snippet code when answer. If you don't share its hard to identify the problem.
Secondly problem with your code is a spalling mistake. instead of menu.addEventListner use menu.addEventListener. You can find these Errors easily if see the console in your browser.
I am trying to make a jQuery code to save a screenshot in my web page. I found a lot of plugins that take screenshot of pages.
But this is what I want:
1- The user takes a Print Screen of a issue in the desktop(not in the browser)
2- The user clicks on a Button 'save' in my web page
3- jQuery gets that image and saves into a folder
All the ways I found was to take a WebPage Screenshot.
Is there a way to get the Image that the user toke?
I don't know it may help you,http://codepen.io/reynard2007/pen/xfwoK , i remember long a go i see one codepen is doing the function you want,that is pasting the image in to a canvas
I can open the THREE.js editor at http://threejs.org/editor/.
I can open an example app e.g. PONG.
I can activate interactive animation by clicking on Play in the menu bar.
I can deactivate the animation by clicking on Stop in the menu bar.
I wish to edit the Main Script (the "Scene/Game logic" script) using the Editor as per this illustration:- https://plus.google.com/photos/+ricardocabello/albums/6104607340192211937/6104607354618509202?pid=6104607354618509202&oid=113862800338869870683
I can access Script controls for graphical objects. But how do I access the Main Script?
I am using
Opera version 28.0.1750.51
Laptop System: Windows 7 32-bit.
Go on the Pong project. From there you can click on file-> Publish. Unzip the file then you can see app.js in js folder. It's the script that is controlling the animation. It's the only way I know to view the source. Hope this help! :)
Aha. Got it.
Within the "SCENE" panel on the RHS of the Editor it is necessary to select the "Scene" object. This will add another panel called "SCENE" and below that there will be added another panel called "SCRIPT". (May need to scroll down to see it). The loaded "Game logic" script will be indicated. Just click on the "Edit" button to display the javascript in the main window of the Editor.
I have CKEditor running with KCFinder integrated and working, but the application will be used by people with little-to-no computing experience and I would therefore like a button in the CKEditor toolbar which looks like the current Image button but jumps straight to KCFinder.
If you imagine looking at CKEditor, clicking "Image" then "Browser Server", I'd like to basically cut out the middle step of CKeditor's initial popup.
Ideally though, users would still be able to right-click on the image and click "Image Properties" to view CKEditor's popup.
Any help appreciated!
Requires a custom plugin and cannot be accomplished as easily as hoped.
http://www.fireviews.com/testing/tabs_and_toggles.html
The buttons with + signs are supposed to be drop-down toggles, and the mini-tabs below them should function as tabs. And at the bottom, the sample images should load (not just the spinning loader) and when clicked they should magnify the image, not go to another page. Also the magnifying glass in the top right should pop up a search bar when moused over. But none of this is working!
I think it may have something to do with the directory the js files are in (as I had to move them from their original location) but I thought I changed all the paths properly.
Can anyone help me identify where the errors/problems are?
You need to use debugging tools that will reveal JavaScript errors to you. Just by opening your page in Firefox, I get:
Error: jQuery("a[rel^='prettyPhoto'], a[rel^='lightbox']").prettyPhoto is not a function
Source File: http://www.fireviews.com/design/js/custom.js
Line: 239
And if I look at your JavaScript files, I see that http://www.fireviews.com/design/js/prettyPhoto//design/js/jquery.prettyPhoto.js is not actually JavaScript. That's your problem.
See: What is a good Javascript debugging tool?
Your prettyphoto.js is actually a HTML file.