Skip to content

Commit

Permalink
v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenisx committed Feb 10, 2022
1 parent cf00363 commit f62f91e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"intellisense"
],
"description": "Intellisense support for CSS Variables",
"version": "0.5.0",
"version": "0.6.0",
"publisher": "phoenisx",
"license": "MIT",
"homepage": "https://github.com/willofindie/vscode-cssvar",
Expand Down
8 changes: 1 addition & 7 deletions src/color-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { parseFiles } from "./parser";

const getChunkRange = (startLineNumber: number, endLineNumber: number): Range =>
new Range(new Position(startLineNumber, 0), new Position(endLineNumber, 0));

export class CssColorProvider implements DocumentColorProvider {
async provideDocumentColors(
document: TextDocument
Expand All @@ -29,13 +30,6 @@ export class CssColorProvider implements DocumentColorProvider {

const eol = document.eol === EndOfLine.CRLF ? "\r\n" : "\n";
const colorInfo: ColorInformation[] = [];
/**
* FIXME: document.getText() contains unsaved text as well.
* This is crucial, as the range keeps on changing for the Color Info
* Not sure why but VScode doesn't provide any Buffer instead of text for
* huge file content.
* That means I will have to work upon the entire text all at once.
*/

// Assuming the worst case that each line has 120 characters (for JS like files)
// 500 lines will contain at-max 500 * 120 = 60000 chars, which is very close to
Expand Down

0 comments on commit f62f91e

Please sign in to comment.