Upgrade to Pro — share decks privately, control downloads, hide ads and more …

VS Code をプロダクトにどう取り込むか

VS Code をプロダクトにどう取り込むか

https://vscode.connpass.com/event/308890/ で話した内容です。

Naoto Ono

April 20, 2024
Tweet

More Decks by Naoto Ono

Other Decks in Programming

Transcript

  1. ࣗݾ঺հɿখ໺ ௚ਓ ▶ GitHub: @ono-max ▶ ॴଐɿLaunchable, inc. ▶ ։ൃʹܞΘͬͨ

    VS Code Extension
 Ruby Debugger
 Ruby Typeprof
 Launchable 2
  2. ࠓճͷ࿩ͷςʔϚ ▶ VS Code Extension ։ൃͷಓͷΓ
 ࠓ঺հͨ͠ Extension ͸ͲͷΑ͏ʹ࡞ΒΕͨͷ͔ 8

    VS Code Ͱ ͜Μͳ͜ͱͰ͖ΔΜͩʂ VS Code Extension ։ൃͯ͠ݟΑ͏͔ͳ…
  3. Ϗϧυʹؔ͢Δ৘ใΛૹΔ 14 CI ؀ڥ Ϗϧυ `456` Launchable Ϗϧυ ͷ ID

    
 ʢϢʔβʔ͕ઃఆʣ Ϗϧυ `456` ʹ͓͚Δมߋ ʢԿߦมߋ͔ͨ͠ɾϑΝΠϧ໊ʣ
  4. ςετ݁ՌΛૹΔ 20 CI ؀ڥ Launchable Ϗϧυ `456` ʹ͓͚Δςετ݁Ռ 
 ʢԿ݅ύεͯ͠Կࣦ݅ഊ͔ͨ͠ʣ

    ςετϨϙʔτ ϑΝΠϧ Launchable CLI Ϗϧυ `456`ͷ 
 ςετηογϣϯ
  5. ςετηογϣϯͱϏϧυ Ϗϧυ `456` ςετηογϣϯ #1 ੒ޭ 100݅ ࣦഊ 5݅ ੒ޭ

    95݅ ࣦഊ 10݅ ੒ޭ 99݅ ࣦഊ 6݅ Python: 3.6 ςετηογϣϯ #2 Python: 3.7 ςετηογϣϯ #3 Python: 3.8
  6. ςετηογϣϯͱϏϧυ Ϗϧυ `456` ςετηογϣϯ #1 ੒ޭ 100݅ ࣦഊ 5݅ ੒ޭ

    95݅ ࣦഊ 10݅ ੒ޭ 99݅ ࣦഊ 6݅ Python: 3.6 ςετηογϣϯ #2 Python: 3.7 ςετηογϣϯ #3 Python: 3.8 ͦΕͧΕͷ δϣϒͰ࣮ߦ͞Εͨ ςετΛ·ͱΊͨ΋ͷ
  7. ςετηογϣϯͱϏϧυ Ϗϧυ `456` ςετηογϣϯ #1 ੒ޭ 100݅ ࣦഊ 5݅ ੒ޭ

    95݅ ࣦഊ 10݅ ੒ޭ 99݅ ࣦഊ 6݅ Python: 3.6 ςετηογϣϯ #2 Python: 3.7 ςετηογϣϯ #3 Python: 3.8 ͦΕͧΕͷ δϣϒͰ࣮ߦ͞Εͨ ςετΛ·ͱΊͨ΋ͷ ϑΝΠϧͷมߋ৘ใ΍ ίϛοτ৘ใΛ ·ͱΊͨ΋ͷ
  8. Launchable CLI ίϚϯυ 26 ▶ Ϗϧυ৘ใΛૹΔɿ `launchable record build …`

    ▶ ςετͷαϒηοτͷऔಘɿ `launchable subset …` ▶ ςετ݁ՌΛૹΔɿ `launchable record test …`
  9. Launchable CLI ίϚϯυ 27 ▶ Ϗϧυ৘ใΛૹΔɿ `launchable record build …`

    ▶ ςετͷαϒηοτͷऔಘɿ `launchable subset …` ▶ ςετ݁ՌΛૹΔɿ `launchable record test …` ίϚϯυ͕ଟͯ͘ ೉ͦ͠͏…
  10. ΞΠσΟΞ͸ܾ·ͬͨʂ͋ͱ͸࡞Δ͚ͩ 30 ▶ VS Code Extension ͷςϯϓϨʔτ͸ Yeoman Ͱ ▶

    github.com/microsoft/vscode-extension-samples Ͱ API ͷ࡞ΓํΛษڧ
 ΠϝʔδΛ௫ΊͨΒυΩϡϝϯτͰৄࡉΛ஌Δ ▶
  11. ࡞ͬͨ Extension ΛݟͤͯΈͨ 34 ▶ ೖࣾޙɺ࡞ͬͨ VS Code Extension ΛݟͤͯΈͨ

    ▶ ͍͍൓ԠΛ΋Β͏͜ͱ͕Ͱ͖ɺૣ଎ϦϦʔε͠Α͏ʂͱͷ͜ͱ
  12. ͜͜·Ͱ࡞ͬͯΈͯ… 35 ▶ ࠓ·Ͱͷ VS Code ͷ։ൃܦݧ͕׆͔ͤͨ
 CLI ͰͰ͖ͳ͍͜ͱΛ VS

    Code ͰΧοίΑ͘දݱ͢Δ ▶ ͜Ε͔ΒϑΟʔυόοΫΛ΋Β͍ͳ͕Βվળ͍ͯ͜͠͏
  13. ιʔείʔυʹδϟϯϓ͢Δػೳ 42 ▶ Datadog ͷ VS Code ΤΫεςϯγϣϯ ▶ Web

    ΞϓϦέʔγϣϯ͔Βιʔείʔυʹδϟϯϓ͢Δػೳ ▶ Ͱ͖ͨΒΊͬͪΌΧοί͍͍ʂʂ
  14. ࠓޙʹ͍ͭͯ 58 ▶ ΋ͬͱ VS Code Extension Ͱ໘ന͍͜ͱ͍ͨ͠
 WebAssembly ࿈ܞʁ


    VS Code Ͱ Launchable ͷ Web ΞϓϦΛݟΕΔΑ͏ʹ͢Δʁ
 … ▶
  15. ·ͱΊ 59 ▶ VS Code Extension ͷ։ൃͷܦݧΛ΋ͱʹϓϩμΫτ΁ VS Code ֦ுΛ

    Ͳ͏औΓࠐΉ͔ʹ͍͓ͭͯ࿩͍͖ͤͯͨͩ͠͞·ͨ͠ɻ ▶ VS Code ͷ׆༻ํ๏ͷ৽͍͠ൃݟ΍ɺࣗ෼ͷϓϩμΫτʹ VS Code Λ ࢖ͬͯ໘ന͍͜ͱ͕Ͱ͖ͳ͍͔ͳͱࢥ͍͚ͬͯͨͩΔͱ޾͍Ͱ͢ɻ