Skip to content

Commit

Permalink
Version 1.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennykorsukewitz committed Aug 14, 2023
1 parent 8dc5a65 commit 1c32a2b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to the "QuoteWithMarker" extension will be documented in this file.

## [1.0.3]

### Maintenance

- Updated README.md.
- Tidied code.

## [1.0.2]

### Placeholder
Expand All @@ -20,7 +27,7 @@ Example:

### Maintenance

- Updated README.md
- Updated README.md.
- Updated categories and keywords for Visual Studio Marketplace.

## [1.0.0]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

| Status |
| ------ |
| [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/dennykorsukewitz/VSCode-QuoteWithMarker/1.0.2/dev)](https://github.com/dennykorsukewitz/VSCode-QuoteWithMarker/compare/1.0.2...dev) ![GitHub Workflow Lint](https://github.com/dennykorsukewitz/VSCode-QuoteWithMarker/actions/workflows/lint.yml/badge.svg?branch=dev&style=flat&label=Lint) ![GitHub Workflow Pages](https://github.com/dennykorsukewitz/VSCode-QuoteWithMarker/actions/workflows/pages.yml/badge.svg?branch=dev&style=flat&label=GitHub%20Pages) |
| [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/dennykorsukewitz/VSCode-QuoteWithMarker/1.0.3/dev)](https://github.com/dennykorsukewitz/VSCode-QuoteWithMarker/compare/1.0.3...dev) ![GitHub Workflow Lint](https://github.com/dennykorsukewitz/VSCode-QuoteWithMarker/actions/workflows/lint.yml/badge.svg?branch=dev&style=flat&label=Lint) ![GitHub Workflow Pages](https://github.com/dennykorsukewitz/VSCode-QuoteWithMarker/actions/workflows/pages.yml/badge.svg?branch=dev&style=flat&label=GitHub%20Pages) |

## Feature

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "QuoteWithMarker",
"displayName": "Quote With Marker",
"description": "This extension quotes the selected area and adds a custom marker to it.",
"version": "1.0.2",
"version": "1.0.3",
"publisher": "dennykorsukewitz",
"icon": "doc/images/icon.png",
"license": "SEE LICENSE IN LICENSE",
Expand Down Expand Up @@ -80,7 +80,7 @@
"order": 1,
"type": "string",
"description": "Code Marker used in QuoteWithMarker function.",
"default": "MyMarker"
"default": "MyMarker - ${year}.${month}.${day}"
},
"quoteWithMarker.lineComment": {
"order": 2,
Expand Down
11 changes: 6 additions & 5 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,21 @@ function initQuoteWithMarker(context) {
}

let text = activeEditor.document.getText(selection) || '';
let config = vscode.workspace.getConfiguration('quoteWithMarker');

let quoteChar,
codeMarkerReplace,
codeMarker = vscode.workspace.getConfiguration('quoteWithMarker').get('codeMarker') || 'MyMarker',
lineComment = vscode.workspace.getConfiguration('quoteWithMarker').get('lineComment') || '',
languageId = activeEditor.document.languageId;
codeMarker = config.codeMarker || 'MyMarker',
lineComment = config.lineComment || {},
languageId = activeEditor.document.languageId;

let currentTime = new Date()
let currentTime = new Date();

// returns the month (from 0 to 11)
let month = currentTime.getMonth() + 1;

// returns the day of the month (from 1 to 31);
let day = currentTime.getDate()
let day = currentTime.getDate();

// returns the year (four digits)
let year = currentTime.getFullYear();
Expand Down

0 comments on commit 1c32a2b

Please sign in to comment.