Added vscodium

This commit is contained in:
Kristofers Solo
2022-04-28 21:17:01 +03:00
parent 837a479d82
commit d7dddc39ef
29139 changed files with 250215 additions and 45125 deletions

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Metadata>
<Identity Language="en-US" Id="vscode-html-css" Version="1.11.0" Publisher="ecmel" />
<DisplayName>HTML CSS Support</DisplayName>
<Description xml:space="preserve">CSS Intellisense for HTML</Description>
<Tags>css,html,twig,blade,django,nunjucks,mustache,angular,react,vue,multi-root ready</Tags>
<Categories>Programming Languages,Other</Categories>
<GalleryFlags>Public</GalleryFlags>
<Properties>
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.64.0" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="workspace" />
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/ecmel/vscode-html-css.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/ecmel/vscode-html-css.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/ecmel/vscode-html-css.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/ecmel/vscode-html-css/issues" />
<Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="https://github.com/ecmel/vscode-html-css" />
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
</Properties>
<License>extension/LICENSE.md</License>
<Icon>extension/icon.png</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
</Installation>
<Dependencies/>
<Assets>
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" />
<Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" />
<Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.md" Addressable="true" />
<Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/icon.png" Addressable="true" />
</Assets>
</PackageManifest>

View File

@@ -0,0 +1,116 @@
# Change Log
All notable changes to the extension will be documented in this file.
## [1.11.0] - 2022-02-06
- Update dependencies.
- Added source file name to completion list.
## [1.10.2] - 2021-02-10
- Update dependencies.
## [1.9.1] - 2021-01-17
- Update documentation.
## [1.9.0] - 2021-01-16
- Added Clear Cache command.
- Added file cache.
- Update documentation.
## [1.8.1] - 2021-01-15
- Added ${fileBasenameNoExtension} setting variable.
## [1.8.0] - 2021-01-11
- Added validate command.
- Allow multi level inheritance.
## [1.7.2] - 2021-01-10
- Update internals.
## [1.7.1] - 2021-01-09
- Update documentation.
## [1.7.0] - 2021-01-09
- Removed validation.
## [1.6.3] - 2021-01-07
- Added Handlebars inheritance (https://jknack.github.io/handlebars.java/reuse.html).
- Update documentation.
- Internal refactoring.
## [1.6.2] - 2021-01-04
- Handle file watcher create events.
- Update documentation.
## [1.6.1] - 2020-12-31
- Update documentation.
- Update dependencies.
## [1.6.0] - 2020-12-29
- Updated settings.
## [1.5.0] - 2020-12-28
- Added `css.validation` setting.
## [1.4.5] - 2020-12-28
- Update documentation.
## [1.4.4] - 2020-12-27
- Fixed regex.
## [1.4.3] - 2020-12-27
- Fixed regex.
## [1.4.2] - 2020-12-26
- Update documentation.
## [1.4.1] - 2020-12-26
- Validates startup and newly opened documents.
## [1.4.0] - 2020-12-26
- Added validation.
- Added @extends('base') tag for inheritance.
- Added integration test.
## [1.3.3] - 2020-12-22
- Fixed watcher bug.
- Fixed cleanup.
## [1.3.2] - 2020-12-22
- Update documentation.
## [1.3.1] - 2020-12-22
- Unified path handling.
- Fixed recursion bug for template inheritance.
## [1.3.0] - 2020-12-21
- Update documentation.
- Update to VS Code 1.52
## [1.2.5] - 2020-12-20
- Added initial template inheritance support for Twig and Mustache like template engines.

View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016-2017 Ecmel Ercan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,175 @@
# Visual Studio Code CSS Intellisense for HTML
HTML `id` and `class` attribute completion for Visual Studio Code.
## Features
- HTML `id` and `class` attribute completion.
- Supports linked and embedded style sheets.
- Supports template inheritance.
- Supports additional style sheets.
- Supports other HTML like languages.
- Validates CSS selectors on demand.
## Usage
You can view a list of `id` and `class` attribute suggestions via `ctrl + space`.
## Linked and Embedded Style Sheets
Linked `[<link rel="stylesheet">]` and embedded `[<style></style>]` style sheets are used in completion for `id` and `class` attributes. Links support local and remote files. Absolute local file paths are relative to the workspace folder while others are relative to HTML file:
**`index.html`**
```html
<!DOCTYPE html>
<html>
<head>
<!-- Remote style sheet -->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">
<!-- Local style sheet relative to workspace folder -->
<link rel="stylesheet" href="/style.css">
<!-- Local style sheet relative to this file -->
<link rel="stylesheet" href="style.css">
<!-- Embedded style sheet -->
<style>
#content {
display: block;
}
.internal {
display: block;
}
</style>
</head>
<body>
<div class="container external internal" id="content">
<div class="row">
<div class="col">1 of 2</div>
<div class="col">2 of 2</div>
</div>
</div>
</body>
</html>
```
All local links point to the same file which is in the root of workspace folder:
**`style.css`**
```css
.external {
display: block;
}
```
## Template Inheritance
Template inheritance is supported for the following tags:
```
{% extends "base" %}
@extends('base')
{{< base }}
{{> base }}
```
Styles defined in `base.html` will also be available for completion in `home.html`:
**`base.html`**
```html
<!doctype html>
<html>
<head>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">
<style>
#content {
display: block;
}
.internal {
display: block;
}
</style>
<title>{{ title }}</title>
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
```
**`home.html`**
```html
{% extends "base" %}
{% block content %}
<div id="content" class="container internal">
<h1>Home</h1>
</div>
{% endblock %}
```
## Additional Style Sheets
If it is not possible to specify local or remote styles in HTML or via template inheritance, they can be specified in VS Code settings per workspace folder in `.vscode/settings.json` and will suggest for all HTML files within that workspace folder.
### Example
**`.vscode/settings.json`**
```json
{
"css.styleSheets": [
"https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css",
"/style.css",
"style.css",
"${fileBasenameNoExtension}.css"
]
}
```
All relative paths will be evaluated relative to the file being edited. `${fileBasenameNoExtension}` will be replaced with the file name of the file being edited without extension.
## Supported Languages
Supported languages can be configured with the `css.enabledLanguages` setting. By default `html` is enabled:
```json
{
"css.enabledLanguages": [
"html"
]
}
```
Extension can be configured to support any language where it makes sense such as `nunjucks`, `twig`, `mustache`, etc. You should also install corresponding language extension which registers the language id in VS Code.
This setting is application scoped and changing the setting requires restarting VS Code.
## Commands
### Validate Attributes
Validates all `id` and `class` attributes in the active editor.
### Clear Cache
Clears file cache.
## Installation
Extension can be installed from [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css).

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,114 @@
{
"name": "vscode-html-css",
"displayName": "HTML CSS Support",
"description": "CSS Intellisense for HTML",
"version": "1.11.0",
"publisher": "ecmel",
"license": "MIT",
"homepage": "https://github.com/ecmel/vscode-html-css",
"bugs": "https://github.com/ecmel/vscode-html-css/issues",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/ecmel/vscode-html-css.git"
},
"engines": {
"vscode": "^1.64.0"
},
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"css",
"html",
"twig",
"blade",
"django",
"nunjucks",
"mustache",
"angular",
"react",
"vue",
"multi-root ready"
],
"activationEvents": [
"*"
],
"contributes": {
"configuration": {
"title": "CSS Settings",
"properties": {
"css.enabledLanguages": {
"type": "array",
"scope": "application",
"description": "List of languages which suggestions are desired.",
"default": [
"html"
]
},
"css.styleSheets": {
"type": "array",
"scope": "resource",
"description": "List of local or remote style sheets for suggestions.",
"default": []
}
}
},
"commands": [
{
"command": "vscode-html-css.validate",
"title": "CSS: Validate Attributes"
},
{
"command": "vscode-html-css.dispose",
"title": "CSS: Clear Cache"
}
]
},
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"release": "vsce package",
"deploy": "vsce publish"
},
"devDependencies": {
"@types/css-tree": "^1.0.7",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node-fetch": "^2.5.8",
"@types/node": "14.x",
"@types/vscode": "^1.64.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
"css-tree": "^2.0.4",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"node-fetch": "^2.6.1",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"ts-loader": "^9.2.6",
"typescript": "^4.5.4",
"vsce": "^2.6.7",
"vscode-test": "^1.6.1",
"webpack-cli": "^4.9.1",
"webpack": "^5.66.0"
},
"__metadata": {
"id": "aaee577c-f062-495a-9816-0cbd442f1d25",
"publisherId": "7aa35068-d7c4-4220-b9c1-10360795fd5f",
"publisherDisplayName": "ecmel",
"isPreReleaseVersion": false,
"installedTimestamp": 1645004958662
}
}