Skip to content

Commit c8cfcc9

Browse files
Fix add cursor support (#11)
* fix: adding support for the current version of Cursor * Updated doc links to the new docs website. --------- Co-authored-by: Ralph McTeggart <rmcteggart@cloudsmith.io>
1 parent 16a7d7b commit c8cfcc9

3 files changed

Lines changed: 63 additions & 100 deletions

File tree

extension.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,12 @@ async function activate(context) {
226226
"workbench.action.openSettings",
227227
"@ext:Cloudsmith.cloudsmith-vsc"
228228
);
229-
})
229+
}),
230+
231+
vscode.commands.registerCommand("cloudsmith-vscode-extension.cloudsmithDocs", () => {
232+
vscode.env.openExternal("https://docs.cloudsmith.com/");
233+
}),
234+
230235
);
231236
}
232237

package.json

Lines changed: 55 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"icon": "media/logo.png",
1818
"engines": {
19-
"vscode": "^1.100.0"
19+
"vscode": "^1.99.0"
2020
},
2121
"categories": [
2222
"Other"
@@ -159,6 +159,11 @@
159159
{
160160
"command": "cloudsmith-vsc.cloudsmithReposCreateNew",
161161
"title": "Repos: Create a new repository from the open template window"
162+
},
163+
{
164+
"command": "cloudsmith-vscode-extension.cloudsmithDocs",
165+
"category": "Cloudsmith",
166+
"title": "Documentation: View official Cloudsmith docs."
162167
}
163168
],
164169
"menus": {
@@ -243,100 +248,53 @@
243248
"description": "If enabled, packages are displayed via Package Group."
244249
}
245250
}
246-
},
247-
"activationEvents": [],
248-
"main": "./extension.js",
249-
"contributes": {
250-
"commands": [
251-
{
252-
"command": "cloudsmith-vscode-extension.cloudsmithAuth",
253-
"category": "Cloudsmith",
254-
"title": "Auth"
255-
},
256-
{
257-
"command": "cloudsmith-vscode-extension.cloudsmithDocs",
258-
"category": "Cloudsmith",
259-
"title": "Documentation: View official Cloudsmith docs."
260-
},
261-
{
262-
"command": "cloudsmith-vscode-extension.cloudsmithWorkspaces",
263-
"category": "Cloudsmith",
264-
"title": "Workspaces: Get a list of all workspaces the user belongs to."
265-
},
266-
{
267-
"command": "cloudsmith-vscode-extension.cloudsmithReposList",
268-
"category": "Cloudsmith",
269-
"title": "Repos: Get all repositories associated with current user."
270-
},
271-
{
272-
"command": "cloudsmith-vscode-extension.cloudsmithReposListNamespace",
273-
"category": "Cloudsmith",
274-
"title": "Repos: Get all repositories within a namespace. "
275-
},
276-
{
277-
"command": "cloudsmith-vscode-extension.cloudsmithReposCreateTemplate",
278-
"category": "Cloudsmith",
279-
"title": "Repos: Create a template file to configure your repository."
280-
},
281-
{
282-
"command": "cloudsmith-vscode-extension.cloudsmithReposCreateNew",
283-
"category": "Cloudsmith",
284-
"title": "Repos: Create a new repository from the open template window"
285-
}
286-
]
287-
},
288-
"scripts": {
289-
"lint": "eslint .",
290-
"pretest": "npm run lint",
291-
"test": "vscode-test"
292-
},
293-
"devDependencies": {
294-
"@types/mocha": "^10.0.10",
295-
"@types/node": "20.x",
296-
"@types/vscode": "^1.100.0",
297-
"@vscode/test-cli": "^0.0.10",
298-
"@vscode/test-electron": "^2.5.2",
299-
"eslint": "^9.25.1"
300-
},
301-
"dependencies": {
302-
"child_process": "^1.0.2",
303-
"dotenv": "^16.5.0",
304-
"file": "^0.2.2",
305-
"json": "^11.0.0",
306-
"path": "^0.12.7"
307-
},
308-
"keywords": [
309-
"cloudsmith",
310-
"devops",
311-
"artifact management",
312-
"packages",
313-
"alpine",
314-
"cargo",
315-
"chocolatey",
316-
"composer",
317-
"conan",
318-
"conda",
319-
"cran",
320-
"dart",
321-
"debian",
322-
"docker",
323-
"go",
324-
"gradle",
325-
"helm",
326-
"hex",
327-
"maven",
328-
"npm",
329-
"nuget",
330-
"powershell",
331-
"python",
332-
"repositories",
333-
"rpm",
334-
"ruby",
335-
"sbt",
336-
"swift",
337-
"terraform",
338-
"unity",
339-
"vagrant"
340-
]
341-
}
251+
}
252+
},
253+
"scripts": {
254+
"lint": "eslint .",
255+
"pretest": "npm run lint",
256+
"test": "vscode-test"
257+
},
258+
"devDependencies": {
259+
"@types/mocha": "^10.0.10",
260+
"@types/node": "20.x",
261+
"@types/vscode": "^1.99.0",
262+
"@vscode/test-cli": "^0.0.10",
263+
"@vscode/test-electron": "^2.5.2",
264+
"eslint": "^9.25.1"
265+
},
266+
"dependencies": {},
267+
"keywords": [
268+
"cloudsmith",
269+
"devops",
270+
"artifact management",
271+
"packages",
272+
"alpine",
273+
"cargo",
274+
"chocolatey",
275+
"composer",
276+
"conan",
277+
"conda",
278+
"cran",
279+
"dart",
280+
"debian",
281+
"docker",
282+
"go",
283+
"gradle",
284+
"helm",
285+
"hex",
286+
"maven",
287+
"npm",
288+
"nuget",
289+
"powershell",
290+
"python",
291+
"repositories",
292+
"rpm",
293+
"ruby",
294+
"sbt",
295+
"swift",
296+
"terraform",
297+
"unity",
298+
"vagrant"
299+
]
342300
}

views/helpProvider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class helpProvider {
2323
}
2424

2525
const links = [
26-
{ label: 'Read Extension Documentation', url: 'https://github.com/cloudsmith-io/cloudsmith-vscode-extension/blob/main/README.md', icon: new vscode.ThemeIcon('link-external') },
27-
{ label: 'Get Started with Cloudsmith', url: 'https://help.cloudsmith.io/docs/welcome-to-cloudsmith-docs', icon: cloudsmithLogo },
26+
{ label: 'Read Extension Documentation', url: 'https://docs.cloudsmith.com/developer-tools/vscode', icon: new vscode.ThemeIcon('link-external') },
27+
{ label: 'Get Started with Cloudsmith', url: 'https://docs.cloudsmith.com/', icon: cloudsmithLogo },
2828
{ label: 'Review Issues', url: 'https://github.com/cloudsmith-io/cloudsmith-vscode-extension/issues', icon: new vscode.ThemeIcon('logo-github') },
2929
{ label: 'Report Issue', url: 'https://github.com/cloudsmith-io/cloudsmith-vscode-extension/issues', icon: new vscode.ThemeIcon('logo-github') }
3030
];

0 commit comments

Comments
 (0)