p-doom/crowd-code-dataset-0.2 huggingface dataset:
[tab] src/extension.ts (typescript)
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';

// This method is called when your extension is activated
// Your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {

	// Use the console to output diagnostic information (console.log) and errors (console.error)
	// This line of code will only be executed once when your extension is activated
	console.log('Congratulations, your extension "test" is now active!');

	// The command has been defined in the package.json file
	// Now provide the implementation of the command with registerCommand
	// The commandId parameter must match the command field in package.json
	const disposable = vscode.commands.registerCommand('test.helloWorld', () => {
		// The code you place here will be executed every time your command is executed
		// Display a message box to the user
		vscode.window.showInformationMessage('Hello World from test!');
	});

	context.subscriptions.push(disposable);
}

// This method is called when your extension is deactivated
export function deactivate() {}
[content] src/extension.ts (typescript)
import * as vscode from 'vscode'

let output: vscode.OutputChannel

export function activate(context: vscode.ExtensionContext) {
    output = vscode.window.createOutputChannel('Edit Trace Probe')

    const log = (msg: string) => {
        output.appendLine(`[${new Date().toISOString()}] ${msg}`)
    }

    // ---- Command to show the output channel ----
    const showOutputCmd = vscode.commands.registerCommand(
        'editTraceProbe.showOutput',
        () => {
            output.show(true) // true = preserve focus
            log('Output channel focused via command')
        }
    )

    context.subscriptions.push(showOutputCmd)

    // ---- Optional status bar button ----
    const statusBar = vscode.window.createStatusBarItem(
        vscode.StatusBarAlignment.Right,
        1000
    )
    statusBar.text = '$(search) Edit Trace Probe'
    statusBar.tooltip = 'Show Edit Trace Probe output'
    statusBar.command = 'editTraceProbe.showOutput'
    statusBar.show()
    context.subscriptions.push(statusBar)

    // ---- Text document changes ----
    context.subscriptions.push(
        vscode.workspace.onDidChangeTextDocument(event => {
            const active =
                vscode.window.activeTextEditor?.document === event.document
            log(
                `TEXT_CHANGE
  uri=${event.document.uri.toString()}
  version=${event.document.version}
  changes=${event.contentChanges.length}
  active=${active}`
            )
        })
    )

    // ---- Document open ----
    context.subscriptions.push(
        vscode.workspace.onDidOpenTextDocument(doc => {
            log(
                `DOC_OPEN
  uri=${doc.uri.toString()}
  version=${doc.version}
  language=${doc.languageId}`
            )
        })
    )

    // ---- File system watcher ----
    const watcher = vscode.workspace.createFileSystemWatcher('**/*')
    context.subscriptions.push(watcher)

    watcher.onDidChange(uri => log(`FS_CHANGE uri=${uri.toString()}`))
    watcher.onDidCreate(uri => log(`FS_CREATE uri=${uri.toString()}`))
    watcher.onDidDelete(uri => log(`FS_DELETE uri=${uri.toString()}`))

    log('Edit Trace Probe activated')
}

export function deactivate() {}
[tab] .vscode/launch.json (jsonc)
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "Run Extension",
			"type": "extensionHost",
			"request": "launch",
			"args": [
				"--extensionDevelopmentPath=${workspaceFolder}"
			],
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
			"preLaunchTask": "${defaultBuildTask}"
		}
	]
}
[tab] /home/franz.srambical/crowd-pilot-extension/.vscode/launch.json (jsonc)
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "Run Extension",
			"type": "extensionHost",
			"request": "launch",
			"args": [
				"--extensionDevelopmentPath=${workspaceFolder}"
			],
			"timeout": 20000, // Increase the timeout to 20 seconds
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
			"preLaunchTask": "${defaultBuildTask}"
		}
	]
}
[tab] .vscode/tasks.json (jsonc)
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "npm",
			"script": "watch",
			"problemMatcher": "$tsc-watch",
			"isBackground": true,
			"presentation": {
				"reveal": "never"
			},
			"group": {
				"kind": "build",
				"isDefault": true
			}
		}
	]
}
[tab] /home/franz.srambical/crowd-pilot-extension/.vscode/tasks.json (jsonc)
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "watch",
			"type": "shell",
			// FIXME (f.srambical): We should make this cluster-agnostic
			"command": "module load nodejs && npm run watch",
			"problemMatcher": "$tsc-watch",
			"isBackground": true,
			"presentation": {
				"reveal": "never"
			},
			"group": {
				"kind": "build",
				"isDefault": true
			}
		}
	]
}
[content] .vscode/tasks.json (jsonc)
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "watch",
			"type": "shell",
			// FIXME (f.srambical): We should make this cluster-agnostic
			"command": "module load nodejs && npm run watch",
			"problemMatcher": "$tsc-watch",
			"isBackground": true,
			"presentation": {
				"reveal": "never"
			},
			"group": {
				"kind": "build",
				"isDefault": true
			}
		}
	]
}