confluentinc / vscode

Confluent for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=confluentinc.vscode-confluent
Apache License 2.0
13 stars 3 forks source link

[v0.21.x] adjust Sentry filter behavior and add rollup output source map base #605

Closed shouples closed 2 days ago

shouples commented 2 days ago

Something was wrong with our build output where all our sourcemap info was being flagged as third party, which meant even when we explicitly called Sentry.captureException(), it would mark everything as third_party_code: true (https://github.com/confluentinc/vscode/pull/603).

After doing some digging and enabling Sentry debug mode and viewing logs in the dev tools console, it seemed to be using the wrong paths:

image

The most minimal fix I could find was ensuring sourcemapBaseUrl was set in our build extOutput, which then properly associated our extension code in Sentry. We're then able to see the unminified code as expected.