Skip to content

Commit

Permalink
Merge pull request #39 from cooolbros/vtf
Browse files Browse the repository at this point in the history
Add new VTF editor
  • Loading branch information
cooolbros authored Dec 10, 2024
2 parents 1029dc7 + dee30a7 commit 99a170d
Showing 32 changed files with 2,079 additions and 940 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -14,4 +14,5 @@ jobs:
node-version: latest
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: pnpm build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -6,4 +6,5 @@
dist
node_modules
out
target
tsconfig.tsbuildinfo
206 changes: 206 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]
members = ["packages/vtf"]
resolver = "2"

[profile.release]
opt-level = 3
2 changes: 2 additions & 0 deletions apps/extension/browser/client/src/extension.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import { JSONToVDF } from "client/commands/JSONToVDF"
import { showReferences } from "client/commands/showReferences"
import { VDFToJSON } from "client/commands/VDFToJSON"
import { onDidChangeActiveTextEditor } from "client/decorations"
import { VTFEditor } from "client/VTF/VTFEditor"
import { commands, Uri, window, workspace, type ExtensionContext, type TextDocument } from "vscode"
import { LanguageClient, type LanguageClientOptions } from "vscode-languageclient/browser"

@@ -23,6 +24,7 @@ export function activate(context: ExtensionContext): void {

// Window
context.subscriptions.push(window.onDidChangeActiveTextEditor(onDidChangeActiveTextEditor))
context.subscriptions.push(window.registerCustomEditorProvider("vscode-vdf.VTFEditor", new VTFEditor(context.extensionUri, context.subscriptions)))

// Language Server

1 change: 0 additions & 1 deletion apps/extension/desktop/client/package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@
"devDependencies": {
"@types/node": "^22.9.0",
"client": "workspace:^",
"tga-js": "^1.1.1",
"tsconfig": "workspace:^",
"vpk": "workspace:^",
"vscode-languageclient": "*"
145 changes: 0 additions & 145 deletions apps/extension/desktop/client/src/VTF/VTF.ts

This file was deleted.

Loading

0 comments on commit 99a170d

Please sign in to comment.