Skip to content

High‐Level Architecture

Duncan Lilley edited this page Mar 24, 2026 · 2 revisions

There are three primary components to the MATLAB extension for VS Code:

  1. The Extension - The extension provides VS Code-specific functionality when editing MATLAB files.
  2. The Language Server - The extension uses the language server to deliver advanced language features. In turn, the language server relies on MATLAB to enable enhanced functionality, including code execution and debugging capabilities.
  3. Declarative Language Features - Several features are defined statically, including:
    1. MATLAB Language Grammar - Enables syntax highlighting.
    2. Snippets - Provides support for code snippets.
    3. Language Configuration - Supports features such as commenting and indentation rules.
---
config:
    class:
        hideEmptyMembersBox: true
---
classDiagram
    direction LR

    class EXT["MATLAB Extension for VS Code"]
    class LS["MATLAB Language Server"]
    class MATLAB
    namespace StaticFunctionality {
        class GRM["MATLAB Language Grammar"]
        class Snippets
        class LangConfig["Language Configuration"]
    }

    EXT --> LS
    EXT --> GRM
    EXT --> Snippets
    EXT --> LangConfig
    LS --> MATLAB
Loading

Clone this wiki locally