Skip to content

Commit 9343bb6

Browse files
committed
feat: Add initial VS Code extension entry point and icon theme configuration.
1 parent 8b468ec commit 9343bb6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

extension/icons/icon-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,6 +1727,7 @@
17271727
"60": "_slint",
17281728
"prox": "_proxpl",
17291729
"pxpl": "_proxpl",
1730+
"pxcf": "_settings",
17301731
"htm": "_html",
17311732
"xhtml": "_html",
17321733
"html_vm": "_html",

extension/src/extension.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function activate(context: vscode.ExtensionContext) {
174174
'for': 'Loop with initializer, condition, and increment.',
175175
'return': 'Exits a function and optionally returns a value.',
176176
'print': 'Built-in statement/function to output values to the terminal.',
177-
'import': 'Incorporates external modules into the current script.',
177+
'use': 'Incorporates external modules into the current script.',
178178
'class': 'Defines a new class with methods and properties.',
179179
'this': 'Refers to the current instance of the class.',
180180
'super': 'Refers to the superclass.',
@@ -233,7 +233,8 @@ export function activate(context: vscode.ExtensionContext) {
233233
provideCompletionItems(document: vscode.TextDocument, position: vscode.Position) {
234234
const keywords = [
235235
'func', 'class', 'if', 'else', 'while', 'for', 'return', 'print',
236-
'var', 'let', 'const', 'true', 'false', 'null', 'import', 'export',
236+
'var', 'let', 'const', 'true', 'false', 'null', 'use', 'export',
237+
'prox', 'loop', // User requested specific keywords
237238
'from', 'as', 'try', 'catch', 'throw', 'async', 'await'
238239
];
239240
const builtins = ['len', 'str', 'clock', 'input', 'type'];

0 commit comments

Comments
 (0)