Skip to content

Commit 5177bf1

Browse files
committed
feat: add integration test for listExtensions
1 parent 2539a3b commit 5177bf1

File tree

9 files changed

+1148
-0
lines changed

9 files changed

+1148
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
3+
<Metadata>
4+
<Identity Language="en-US" Id="theme-cobalt2" Version="2.1.6" Publisher="wesbos"/>
5+
<DisplayName>Cobalt2 Theme Official</DisplayName>
6+
<Description xml:space="preserve">🔥 Official theme by Wes Bos.</Description>
7+
<Tags>VSCode,Themes,theme,color-theme</Tags>
8+
<Categories>Themes</Categories>
9+
<GalleryFlags>Public</GalleryFlags>
10+
<Badges></Badges>
11+
<Properties>
12+
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.15.0" />
13+
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
14+
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
15+
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="ui,workspace,web" />
16+
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
17+
18+
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/wesbos/cobalt2-vscode" />
19+
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/wesbos/cobalt2-vscode" />
20+
21+
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/wesbos/cobalt2-vscode" />
22+
23+
24+
25+
26+
<Property Id="Microsoft.VisualStudio.Services.Branding.Color" Value="#193549" />
27+
<Property Id="Microsoft.VisualStudio.Services.Branding.Theme" Value="dark" />
28+
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
29+
30+
31+
32+
</Properties>
33+
<License>extension/LICENSE.txt</License>
34+
<Icon>extension/images/logo.png</Icon>
35+
</Metadata>
36+
<Installation>
37+
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
38+
</Installation>
39+
<Dependencies/>
40+
<Assets>
41+
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
42+
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/images/logo.png" Addressable="true" />
43+
</Assets>
44+
</PackageManifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Wes Bos, Roberto Achar
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Cobalt2 Theme for VS Code
2+
3+
[![Version](https://vsmarketplacebadge.apphb.com/version/wesbos.theme-cobalt2.svg)](https://marketplace.visualstudio.com/items?itemName=wesbos.theme-cobalt2)
4+
5+
![Preview](https://raw.githubusercontent.com/wesbos/cobalt2-vscode/cobalt2-updates/images/ss.png)
6+
7+
8+
# Installation
9+
10+
1. Open **Extensions** sidebar panel in VS Code. `View → Extensions`
11+
2. Search for `Cobalt2` - find the one by **Wes Bos** - there are a few other half-baked ones so make sure you have the right one!
12+
3. Click **Install** to install it.
13+
4. Click **Reload** to reload the your editor
14+
5. Code > Preferences > Color Theme > **Cobalt2**
15+
6. Optional: Use the recommended settings below for best experience
16+
17+
## Recommended Settings
18+
19+
```js
20+
{
21+
"workbench.colorTheme": "Cobalt2",
22+
// The Cursive font is operator Mono, it's $200 and you need to buy it to get the cursive
23+
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
24+
"editor.fontSize": 17,
25+
"editor.lineHeight": 25,
26+
"editor.letterSpacing": 0.5,
27+
"files.trimTrailingWhitespace": true,
28+
"editor.fontWeight": "400",
29+
"prettier.eslintIntegration": true,
30+
"editor.cursorStyle": "line",
31+
"editor.cursorWidth": 5,
32+
"editor.cursorBlinking": "solid",
33+
// Very important: Install this plugin: https://github.com/be5invis/vscode-custom-css
34+
// You'll need to change this to a file URI scheme on your computer: https://en.wikipedia.org/wiki/File_URI_scheme
35+
// Mac/Linux: file:///Users/YOUR-PC-USERNAME/.vscodestyles.css
36+
// Windows: file:///C:/Users/YOUR-PC-USERNAME/.vscodestyles.css
37+
"vscode_custom_css.imports": [
38+
"file:///Users/wesbos/.vscodestyles.css"
39+
],
40+
"editor.renderWhitespace": "all",
41+
}
42+
```
43+
44+
## Important: CSS Hacks For Extra Sweet Editor
45+
Some things in VS Code can't be controlled by settings, but you can install [this plugin](https://github.com/be5invis/vscode-custom-css), then make a file on your computer that will hold your custom CSS, I like to make one in my root called `~/.vscodestyles.css` and then put this everything in [cobalt2-custom-hacks.css](https://github.com/wesbos/cobalt2-vscode/blob/master/./cobalt2-custom-hacks.css) into your file.
46+
47+
Once done, open your command palette and select enable **custom CSS and JS**
48+
49+
![Custom CSS/JS Hack](https://d3vv6lp55qjaqc.cloudfront.net/items/0B37352D3s2A2e33353c/Screen%20Shot%202017-09-15%20at%2011.02.49%20AM.png?X-CloudApp-Visitor-Id=26998&v=7ff79bcc)
50+
51+
Finally reload your editor and the Custom CSS should be taking. You can test this by typing into file - the dirty circle should be yellow not white.
52+
53+
**_Note: Reloading custom CSS and JS after every VSCode update is a must!_**
54+
55+
## Contributing
56+
This is a bit weird, but to get some sort of live feedback for when editing a theme. Please let me know if you have a saner way of doing it
57+
58+
1. Open this repo in your terminal and type `npm install`
59+
1. Start to watch for change on the repo with `npm start` - this runs a nodemon task for you and will automatically recompile any changes
60+
1. Open this repo in VS Code
61+
1. Open your command palette and hit type **VSIX**. Select the one that says **Extensions: Install from VSIX...**
62+
1. Load the VSIX file that was created a few steps back
63+
1. Set your editor to use _this_ Cobalt2 theme - it might help to change the name in package.json to something like "Cobalt2 Dev" so you can differentiate from the Cobalt2 you've installed from the marketplace. If you get confused, just delete all traces of Cobalt2 and then load the VSIX.
64+
1. Go to the debug sidebar `View → Debug`
65+
1. Press the green arrow beside "Launch Extension"
66+
1. This will then open a second window.
67+
1. Make a change, and then hit the refresh button on your debug toolbar - this is in your first editor - not the one that poped open.
68+
1. Wait a sec, your changes should now be reflected!
69+
70+
Whew. Again, if you have an easier way to style these things, let me know!
71+
72+
## I don't like something
73+
74+
First, this theme is new so if something is funky, please open an issue.
75+
76+
These are the things we have control over. If you would like to change something, you can either open a PR and see if I'd like it added, or override the colours in your own settings.json file.
77+
78+
https://code.visualstudio.com/docs/getstarted/theme-color-reference
79+
80+
## Put Cobalt2 in other places!
81+
82+
* [Sublime Text](https://github.com/wesbos/cobalt2)
83+
* [Atom](https://github.com/wesbos/Cobalt2-atom)
84+
* [iTerm2](https://github.com/wesbos/Cobalt2-iterm)
85+
* [Hyper Term](https://github.com/wesbos/hyperterm-cobalt2-theme)
86+
* [Alfred](https://github.com/wesbos/Cobalt2-Alfred-Theme)
87+
* [Slack](https://github.com/wesbos/Cobalt2-Slack)
88+
89+
## Thanks
90+
91+
Thanks to Roberto Achar for doing much of the initial porting to VS Code.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.monaco-shell {
2+
font-family: "Operator Mono", "Inconsolata", monospace;
3+
}
4+
5+
/* This makes the dirty tab circle & cross yellow */
6+
.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab.dirty > .tab-close .action-label:not(:hover):before,
7+
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty > .tab-close .action-label:not(:hover):before,
8+
.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab.dirty > .tab-close .action-label:hover:before,
9+
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty > .tab-close .action-label:hover:before { color: #ffc600; }
10+
11+
.monaco-workbench > .part.editor > .content .editor-group-container {
12+
border-top: 1px solid #15232d !important;
13+
}
14+
15+
.editor-group-container + .editor-group-container {
16+
border-left: 1px solid #15232d !important;
17+
}
18+
19+
/*
20+
This puts a thin yellow border around the found items like Sublime did it
21+
*/
22+
.monaco-editor .findMatch,
23+
.monaco-editor .selectionHighlight {
24+
border: 1px solid #ffc600;
25+
border-radius: 2px;
26+
background: transparent;
27+
}
28+
29+
/* This puts an inset shadow onto the minimap scrollbar and permanently shows it */
30+
.monaco-editor .minimap .minimap-shadow-visible,
31+
.monaco-editor .minimap .minimap-shadow-hidden {
32+
box-shadow: rgba(0, 0, 0, .4) -6px 0 6px -6px inset !important;
33+
/* taken from vanilla VS Code theme */
34+
position: absolute;
35+
left: -6px;
36+
width: 6px;
37+
}
38+
39+
/* This accounts for larger font cutting off - bump up 3px */
40+
.monaco-workbench>.activitybar>.content .monaco-action-bar .badge .badge-content {
41+
top: 17px !important;
42+
}
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "theme-cobalt2",
3+
"version": "2.1.6",
4+
"displayName": "Cobalt2 Theme Official",
5+
"description": "🔥 Official theme by Wes Bos.",
6+
"publisher": "wesbos",
7+
"icon": "images/logo.png",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/wesbos/cobalt2-vscode"
11+
},
12+
"galleryBanner": {
13+
"color": "#193549",
14+
"theme": "dark"
15+
},
16+
"categories": [
17+
"Themes"
18+
],
19+
"keywords": [
20+
"VSCode",
21+
"Themes"
22+
],
23+
"engines": {
24+
"vscode": "^1.15.0"
25+
},
26+
"scripts": {
27+
"start": "nodemon --exec vsce package"
28+
},
29+
"contributes": {
30+
"themes": [
31+
{
32+
"label": "Cobalt2",
33+
"uiTheme": "vs-dark",
34+
"path": "./theme/cobalt2.json"
35+
}
36+
]
37+
},
38+
"devDependencies": {
39+
"nodemon": "^1.14.12",
40+
"vsce": "^1.36.2"
41+
},
42+
"__metadata": {
43+
"id": "fb374ce1-5343-46c8-a425-900fdad15523",
44+
"publisherDisplayName": null,
45+
"publisherId": "ef56c328-1595-4d1e-9e0b-43d926331358",
46+
"isPreReleaseVersion": false,
47+
"preRelease": false,
48+
"installedTimestamp": 1655919021078
49+
}
50+
}

0 commit comments

Comments
 (0)