Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
shalldie committed Oct 23, 2024
1 parent c1de1a4 commit 28a35f1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
21 changes: 19 additions & 2 deletions docs/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ No more warnings about `Your Code installation appears to be corrupt`.
## Migration from v1

> The configuration of v1 is outdated and needs to be migrated. Currently maintaining a certain level of compatibility.
>
> You can download the default images of v1 version [from here](https://github.com/shalldie/vscode-background/issues/106#issuecomment-392311967).
v1:

Expand All @@ -60,3 +58,22 @@ v2, migrated to `background.editor`:
}
}
```

## Prefer v1 default images?

You can download the default images of v1 version [from here](https://github.com/shalldie/vscode-background/issues/106#issuecomment-392311967), or use the config below:

```json
{
"background.editor": {
"style": {
"opacity": 0.6
},
"images": [
"https://user-images.githubusercontent.com/9987486/40583669-d6189844-61c5-11e8-89e3-c52ad153da09.png",
"https://user-images.githubusercontent.com/9987486/40583670-d6478c9e-61c5-11e8-9551-6b55eacc7b8d.png",
"https://user-images.githubusercontent.com/9987486/40583671-d676c6e4-61c5-11e8-94cb-34ec4a12fa01.png"
]
}
}
```
21 changes: 19 additions & 2 deletions docs/welcome.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
## 从 v1 迁移

> v1 的配置已经过时,需要进行迁移。当前保持一定的兼容性。
>
> 可以从这里 [下载v1版本中的默认图片](https://github.com/shalldie/vscode-background/issues/106#issuecomment-392311967)
v1:

Expand All @@ -60,3 +58,22 @@ v2,迁移到 `background.editor`:
}
}
```

## 想继续使用v1版本的默认图片?

可以从这里 [下载v1版本中的默认图片](https://github.com/shalldie/vscode-background/issues/106#issuecomment-392311967),或者使用下方配置:

```json
{
"background.editor": {
"style": {
"opacity": 0.6
},
"images": [
"https://user-images.githubusercontent.com/9987486/40583669-d6189844-61c5-11e8-89e3-c52ad153da09.png",
"https://user-images.githubusercontent.com/9987486/40583670-d6478c9e-61c5-11e8-9551-6b55eacc7b8d.png",
"https://user-images.githubusercontent.com/9987486/40583671-d676c6e4-61c5-11e8-94cb-34ec4a12fa01.png"
]
}
}
```
3 changes: 1 addition & 2 deletions src/background/Background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export class Background implements Disposable {

if (firstLoad) {
// 提示

vscode.window
.showInformationMessage(l10n.t('Welcome to use background@{version}!', { version: VERSION }), {
title: l10n.t('More')
Expand All @@ -84,7 +83,7 @@ export class Background implements Disposable {
});

// 新版本强制提示下吧
if (VERSION === '2.0.0') {
if (VERSION === '2.0.0' || true) {
this.showWelcome();
}
// 标识插件已启动过
Expand Down

0 comments on commit 28a35f1

Please sign in to comment.