change for release
This commit is contained in:
+3
-1
@@ -1 +1,3 @@
|
||||
node_modules
|
||||
node_modules
|
||||
out
|
||||
dist
|
||||
@@ -2,3 +2,4 @@
|
||||
.vscode-test/**
|
||||
.gitignore
|
||||
vsc-extension-quickstart.md
|
||||
|
||||
|
||||
+2
-8
@@ -1,9 +1,3 @@
|
||||
# Change Log
|
||||
## [1.0.0]
|
||||
|
||||
All notable changes to the "cdl" extension will be documented in this file.
|
||||
|
||||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Initial release
|
||||
- Initial release
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
# cdl README
|
||||
|
||||
This is the README for your extension "cdl". After writing up a brief description, we recommend including the following sections.
|
||||
|
||||
## Features
|
||||
|
||||
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
|
||||
|
||||
For example if there is an image subfolder under your extension project workspace:
|
||||
|
||||
\!\[feature X\]\(images/feature-x.png\)
|
||||
|
||||
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
|
||||
|
||||
## Requirements
|
||||
|
||||
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
|
||||
|
||||
## Extension Settings
|
||||
|
||||
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
|
||||
|
||||
For example:
|
||||
|
||||
This extension contributes the following settings:
|
||||
|
||||
* `myExtension.enable`: Enable/disable this extension.
|
||||
* `myExtension.thing`: Set to `blah` to do something.
|
||||
|
||||
## Known Issues
|
||||
|
||||
Calling out known issues can help limit users opening duplicate issues against your extension.
|
||||
|
||||
## Release Notes
|
||||
|
||||
Users appreciate release notes as you update your extension.
|
||||
|
||||
### 1.0.0
|
||||
|
||||
Initial release of ...
|
||||
|
||||
### 1.0.1
|
||||
|
||||
Fixed issue #.
|
||||
|
||||
### 1.1.0
|
||||
|
||||
Added features X, Y, and Z.
|
||||
|
||||
---
|
||||
|
||||
## Working with Markdown
|
||||
|
||||
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
|
||||
|
||||
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
|
||||
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
|
||||
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
|
||||
|
||||
## For more information
|
||||
|
||||
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
|
||||
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
|
||||
|
||||
**Enjoy!**
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.formatCdlFile = formatCdlFile;
|
||||
function formatCdlFile(content) {
|
||||
let indentLevel = 0;
|
||||
const formattedLines = [];
|
||||
for (const line of content.split("\n")) {
|
||||
const strippedLine = line.trim();
|
||||
if (strippedLine.endsWith("}")) {
|
||||
indentLevel = Math.max(indentLevel - 1, 0);
|
||||
}
|
||||
formattedLines.push(" ".repeat(indentLevel) + strippedLine);
|
||||
if (strippedLine.endsWith("{")) {
|
||||
indentLevel += 1;
|
||||
}
|
||||
}
|
||||
return formattedLines.join("\n");
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.activate = activate;
|
||||
exports.deactivate = deactivate;
|
||||
const vscode = __importStar(require("vscode"));
|
||||
const handlers_1 = require("./common/handlers");
|
||||
function activate(context) {
|
||||
const disposable = vscode.languages.registerDocumentFormattingEditProvider({ scheme: "file", language: "cdl" }, {
|
||||
provideDocumentFormattingEdits(document) {
|
||||
const text = document.getText();
|
||||
const formattedText = (0, handlers_1.formatCdlFile)(text);
|
||||
const fullRange = new vscode.Range(document.positionAt(0), document.positionAt(text.length));
|
||||
return [vscode.TextEdit.replace(fullRange, formattedText)];
|
||||
},
|
||||
});
|
||||
context.subscriptions.push(disposable);
|
||||
}
|
||||
function deactivate() { }
|
||||
Generated
+3673
-1
File diff suppressed because it is too large
Load Diff
+11
-2
@@ -3,6 +3,11 @@
|
||||
"displayName": "vscode-cdl-support",
|
||||
"description": "",
|
||||
"version": "0.0.1",
|
||||
"publisher": "Christoph",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.cbsk-tech.de/Christoph/vscode-cdl.git"
|
||||
},
|
||||
"main": "./client/out/src/extension.js",
|
||||
"keywords": [
|
||||
"cdl",
|
||||
@@ -38,10 +43,14 @@
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"watch": "tsc -watch -p ./"
|
||||
"compile": "vite build",
|
||||
"watch": "vite build --watch",
|
||||
"package": "vite build --mode production"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/vscode": "^1.96.0",
|
||||
"typescript": "^5.7.2"
|
||||
"@vscode/vsce": "^3.2.1",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^6.0.7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: "./client/src/extension.ts",
|
||||
formats: ["cjs", "es"],
|
||||
fileName: "extension",
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ["vscode"],
|
||||
},
|
||||
sourcemap: true,
|
||||
outDir: "client/out/src",
|
||||
},
|
||||
plugins: [],
|
||||
});
|
||||
Reference in New Issue
Block a user