Skip to content

Commit 0ba84f8

Browse files
committed
ci: ⚙️fix publish issue
1 parent 3974665 commit 0ba84f8

5 files changed

Lines changed: 53 additions & 3 deletions

File tree

.vscodeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ vsc-extension-quickstart.md
1212
**/*.map
1313
esbuild.config.js
1414
eslint.config.mjs
15+
cspell.json
16+
cspell.project-words.txt
File renamed without changes.

src/extension.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
* @Author : Robert Huang<56649783@qq.com> *
33
* @CreatedDate : 2023-02-04 10:01:21 *
44
* @LastEditors : Robert Huang<56649783@qq.com> *
5-
* @LastEditDate : 2026-01-18 14:45:00 *
5+
* @LastEditDate : 2026-01-18 16:28:42 *
66
* @FilePath : emoji-commit-tiny/src/extension.js *
77
* @CopyRight : MerBleueAviation *
88
*****************************************************************************/
99

10+
1011
// The module 'vscode' contains the VS Code extensibility API
1112
// Import the module and reference it with the alias vscode in your code below
1213
import i18next from 'i18next'
1314
import * as vscode from 'vscode'
14-
import l10nEn from '../l10n/bundle.l10n.json'
15-
import l10nZh from '../l10n/bundle.l10n.zh-cn.json'
15+
import l10nEn from '../l10n/bundle.json'
16+
import l10nZh from '../l10n/bundle.zh-cn.json'
1617
import packageJson from '../package.json'
1718
import { Logger } from './logger'
1819
import { emojiCommit } from './utils'

vsc-extension-quickstart.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Welcome to your VS Code Extension
2+
3+
## What's in the folder
4+
5+
* 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+
* `src/extension.ts` - 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 `src/extension.ts` 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 `src/extension.ts`.
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+
* Open the debug viewlet (`Ctrl+Shift+D` or `Cmd+Shift+D` on Mac) and from the launch configuration dropdown pick `Extension Tests`.
31+
* Press `F5` to run the tests in a new window with your extension loaded.
32+
* See the output of the test result in the debug console.
33+
* Make changes to `src/test/suite/extension.test.ts` or create new test files inside the `test/suite` folder.
34+
* The provided test runner will only consider files matching the name pattern `**.test.ts`.
35+
* You can create folders inside the `test` folder to structure your tests any way you want.
36+
37+
## Publish your extension
38+
39+
* Follow the [working with extensions](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) guide to create a publisher account on the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/).
40+
* Update the `PAT` from [Azure DevOps](https://dev.azure.com/your-organization/_usersSettings/tokens);
41+
* Run `vsce publish` to publish your extension to the marketplace.
42+
43+
## Go further
44+
45+
* [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.
46+
* Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
47+
* Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).

0 commit comments

Comments
 (0)