You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing, to connect to your Cloudsmith instance, you need to configure either your Personal API Key or a Service Account Token. Click on the `key` icon from the view menu and enter your credential into the input box. To connect press the `connect` or `refresh` icons.
@@ -61,7 +61,7 @@ The Cloudsmith extension contributes a Cloudsmith view to VS Code. The Cloudsmit
61
61
By default the extension returns individual packages. You can display them as [package groups](https://help.cloudsmith.io/docs/package-groups) instead.
Selecting inspect will return the raw JSON data for the selected item. By default it will send the output to the `Output` window. You can configure for output to be sent to a new text document instead.
* This folder contains all of the files necessary for your extension.
6
+
*`package.json` - this is the manifest file in which you declare your extension and command.
7
+
* The sample plugin registers a command and defines its title and command name. With this information VS Code can show the command in the command palette. It doesn’t yet need to load the plugin.
8
+
*`extension.js` - this is the main file where you will provide the implementation of your command.
9
+
* The file exports one function, `activate`, which is called the very first time your extension is activated (in this case by executing the command). Inside the `activate` function we call `registerCommand`.
10
+
* We pass the function containing the implementation of the command as the second parameter to `registerCommand`.
11
+
12
+
## Get up and running straight away
13
+
14
+
* Press `F5` to open a new window with your extension loaded.
15
+
* Run your command from the command palette by pressing (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and typing `Hello World`.
16
+
* Set breakpoints in your code inside `extension.js` to debug your extension.
17
+
* Find output from your extension in the debug console.
18
+
19
+
## Make changes
20
+
21
+
* You can relaunch the extension from the debug toolbar after changing code in `extension.js`.
22
+
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
23
+
24
+
## Explore the API
25
+
26
+
* You can open the full set of our API when you open the file `node_modules/@types/vscode/index.d.ts`.
27
+
28
+
## Run tests
29
+
30
+
* Install the [Extension Test Runner](https://marketplace.visualstudio.com/items?itemName=ms-vscode.extension-test-runner)
31
+
* Open the Testing view from the activity bar and click the Run Test" button, or use the hotkey `Ctrl/Cmd + ; A`
32
+
* See the output of the test result in the Test Results view.
33
+
* Make changes to `test/extension.test.js` or create new test files inside the `test` folder.
34
+
* The provided test runner will only consider files matching the name pattern `**.test.js`.
35
+
* You can create folders inside the `test` folder to structure your tests any way you want.
36
+
37
+
## Go further
38
+
39
+
*[Follow UX guidelines](https://code.visualstudio.com/api/ux-guidelines/overview) to create extensions that seamlessly integrate with VS Code's native interface and patterns.
40
+
*[Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
41
+
* Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
42
+
* Integrate to the [report issue](https://code.visualstudio.com/api/get-started/wrapping-up#issue-reporting) flow to get issue and feature requests reported by users.
0 commit comments