Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add map view #17

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "8.34.0-sdk",
"version": "8.35.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
}
40 changes: 40 additions & 0 deletions extension/src/map.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import {
CancellationToken,
Disposable,
TextDocument,
WebviewView,
WebviewViewProvider,
WebviewViewResolveContext,
window,
} from "vscode";
// import { select } from "./events/filters";

export class Map {}

// function selectDocument(
// document: TextDocument,
// upstreamEvent: Event<TextDocumentChangeEvent>
// ): Event<TextDocumentChangeEvent> {
// return select();
// }

export const MapViewProvider: WebviewViewProvider = {
resolveWebviewView(
webviewView: WebviewView,
_context: WebviewViewResolveContext<Map>,
token: CancellationToken,
) {
const {activeTextEditor} = window;
if (!activeTextEditor) {
throw new Error("No active text editor found");
}
const backingDocument: TextDocument = activeTextEditor.document;
webviewView.title = "Map preview";
webviewView.description = backingDocument.uri.path;
const disposables: Disposable[] = [];
// disposables.push(backingDocument);
token.onCancellationRequested(() => {
disposables.forEach((d) => d.dispose);
});
},
};
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"throttle-debounce": "^5.0.0"
},
"devDependencies": {
"@types/node": "^18.14.1",
"@types/node": "^18.14.4",
"@types/vscode": "=1.75",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@vscode/vsce": "^2.18.0",
"@yarnpkg/sdks": "^2.7.0",
"del-cli": "^5.0.0",
"esbuild": "^0.17.10",
"eslint": "^8.34.0",
"eslint": "^8.35.0",
"ohm-js": "^16.6.0",
"ovsx": "^0.8.0",
"semver": "^7.3.8",
Expand Down
160 changes: 84 additions & 76 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ __metadata:
languageName: node
linkType: hard

"@eslint/eslintrc@npm:^1.4.1":
version: 1.4.1
resolution: "@eslint/eslintrc@npm:1.4.1"
"@eslint/eslintrc@npm:^2.0.0":
version: 2.0.0
resolution: "@eslint/eslintrc@npm:2.0.0"
dependencies:
ajv: ^6.12.4
debug: ^4.3.2
Expand All @@ -231,7 +231,14 @@ __metadata:
js-yaml: ^4.1.0
minimatch: ^3.1.2
strip-json-comments: ^3.1.1
checksum: cd3e5a8683db604739938b1c1c8b77927dc04fce3e28e0c88e7f2cd4900b89466baf83dfbad76b2b9e4d2746abdd00dd3f9da544d3e311633d8693f327d04cd7
checksum: 31119c8ca06723d80384f18f5c78e0530d8e6306ad36379868650131a8b10dd7cffd7aff79a5deb3a2e9933660823052623d268532bae9538ded53d5b19a69a6
languageName: node
linkType: hard

"@eslint/js@npm:8.35.0":
version: 8.35.0
resolution: "@eslint/js@npm:8.35.0"
checksum: 6687ceff659a6d617e37823f809dc9c4b096535961a81acead27d26b1a51a4cf608a5e59d831ddd57f24f6f8bb99340a4a0e19f9c99b390fbb4b275f51ed5f5e
languageName: node
linkType: hard

Expand Down Expand Up @@ -438,10 +445,10 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*, @types/node@npm:^18.14.1":
version: 18.14.1
resolution: "@types/node@npm:18.14.1"
checksum: 58556bbdb0050e44a4934742c1da2530812782c06d266a758e669e44c5aa196166c5fce45fdb03f016876717e3840478b3220129bb77367f979607564047f0a3
"@types/node@npm:*, @types/node@npm:^18.14.4":
version: 18.14.4
resolution: "@types/node@npm:18.14.4"
checksum: 3f2f625777747b9f87e793eea5a8bbf1ac2c828846bda5811d07a457d55cfe6762239779759de61e7b7e917632b9ceee3f7ffd2a024117e7ec364dc1b4eb8d55
languageName: node
linkType: hard

Expand Down Expand Up @@ -496,13 +503,13 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.53.0"
"@typescript-eslint/eslint-plugin@npm:^5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.54.0"
dependencies:
"@typescript-eslint/scope-manager": 5.53.0
"@typescript-eslint/type-utils": 5.53.0
"@typescript-eslint/utils": 5.53.0
"@typescript-eslint/scope-manager": 5.54.0
"@typescript-eslint/type-utils": 5.54.0
"@typescript-eslint/utils": 5.54.0
debug: ^4.3.4
grapheme-splitter: ^1.0.4
ignore: ^5.2.0
Expand All @@ -516,67 +523,67 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 12dffe65969d8e5248c86a700fe46a737e55ecafb276933e747b4731eab6266fe55e2d43a34b8b340179fe248e127d861cd016a7614b1b9804cd0687c99616d1
checksum: 4fdb520b8e0f6b9eb878206ddfa4212522f170d1507d7aba8a975159a198efa37af6d2d17982dd560317452d0748f2e2da5dd7347b172bc4446d1c5562ce2e94
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/parser@npm:5.53.0"
"@typescript-eslint/parser@npm:^5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/parser@npm:5.54.0"
dependencies:
"@typescript-eslint/scope-manager": 5.53.0
"@typescript-eslint/types": 5.53.0
"@typescript-eslint/typescript-estree": 5.53.0
"@typescript-eslint/scope-manager": 5.54.0
"@typescript-eslint/types": 5.54.0
"@typescript-eslint/typescript-estree": 5.54.0
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 979e5d63793a9e64998b1f956ba0f00f8a2674db3a664fafce7b2433323f5248bd776af8305e2419d73a9d94c55176fee099abc5c153b4cc52e5765c725c1edd
checksum: 368d6dd85be42c3f518f0ddeed23ecd1d3c9484a77ae291ee4e08e2703ed379bed613bde014cd8ab2a3e06e85dd8aef201112ae5e3d2a07deba29ae80bb1fe06
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/scope-manager@npm:5.53.0"
"@typescript-eslint/scope-manager@npm:5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/scope-manager@npm:5.54.0"
dependencies:
"@typescript-eslint/types": 5.53.0
"@typescript-eslint/visitor-keys": 5.53.0
checksum: 51f31dc01e95908611f402441f58404da80a338c0237b2b82f4a7b0b2e8868c4bfe8f7cf44b2567dd56533de609156a5d4ac54bb1f9f09c7014b99428aef2543
"@typescript-eslint/types": 5.54.0
"@typescript-eslint/visitor-keys": 5.54.0
checksum: e50f12396de0ddb94aab119bdd5f4769b80dd2c273e137fd25e5811e25114d7a3d3668cdb3c454aca9537e940744881d62a1fed2ec86f07f60533dc7382ae15c
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/type-utils@npm:5.53.0"
"@typescript-eslint/type-utils@npm:5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/type-utils@npm:5.54.0"
dependencies:
"@typescript-eslint/typescript-estree": 5.53.0
"@typescript-eslint/utils": 5.53.0
"@typescript-eslint/typescript-estree": 5.54.0
"@typescript-eslint/utils": 5.54.0
debug: ^4.3.4
tsutils: ^3.21.0
peerDependencies:
eslint: "*"
peerDependenciesMeta:
typescript:
optional: true
checksum: 52c40967c5fabd58c2ae8bf519ef89e4feb511e4df630aeaeac8335661a79b6b3a32d30a61a5f1d8acc703f21c4d90751a5d41cda1b35d08867524da11bc2e1d
checksum: 9cb5b52c7277bdf74b9ea3282fc40f41fda90ea4b1d33039044476e43cf05a766b1294e7d45f429594f2776828f7d17729cfa4ea027315f3df883e748ba57514
languageName: node
linkType: hard

"@typescript-eslint/types@npm:5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/types@npm:5.53.0"
checksum: b0eaf23de4ab13697d4d2095838c959a3f410c30f0d19091e5ca08e62320c3cc3c72bcb631823fb6a4fbb31db0a059e386a0801244930d0a88a6a698e5f46548
"@typescript-eslint/types@npm:5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/types@npm:5.54.0"
checksum: 0f66b1b93078f3afea6dfcd3d4e2f0abea4f60cd0c613c2cf13f85098e5bf786185484c9846ed80b6c4272de2c31a70c5a8aacb91314cf1b6da7dcb8855cb7ac
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/typescript-estree@npm:5.53.0"
"@typescript-eslint/typescript-estree@npm:5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/typescript-estree@npm:5.54.0"
dependencies:
"@typescript-eslint/types": 5.53.0
"@typescript-eslint/visitor-keys": 5.53.0
"@typescript-eslint/types": 5.54.0
"@typescript-eslint/visitor-keys": 5.54.0
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
Expand All @@ -585,35 +592,35 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 6e119c8e4167c8495d728c5556a834545a9c064918dd5e7b79b0d836726f4f8e2a0297b0ac82bf2b71f1e5427552217d0b59d8fb1406fd79bd3bf91b75dca873
checksum: 377c75c34c4f95b7ab6218c1d96a6db3ea6ed6727711b6a09354582fe0157861dc1b6fb9e3f7113cd09741f713735d59d5ab5845457f5733a4ebad7470bf600a
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/utils@npm:5.53.0"
"@typescript-eslint/utils@npm:5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/utils@npm:5.54.0"
dependencies:
"@types/json-schema": ^7.0.9
"@types/semver": ^7.3.12
"@typescript-eslint/scope-manager": 5.53.0
"@typescript-eslint/types": 5.53.0
"@typescript-eslint/typescript-estree": 5.53.0
"@typescript-eslint/scope-manager": 5.54.0
"@typescript-eslint/types": 5.54.0
"@typescript-eslint/typescript-estree": 5.54.0
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
semver: ^7.3.7
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 18e6bac14ae853385a74123759850bca367904723e170c37416fc014673eb714afb6bb090367bff61494a8387e941b6af65ee5f4f845f7177fabb4df85e01643
checksum: b8f344fc2961c7af530b93e53d5a17b5084cdf550b381082e3fb7f349ef16e718d9eebde1b9fc2d8fc4ecf8d60d334b004359977247554265c1afc87323bed37
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:5.53.0":
version: 5.53.0
resolution: "@typescript-eslint/visitor-keys@npm:5.53.0"
"@typescript-eslint/visitor-keys@npm:5.54.0":
version: 5.54.0
resolution: "@typescript-eslint/visitor-keys@npm:5.54.0"
dependencies:
"@typescript-eslint/types": 5.53.0
"@typescript-eslint/types": 5.54.0
eslint-visitor-keys: ^3.3.0
checksum: 090695883c15364c6f401e97f56b13db0f31c1114f3bd22562bd41734864d27f6a3c80de33957e9dedab2d5f94b0f4480ba3fde1d4574e74dca4593917b7b54a
checksum: 17fc323c09e6272b603cdaec30a99916600fbbb737e1fbc8c1727a487753b4363cea112277fa43e0562bff34bdd1de9ad73ff9433118b1fd469b112fad0313ca
languageName: node
linkType: hard

Expand Down Expand Up @@ -1831,11 +1838,12 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.34.0":
version: 8.34.0
resolution: "eslint@npm:8.34.0"
"eslint@npm:^8.35.0":
version: 8.35.0
resolution: "eslint@npm:8.35.0"
dependencies:
"@eslint/eslintrc": ^1.4.1
"@eslint/eslintrc": ^2.0.0
"@eslint/js": 8.35.0
"@humanwhocodes/config-array": ^0.11.8
"@humanwhocodes/module-importer": ^1.0.1
"@nodelib/fs.walk": ^1.2.8
Expand All @@ -1849,7 +1857,7 @@ __metadata:
eslint-utils: ^3.0.0
eslint-visitor-keys: ^3.3.0
espree: ^9.4.0
esquery: ^1.4.0
esquery: ^1.4.2
esutils: ^2.0.2
fast-deep-equal: ^3.1.3
file-entry-cache: ^6.0.1
Expand All @@ -1876,7 +1884,7 @@ __metadata:
text-table: ^0.2.0
bin:
eslint: bin/eslint.js
checksum: 4e13e9eb05ac2248efbb6acae0b2325091235d5c47ba91a4775c7d6760778cbcd358a773ebd42f4629d2ad89e27c02f5d66eb1f737d75d9f5fc411454f83b2e5
checksum: 6212173691d90b1bc94dd3d640e1f210374b30c3905fc0a15e501cf71c6ca52aa3d80ea7a9a245adaaed26d6019169e01fb6881b3f2885b188d37069c749308c
languageName: node
linkType: hard

Expand All @@ -1901,12 +1909,12 @@ __metadata:
languageName: node
linkType: hard

"esquery@npm:^1.4.0":
version: 1.4.2
resolution: "esquery@npm:1.4.2"
"esquery@npm:^1.4.2":
version: 1.5.0
resolution: "esquery@npm:1.5.0"
dependencies:
estraverse: ^5.1.0
checksum: 2f4ad89c5aafaca61cc2c15e256190f0d6deb4791cae6552d3cb4b1eb8867958cdf27a56aaa3272ff17435e3eaa19ee0d4129fac336ca6373d7354d7b5da7966
checksum: aefb0d2596c230118656cd4ec7532d447333a410a48834d80ea648b1e7b5c9bc9ed8b5e33a89cb04e487b60d622f44cf5713bf4abed7c97343edefdc84a35900
languageName: node
linkType: hard

Expand Down Expand Up @@ -2759,9 +2767,9 @@ __metadata:
linkType: hard

"lru-cache@npm:^7.7.1":
version: 7.17.0
resolution: "lru-cache@npm:7.17.0"
checksum: 28c2a98ad313b8d61beac1f08257b6f0ca990e39d24a9bc831030b6e209447cfb11c6d9d1a774282189bfc9609d1dfd17ebe485228dd68f7b96b6b9b7740894e
version: 7.18.1
resolution: "lru-cache@npm:7.18.1"
checksum: ab0ec1360c552f1ffa54b1eaf0026126c5116a07bee156b92d1e971f4c8c88e9160f0fad4ab6fed4e0fdea84f25a4590ece085bc57ed9ab1d90b17f0b138c556
languageName: node
linkType: hard

Expand Down Expand Up @@ -2996,9 +3004,9 @@ __metadata:
linkType: hard

"minipass@npm:^4.0.0":
version: 4.2.1
resolution: "minipass@npm:4.2.1"
checksum: 727641018e2b2dcd8fb6239b9220b4f0ef1b43d279dcb7f53840f7c43d005a36f0cdcfe2ffbc18ce32fae2ea484d3e7d3cb29cbe99c9274b0365bbb74661266c
version: 4.2.4
resolution: "minipass@npm:4.2.4"
checksum: c664f2ae4401408d1e7a6e4f50aca45f87b1b0634bc9261136df5c378e313e77355765f73f59c4a5abcadcdf43d83fcd3eb14e4a7cdcce8e36508e2290345753
languageName: node
linkType: hard

Expand Down Expand Up @@ -4283,16 +4291,16 @@ __metadata:
version: 0.0.0-use.local
resolution: "vscode-ifm@workspace:."
dependencies:
"@types/node": ^18.14.1
"@types/node": ^18.14.4
"@types/throttle-debounce": ^5.0.0
"@types/vscode": =1.75
"@typescript-eslint/eslint-plugin": ^5.53.0
"@typescript-eslint/parser": ^5.53.0
"@typescript-eslint/eslint-plugin": ^5.54.0
"@typescript-eslint/parser": ^5.54.0
"@vscode/vsce": ^2.18.0
"@yarnpkg/sdks": ^2.7.0
del-cli: ^5.0.0
esbuild: ^0.17.10
eslint: ^8.34.0
eslint: ^8.35.0
ohm-js: ^16.6.0
ovsx: ^0.8.0
semver: ^7.3.8
Expand Down