加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
extension.js 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
strawhat 提交于 2024-12-04 15:51 . diagnostics added for unknown tokens
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
const ztmz = require('./ztmz')
// This method is called when your extension is activated
// Your extension is activated the very first time the command is executed
/**
* @param {vscode.ExtensionContext} context
*/
async function activate(context) {
// 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 "ztmz-pacenote" is now active!');
// Register monaco compatible commands
let subscriptions = await ztmz.getSubscriptions(context);
context.subscriptions.push(...subscriptions);
// subscriptions.forEach(subscription => context.subscriptions.push(subscription));
}
// This method is called when your extension is deactivated
async function deactivate() {}
module.exports = {
activate,
deactivate
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化